Doubt in Field Calculator

by Arun   Last Updated March 03, 2019 07:22 AM

I am working in an project.I have a point Shapefile its projection is NAD83(HARN)Pennslyvaniasouth(ftUS)*EPSG3365* when I measure its distance(between two points) it gives me the answer in feet .yes its acceptable for me.I also calculated its x-coordinate and y-coordinate for the points in field Calculator it displays me the answer in feet.This is the problem.In my company they are insisting me to show the LAT-LONG value in Decimal Degrees.Is it possible to show the Lat-long in Decimal degrees in QGIS?

Answers 1

I think transform() function was not available when the question was posted (Y2013).

Now we can solve this CRS issue, just by the Field Calculator!

For Longitude: ...... x(transform($geometry, 'EPSG:3365', 'EPSG:4326'))

For Latitude: ......... y(transform($geometry, 'EPSG:3365', 'EPSG:4326'))

I created three random points near Philadelphia, and the transform() worked as expected. (Imported to GoogleEarth as KML and made a visual check).

enter image description here

March 03, 2019 07:13 AM

Related Questions

Updated February 18, 2019 08:22 AM

Updated December 20, 2018 06:22 AM

Updated March 21, 2019 00:22 AM

Updated June 30, 2015 14:10 PM

Updated July 07, 2017 21:22 PM