the trouble I am currently experiencing is dealing partly with
cs2cs, but partly with grass, so I post my question on this
list...
Being within a Mercator location, defined with the location
wizard (calling epsg:3857), I type :
...
I can't figure what is going wrong. Would anyone have an idea ?
Hi,
First of all, avoid using Google's "spherical mercator" projection for anything other than necessary data import/export if you can possibly help it. But sometimes we don't have a choice, so..
Google's spherical Mercator projection (formerly the unofficial
epsg-ish code 900913 from the esri.extra file) isn't really WGS84, it just borrows the major axis of the Earth used in WGS84 for both the major and minor axes of the ellipsoid, making it a sphere larger than Earth really is. So it's just a simple Mercator on a sphere, which happens to have a particular radius.
Different ellipsoids (and a sphere being a type of ellipsoid) squash the Earth north-south, so the northing value changes the most. Since Mercator doesn't deform east-west (lines of longitude are all parallel and perfectly vertical), in that projection changing the ellipsoid does not change the easting value at all.
fyi, +wktext has to do with "well known text" .prj file text, and requests to software in-the-know that the non-standard "+nadgrids=@null" projection term gets recorded when you export in that way. The default (without +wktext) is to only export official spec. terms, for compatibility with brittle software which might have to import it later and can't deal with anything beyond the official WKT spec (or ESRI's diversions from it, but there's another g.proj flag for that..).
Le lundi 24 mars 2014 à 13:24 -0700, Hamish a écrit :
Hi,
First of all, avoid using Google's "spherical mercator" projection for anything other than necessary data import/export if you can possibly help it. But sometimes we don't have a choice, so..
I wish I could never have heard about it... till I had to cope with
french geographical web services : their wmts service is based on this
projection system, so I need to define a spherical mercator location to
correctly retrieve tilesets.
Google's spherical Mercator projection (formerly the unofficial
epsg-ish code 900913 from the esri.extra file) isn't really WGS84, it just borrows the major axis of the Earth used in WGS84 for both the major and minor axes of the ellipsoid, making it a sphere larger than Earth really is. So it's just a simple Mercator on a sphere, which happens to have a particular radius.
Different ellipsoids (and a sphere being a type of ellipsoid) squash the Earth north-south, so the northing value changes the most. Since Mercator doesn't deform east-west (lines of longitude are all parallel and perfectly vertical), in that projection changing the ellipsoid does not change the easting value at all.
I believed the nadgrid was a shifting matrix applying to ellipsoid
center (in cartesian geocentric coordinates). Does this mean
+nadgrids=@null implicitly tells cs2cs : keep the from-ellipsoid (ie
ignore the to-sphere), and shift it (of 0,0,0) ?
good luck,
Hamish
Your explanations and links on this topic were very welcome !
Thank you,
I believed the nadgrid was a shifting matrix applying to ellipsoid
center (in cartesian geocentric coordinates). Does this mean
+nadgrids=@null implicitly tells cs2cs : keep the from-ellipsoid (ie
ignore the to-sphere), and shift it (of 0,0,0) ?
+nadgrids=@null tells it not to perform any datum transformation.
The default behaviour is to perform a matrix-based datum
transformation based upon the source and destination datums.
The nadgrids parameter overrides this. Normally, it is used to specify
a data file containing the datum-transformed positions of a set of
points; this allows for a more accurate transformation than a
matrix-based transformation.
nadgrids=@null is a "hack" which allows the datum transformation to be
suppressed entirely. This is required when the lat/lon coordinates are
based upon an ellipsoid but the cartographic transformation is based
upon a sphere, as is the case for the Google Earth projection.
Without that parameter, whatever ellipsoid was used for the
cartographic transformation would also be used for the datum
transformation.
Le mercredi 26 mars 2014 à 15:48 +0000, Glynn Clements a écrit :
Thank you Glynn for the clarification
The default behaviour is to perform a matrix-based datum
transformation based upon the source and destination datums.
The nadgrids parameter overrides this. Normally, it is used to specify
a data file containing the datum-transformed positions of a set of
points; this allows for a more accurate transformation than a
matrix-based transformation.
yes, here in France we often need to switch between two geodetic
systems, the elder being based on the Clarke 1880 ellipsoid. One can
choose between a standard datum shift and a grid-based transformation.
Many gis users still use the old geodetic system and don't pay attention
to the transformation method when it comes to retrieve data from a
gps...
In the place I live in the Alps, the error observed between standard-
and grid-based transformation is about 40 meters in EW direction.