-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add us survey foot #3276
Comments
See https://groups.google.com/d/msgid/ol3-dev/CAHBySPaEfQpSishO2p0xL_255O6aF6K8-328sEz3C0SB%2BuzddQ%40mail.gmail.com for the original thread. |
I have investigated a little further and there is still a problem. The METERS_PER_UNIT seems to be ignored (both the definition that I added for US Survey Feet and the existing definition for the International Foot) The result of a transformation using either "ft" or "us-ft" is returned in meters. |
Careful. This might be a proj4js issue. But I'll take a closer look. |
Can you share your complete projection definition? Both the proj4js and the ol part. |
It SHOULD be a proj4js issue, but I didn't find any unit definitions in the Rich On Wed, Feb 25, 2015 at 5:28 PM, Andreas Hocevar notifications@github.com
Richard W. Greenwood, PLS |
I started with this: But regardless of what I do I am getting meters back when I do
I'm still working on it. Thanks, On Wed, Feb 25, 2015 at 5:31 PM, Andreas Hocevar notifications@github.com
Richard W. Greenwood, PLS |
ol3 fails silently (does not request a map) if "projection" does not include a know "units" definition. So when using proj4js and epsg.io, any projection that is not in meters transformations will not be correct. This is more of a proj4js issue than an ol3 issue. Adding the us-ft definition that I initially suggested will not solve the problem, but might still be useful in some cases. |
The scale line control needs updating to check for USFEET |
Around line 230 |
Coordinate systems based on the US Survey Foot are failing in OL 3.2.1. epsg.io uses the abbreviation 'us-ft'. The US Survey Foot is defined as 1200/3937 meters. It is widely used in US State Plane Coordinate Systems. I believe two additions are required in prij/proj.js:
ol.proj.Units.USFEET: 'us-ft',
and
ol.proj.METERS_PER_UNIT[ol.proj.Units.USFEET] = 1200/3937;
but I'm not user if "USFEET" follows your naming convention.
The text was updated successfully, but these errors were encountered: