[Proj] Problems using grid shift files
Mikael.Rittri at carmenta.com
Wed Apr 1 08:47:54 EST 2009
Paul Kelly wrote:
> On Wed, 1 Apr 2009, Ziegler Stefan wrote:
> > Hi
> > thanks for your answers and sorry for not replying for approx. 2
> > I will now spend some time on my problems with grid files. I thought
> > first that the shift grid files can be used for any reprojection
> > 21781 to 32632). But it's only usable for one specific reprojection
> > (defined in the file header). The reprojection is more an
> > than a "simple" reprojection since the old reference frame
> > (CH1903/LV03) is inaccurate. By adding the +nadgrid parameter I'm
> > to reproject correctly only to one reference system. Reprojections
> > other systems are wrong.
> Remember that we are slightly abusing the PROJ.4 API here by
> using CH1903+ as a pivot datum instead of WGS84. So the +towgs84
> parameters for other co-ordinate systems must be adjusted so they
> describe a transformation to CH1903+, rather than a transformation
> to WGS84, in exactly the same way CH1903+as we have used parameters
> of +towgs84=0,0,0 for CH1903+. If you have an accurate set of +towgs84
> parameters for the CH1903+ --> WGS84 transformation, I suspect you
> be able to determine the parameters for your target datum to CH1903+
> through some matrix multiplication (bear in mind that a set of
> parameters consist of rotational, translational and scaling
> but I'm not sure of the exact nature of the calculations you would
> to do and I haven't tried it.
> In other words, you should be able to avoid a chain of re-projections
> chaining the datum transformations before doing the re-projection.
> how I understand it anyway but I could have missed something.
That's clever. I didn't think of that, but it sounds right.
The currently recommended transform from CH1903+ to WGS84 (or to ETRS89,
technically) is actually a 3-parameter transform, for some reason:
EPSG coord. transformation code 1676 or 1647. When the target is
as ETRS89 rather than WGS84, then EPSG says the accuracy is 0.1 meter.
(Otherwise the continental drift makes the accuracy only about half a
This should make it easier to follow Paul's advice. I suspect these
three numbers should be added to the corresponding dx,dy,dz of all other
transformations, in order to make CH1903+ the pivot datum. Or possibly
subtracted, of course... (But I am not really certain, to be honest.)
More information about the Proj