Giter VIP home page Giter VIP logo

Comments (4)

proj4-bot avatar proj4-bot commented on September 28, 2024

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.

proj4-bot avatar proj4-bot commented on September 28, 2024

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.

proj4-bot avatar proj4-bot commented on September 28, 2024

Attachment added by janh on 27 Nov 2008 15:23 UTC
https://trac.osgeo.org/proj/attachment/ticket/22/testdatum.sh

from proj.

kbevers avatar kbevers commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.