I changed position to some features' labels and I activated the x,y position in the label properties. I saved the layer in .shp and with another projection. Once created a new project with that projection I loaded the .shp. Now I can see only labels of those features I didn't move the label. So I think that labels' X,Y coordinates saved in the layer aren't reprojected

How could I have these coordinates reprojected?

  • Can you use postgres/postgis? Using only Qgis I think the method suggested from AndreJ is the only one.
    – Sergio
    Aug 13 '15 at 8:44
  • Hi! I don't know Postgres and Postgis... that will be my next step in GIS learning
    – Forna
    Aug 14 '15 at 7:26

Try this

  1. Make sure your attribute table has a unique identifier per line
  2. Save the layer with the label coordinates to a csv file
  3. Load the csv with Add delimited text using the label coordinates as X and Y fields
  4. Save the new layer as shapefile into the target projection
  5. With the field calculator, add new columns of type real with the projected coordinates (Geometry -> $x and $y )
  6. Save the changes and leave edit mode
  7. Save the new layer as csv and add it to the canvas
  8. Join your original layer with the latest CSV layer by the unique ID field
  9. Save to a new shapefile, and style the labels to the projected coordinates
  • Hi! Thx for reply... Sorry, I'm embaracced... How do I do points 8?
    – Forna
    Aug 14 '15 at 8:15
  • In the properties of the original layer, you have a join tab. Click on the plus for a new connection, and select the latest CSV layer, then select the ID field in both layers.
    – AndreJ
    Aug 14 '15 at 8:17
  • After this join and having saved the .shp... Do I need to mantain both files to keep join?
    – Forna
    Aug 14 '15 at 8:52
  • The last shp should contain all you need. You can move it to another folder and open it in a new project if you doubt.
    – AndreJ
    Aug 14 '15 at 9:07
  • Ok... I think I'm doing some sort of error, cause I'm getting an all mixed-up file. I understood the logic behinde so I'll continue trying this way. Thx
    – Forna
    Aug 14 '15 at 9:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.