Skip to content
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

Unable to set MaxBounds using grid based datum adjustments using the +nadgrids in Proj4 #185

Open
CityBelfast opened this issue Nov 23, 2022 · 0 comments

Comments

@CityBelfast
Copy link

Our application is using both the OS-Maps Api and OS-Features Api in EPSG:27700 projection. Therefore, we need to define the coordinate reference system such that Leaflet can apply the correct datum transformation and align everything as expected. see the OS guide below.
image

https://www.ordnancesurvey.co.uk/business-government/tools-support/os-net/for-developers

https://www.ordnancesurvey.co.uk/documents/resources/guide-coordinate-systems-great-britain.pdf

However, we are getting wrong TOID selection if user click around the border of a property boundary. see the below image.

In August 2016, Ordnance Survey released a transformation grid called OSTN15 which improves the accuracy of the transformation between OSGB36/British National Grid and WGS84. In order to get the accuracy, Proj4js Ver.2.7.0 needs to be configured for grid based datum adjustments using the +nadgrids keyword in a coordinate system definition. The downside to this is that grid based adjustments file (i.e. OSTN15_NTv2_OSGBtoETRS.gsb) is 15mb, which isn’t ideal for web-based applications; but it is required to get the accuracy on the TOID selection kind of functionality.

Now the accuracy of TOID issue got resolved after implementing OSTN15. But we are facing another issue either on proj4 due to this implementation because now we are not able to set the maximum bounding box(i.e. maxBounds) option on the map and getting errors on the browser console window.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant