Comments (4)
Comment by warmerdam on 27 Nov 2008 14:36 UTC
Jan,
Could you provide the exact command used for at least a couple of these? Did you use cs2cs? Also, was this 4.6.1?
from proj.
Comment by janh on 27 Nov 2008 15:23 UTC
Sorry Frank, I have been mixing versions. I use Proj 4.6.1, but the tests were done with an older version of PostGIS, without realizing that it probably uses an older version of the library. I am not sure of all is well with 4.6.1 though. I reran the same test with cs2cs under proj 4.6.1 with the attached shell-file. It gives better results than my first run, but I suspect the projection still uses a WGS84 datum shift by default. Note that all transformations result in the same coordinates as when a datum shift to WGS84 is explicitly requested, except when a) a different datum is requested in the target projection and b) a +nadgrid=@null is specified in the source projection
from proj.
Attachment added by janh on 27 Nov 2008 15:23 UTC
https://trac.osgeo.org/proj/attachment/ticket/22/testdatum.sh
from proj.
Tried to reproduce this with the script below.
echo "1."
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs +to +proj=longlat +ellps=bessel +no_defs
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +nadgrids=@null +no_defs +to +proj=longlat +ellps=bessel +no_defs
echo " "
echo "2."
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs +to +proj=longlat +ellps=bessel +nadgrids=@null +no_defs
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +nadgrids=@null +no_defs +to +proj=longlat +ellps=bessel +nadgrids=@null +no_defs
echo " "
echo "3."
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs +to +proj=longlat +ellps=bessel +datum=WGS84 +no_defs
echo 9018 375648 0 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +nadgrids=@null +no_defs +to +proj=longlat +ellps=bessel +datum=WGS84 +no_defs
echo " "
echo "4."
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs +to +proj=longlat +datum=WGS84 +no_defs
echo 9018 375648 |./cs2cs -f %.6f +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +nadgrids=@null +no_defs +to +proj=longlat +ellps=bessel +no_defs
Which results in the following output:
1.
3.291612 51.352060 0.000000
3.291612 51.352060 0.000000
2.
3.291612 51.352060 0.000000
3.291612 51.352060 0.000000
3.
3.291612 51.352060 0.000000
3.291612 51.351477 699.339164
4.
3.291612 51.352060 0.000000
3.291612 51.352060 0.000000
I conclude that what is discussed in this issue is mostly fixed. The unexpected results in 3) is probably caused by the ellipsoid parameters being adjusted in pj_datum_transform()
although the coordinates are not changed. Effectively this results in converting the coordinates from the WGS84 ellipsoid to the Bessel ellipsoid, which is backed up by
echo 3.291612 51.352060 0.000000 |./cct +proj=pipeline +step +proj=cart +ellps=WGS84 +step +proj=cart +ellps=bessel +inv
3.2916120000 51.3514765406 699.3392 inf
from proj.
Related Issues (20)
- Doc Helmert: rotation matrix HOT 2
- Google marks proj.org as potentially hacked, recommends against visiting it HOT 11
- Help with compiling PROJ 5.1.0 with JNI on windows HOT 2
- I'm cross-compiling, tried 9.3.1, 9.3.0, 9.0.0, and sqlite cross-compilation and local compilation all failed, don't know why the build failed HOT 3
- Error with sqlite link in cross-compilation HOT 3
- Error initializing invproj 9.1.1 with epsg PROJ_USE_PROJ4_INIT_RULES=YES HOT 1
- multi-grid GTG with overlapping grids and nodata HOT 6
- Make output or error message
- ReadTheDocs Deprecation: Removal of Sphinx context injection at build time
- Proj paramater string with "significant" or "junk" parameters returns incorrect transformation results for EPSG:4326 to some projected coordinate systems HOT 2
- Grid alternative for `gllmsl_2022.tif` is not picked up HOT 4
- rHEALPix projection behaviour at lon = -180 deg HOT 1
- proj-9.3.0-r1 fails to compile with gcc-15.0.0_pre20240804 HOT 1
- Missing +axis=neu in EPSG:4326, EPSG:3844, potentially other projinfo proj string HOT 2
- Change network dependence on configure / build time
- Request to Include Burkina Faso Transverse Mercator (BFTM) Projection System in Future Updates HOT 2
- different projection results by using python vs c++ implementation of Proj HOT 5
- An area of interest representing a point fails the bbox query HOT 2
- gdaltransform: tool is not selecting the appropriate operation candidate (linked to PROJ too) HOT 8
- 'End the world' outline of a crs HOT 2
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 proj.