1

I'm trying to find a PHP function to convert a state plane coordinate to decimal.

For example,

NAD_1983_stateplane_texas_south_fips_4205_feet (EPSG:102741)

to

WGS84 (EPSG:4326)... or NAD83

2

Try proj4php.

https://github.com/proj4php/proj4php

Then just define your point and its projection (EPSG:102741) and pass that into a transform statement with your intended projection (EPSG:4326).

  • This is exactly it, I wrote a php page awhile back using proj4js that does that transformation (tx state plane south to wgs84) from either a single coordinate or a csv that you can export from a data collector. gislab.net/mapping – ed.hank Oct 5 '16 at 17:59
  • On that page, is proj4js doing the projection then? This question is about actually doing it within PHP – Thomas Oct 5 '16 at 18:03
  • This library worked well. I could even load custom proj4 definitions. This must be the easiest way to do any coordinate conversion. Thanks Thomas – Caleb Pitman Oct 5 '16 at 18:15
  • it is a php page, it just happens to use proj4js instead of proj4php – ed.hank Oct 5 '16 at 18:23
  • it appears the proj4php library doesn't convert nad27 to nad83 correctly. it did convert nad27 state plane coordinate to nad27 decimal correctly. now I just have to convert nad27 to nad83 or wgs84... – Caleb Pitman Oct 5 '16 at 21:19

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.