Comments (12)
@FObermaier I'll do a pull request.
from projnet4geoapi.
PROJ4 extension is not supported by ProjNet4GeoAPI at this time, I think.
from projnet4geoapi.
I'm hitting the same issue, in my case I need to transform GK4 to WGS84 using BETA2007.gsb gridfile. Is there any plan to implement this?
Thanks!
from projnet4geoapi.
I needed the same transformation from GK to ETRS89/UTM, so here's some code to test: https://github.com/wo80/NTv2
Take a look at CoordinateTransformTest.cs to see how a grid file can be used.
from projnet4geoapi.
Works great, thanks!
Would be nice to have it integrated into NetTopologySuite.
from projnet4geoapi.
@wo80, well done, do you mind us merging your project into this project?
from projnet4geoapi.
@FObermaier not at all.
For a more feature complete version the CoordinateTransformationFactory
extension methods have to be reviewed/extended, since they were just written to work with the German coordinate systems. Other CS combinations might not work as expected (I tested NAD27 <> NAD83 and there was a clear difference to what some online converters show, see TestNAD).
from projnet4geoapi.
@wo80, I noticed that you are still working on it. Give us a hint when you think it is in a state for merging.
Or would you like to do it yourself?
from projnet4geoapi.
@wo80, just noticed that WGS84->GK4 fails with "No support for transforming between the two specified coordinate systems", can also this transformation be supported? Isn't it just a matter of extending the IF inside CreateFromCoordinateSystems method?
from projnet4geoapi.
Seems that adding this part in there, does the trick:
else if (sourceCS is GeographicCoordinateSystem && targetCS is ProjectedCoordinateSystem)
{
ct = factory.CreateFromCoordinateSystems(sourceCS, targetCS);
var list = GetCoordinateTransformationList(ct);
// list[0] = source geographic -> geocentric
// list[1] = geocentric -> target projected
// Replace the geographic transform with our grid transformation.
list[0] = CreateCoordinateTransformation((ICoordinateTransformation)list[0], grid, inverse);
}
else if (sourceCS is ProjectedCoordinateSystem && targetCS is GeographicCoordinateSystem)
{
ct = factory.CreateFromCoordinateSystems(sourceCS, targetCS);
var list = GetCoordinateTransformationList(ct);
// list[0] = source projected -> geocentric
// list[1] = geocentric -> target geographic
// Replace the geographic transform with our grid transformation.
list[1] = CreateCoordinateTransformation((ICoordinateTransformation)list[1], grid, inverse);
}
from projnet4geoapi.
@ondrasvoboda thanks, I'll add it to the pull request.
from projnet4geoapi.
cool, thanks
from projnet4geoapi.
Related Issues (20)
- Add Orthographic Projection HOT 2
- Handle WKT Extension Tag HOT 1
- License change to MIT HOT 3
- Coordinate Conversion - WGS84 to SPCS (NAD83) HOT 3
- Latitude & Longitude order confusing HOT 1
- Convert map view objects to svg
- WGS84 coordinates transformation to Cartesian coordinates HOT 1
- Is it the ICoordinateTransformation thread safe ?
- How convert proj4js source to this lib source?
- Typo in code sample on Wiki HOT 1
- Migrate to Proj.6
- WGS84 -> Lambert Azimuthal Equal Area -> WGS84 fails when x = 0 HOT 3
- Add support for EPSG 5515 S-JTSK/05 / Modified Krovak HOT 2
- confusing documentation for axis orientation
- ProjNET only supports [] objects
- Release version ?
- Sqlite/sqlserver server side vs client side evaluation
- creating a transformation factory fails on ios HOT 1
- Add support of modern coordinate systems that includes height HOT 4
- Seeking help HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from projnet4geoapi.