icsm-au / transformation_grids Goto Github PK
View Code? Open in Web Editor NEWNTv2 grids to transform data
License: Other
NTv2 grids to transform data
License: Other
The grid files here are very large, and unfortunately as a result they've been blocked from inclusion in the proj-datumgrid package. This means that the grid files are not available by default on important platforms such as the osgeo4w install (accordingly they are not available in a qgis install without manual user installation).
Is there any chance the grids could be thinned to avoid this situation?
Relevant discussion is at:
Here on GitHub the license for the grids are clearly stated as CC BY 4.0, but on http://www.icsm.gov.au/gda/grids.html the same files are said to be licensed under BSD 3-Clause. From previous discussions I know that CC BY 4.0 is the correct license so the ICSM website should be updated to reflect that.
GeoTools uses the jGridShift library to read and apply NTv2 grid shift files. JGridShift is not happy with the contents of the files, and throws exceptions.
GeoTools uses an older version of of jGridShift (v1.0), but for reference, the source code is a lot like the latest one available here, where it's comparing the nodeCount
with lonColumnCount
times latRowCount
and finds the two numbers are indeed different, hence throws an exception:
https://github.com/floscher/jGridShift/blob/master/src/main/java/au/com/objectix/jgridshift/NTv2SubGrid.java#L187
Trying to load the GDA94_GDA2020_conformal_and_distortion.gsb
file the error message is:
java.lang.IllegalStateException: SubGrid WEST_DC5 has inconsistent grid dimensions
For reference, lonColumnCount=1100, latRowCount=1481, nodeCount=1630581 , so there seems to be an excess of nodes? (1481ร1100=1629100)
Upon trying to load the GDA94_GDA2020_conformal.gsb
file, the jGridShift library throws the following error:
java.lang.IllegalStateException: SubGrid WEST_C5 has inconsistent grid dimesions
The number of cols, rows and node counts is the same as in the other file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.