-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect transformation results when using EPSG 2263 (NY State Plane, feet US) #67
Comments
EPSG:2263 is a state plane coordinate system "NAD83 / New York Long Island (ftUS)". I assume it is US Survey Feet. You need to set the preserve_units flag to True. Otherwise, pyproj will set your coordinate units to meters. IPython console to show my work.
Calling ny_state() as a function does a transform to epsg:4326, as a shortcut. Your above code should also work when you add the preserve_units=True flag. This is not an isolated incident, other get tripped up by this too. (Duplicate of #58 , #40) |
I just came here to raise an issue also (transforming from epsg:4326 -> epsg:102697 AKA NAD_1983_StatePlane_Missouri_Central_FIPS_2402_Feet) where I was finding that the resulting coordinates were given in meters, not us-ft as expected. It all makes more sense now, although I wonder: What is the purpose of the preserve_units parameter? It seems like it should at least be set to True by default, as the current behavior is clearly unexpected. |
what's the rationale behind defaulting to |
Closing as |
With PyProj:
Result:
(298544.59235271334, 52706.69470216743)
Compare to
gdaltransform
:By contrast, PyProj and GDAL agree when transforming to WebMercator:
Result:
(-8239557.624004417, 4959577.466271832)
The text was updated successfully, but these errors were encountered: