[Qgis-user] Help converting State

Wolfgang Meinolf wmeinolf at bbv-deutschland.de
Wed Jan 26 00:23:58 PST 2022


Hi,
as an alternative you can update the existing coordinate attributes following to reprojection also with $x and $y, which updates the existing coordinates according to the new CRS.

Best regards from Bavaria
Wolfgang

Von: Qgis-user <qgis-user-bounces at lists.osgeo.org> Im Auftrag von Bighouse Productions
Gesendet: Dienstag, 25. Januar 2022 18:34
An: Andrea Giudiceandrea <andreaerdna at libero.it>
Cc: qgis-user <qgis-user at lists.osgeo.org>
Betreff: Re: [Qgis-user] Help converting State

Thanks Andrea! GEOMETRY: AS_XY  - that did the trick for me. That was a long 24 hours trying to figure it out :-)

You rock! Thanks a lot.
D.

Doug Hadfield,
bighouseproductions.ca<http://bighouseproductions.ca/>
VRtuous.com<http://www.vrtuous.com/>
virtualvideoproductions.com<http://virtualvideoproductions.com>
Video, Animation, Photography, 3D & VR
778 895 1755
Demo Reel: https://vimeo.com/183084451
Photography: bighouse.smugmug.com<http://bighouse.smugmug.com/>



On Tue, Jan 25, 2022 at 4:16 AM Andrea Giudiceandrea <andreaerdna at libero.it<mailto:andreaerdna at libero.it>> wrote:

Bighouse Productions<https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=from:%22Bighouse+Productions%22> Mon, 24 Jan 2022 18:37:41 -0800<https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=date:20220124>

Hi Chris et al. here's a video showing the steps I'm following -- can

someone pinpoint what I'm doing wrong?

https://vimeo.com/669657507/e84405ce12
Hi Doug,
If I understand correctly your "issue" looking at the video, there is probably a misunderstanding about how csv / vector layers / reprojection work.

A GIS vector layer stores information about the features geometries (the coordinates of each point or vertex) and the features alphanumeric attributes (the fields and their values).

A csv file stores alphanumeric attributes.

When you import the csv file in QGIS , since some fields contain values representing the coordinates of a point,  it becomes a vector layer in which the features geometries are created, on importing, from the values (the coordinates) contained in such fields and the features attributes are the same attributes stored in the csv file.

Reprojecting a vector layer from a CRS to another one only changes the features geometries and not the features attributes.

Exporting a vector layer (with default options) to a csv file only saves its alphanumeric attributes.

Does this make sense to you?

Do you need to transform the coordinates values relative to a CRS stored in the EAST and NORTH fields of your csv file to the coordinates values relative to another CRS and update your EAST and NORTH fields or add new fields with the new values and save it as another csv file?

There various ways to obtain the some result.

For example:
- you can select the GEOMETRY: AS_XY layer option in order to add X an Y fields to the exported CSV in which the coordinates values are stored relative to the CRS set in the CRT option.
- or you can reproject the layer (Processing tool: "Reproject layer") and than use the Field Calculator to add new field or updated the EAST and NORTH fields with the new coordinates of the points and then save the layer to a CSV file with the default options.
- or you can use the Processing tool "Add X/Y fields to layer" to add X and Y fields with the coordinates values relative to the desired CRS and then save the layer to a CSV file with the default options.

Regards.

Andrea Giudiceandrea
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220126/2c993f8d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220126/2c993f8d/attachment-0001.bin>


More information about the Qgis-user mailing list