<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt; }
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal;  font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class="Normal"><span style='font-size: 10pt; '>Hi Paul</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>just want to let you know
that it works now. I had to change 4 lines in the pj_transform.c file (some
wgs84 hardcoded stuff for shift grids) and then changed the definitions in the
epsg file as suggested. And the best thing is, that it works with MapServer too
(vector and raster data). I'm now able to do an on-the-fly equalization
:)</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Thanks</span><br><span style='font-size: 10pt; '>Stefan</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>&gt; -----Urspr&uuml;ngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>&gt; Von: Paul Kelly
[mailto:paul-grass@stjohnspoint.co.uk]</span><br><span style='font-size: 10pt; '>&gt;
Gesendet am: Freitag, 3. April 2009
14:58</span><br><span style='font-size: 10pt; '>&gt; An: Ziegler
Stefan</span><br><span style='font-size: 10pt; '>&gt; Cc:
proj</span><br><span style='font-size: 10pt; '>&gt; Betreff: Re: AW: Re: AW: Re:
[Proj] Problems using grid shift
files</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt;
Hello,</span><br><span style='font-size: 10pt; '>&gt; I think it would help if
you give an example of one of the
</span><br><span style='font-size: 10pt; '>&gt; transformations
</span><br><span style='font-size: 10pt; '>&gt; that gave the incorrect results,
with the exact cs2cs </span><br><span style='font-size: 10pt; '>&gt;
command-line you </span><br><span style='font-size: 10pt; '>&gt; used and test
points.</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; On Thu, 2 Apr 2009, Ziegler
Stefan wrote:</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; &gt; Mmmmh, I think this is
beyond my mental skills ;-) So I </span><br><span style='font-size: 10pt; '>&gt;
start with some</span><br><span style='font-size: 10pt; '>&gt; &gt; questions:
what is a pivot datum? And how can I chain
datum</span><br><span style='font-size: 10pt; '>&gt; &gt; transformation
(without piping in the shell)? How does proj does
a</span><br><span style='font-size: 10pt; '>&gt; &gt; re-projection? I assumed
something like: projection A -&gt; ellipsoid
A</span><br><span style='font-size: 10pt; '>&gt; &gt; ----&gt; here comes the
datum transformation ----&gt; ellipsoid B
-&gt;</span><br><span style='font-size: 10pt; '>&gt; &gt; projection B. So if I
know the accurate relation between
</span><br><span style='font-size: 10pt; '>&gt; ellipsoid A
and</span><br><span style='font-size: 10pt; '>&gt; &gt; B (like the +towgs84
params) I'm able to reproject more or
</span><br><span style='font-size: 10pt; '>&gt; less
exact?</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; No, there is generally an extra
stage:</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; Source Datum --&gt; datum
transformation A --&gt; Pivot datum --&gt;
datum</span><br><span style='font-size: 10pt; '>&gt; transformation B --&gt;
Target Datum</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; Only when either your source or
target datum is the same as the pivot
</span><br><span style='font-size: 10pt; '>&gt; datum is there only one datum
transformation. For all other </span><br><span style='font-size: 10pt; '>&gt;
cases you need </span><br><span style='font-size: 10pt; '>&gt; two sets of datum
transformation parameters, for the source
</span><br><span style='font-size: 10pt; '>&gt; and target
</span><br><span style='font-size: 10pt; '>&gt; datum to some intermediate pivot
datum. Parameters for use of </span><br><span style='font-size: 10pt; '>&gt;
WGS84 as a </span><br><span style='font-size: 10pt; '>&gt; pivot datum are well
defined for most datums. But in your
</span><br><span style='font-size: 10pt; '>&gt; case when you
</span><br><span style='font-size: 10pt; '>&gt; want to use CH1903+ as a pivot
datum instead you need to </span><br><span style='font-size: 10pt; '>&gt;
calculate a new </span><br><span style='font-size: 10pt; '>&gt; set of datum
transformation parameters.</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt; As of yet I'm not sure exactly
how to calculate the new </span><br><span style='font-size: 10pt; '>&gt;
parameters but if </span><br><span style='font-size: 10pt; '>&gt; you post some
details of the conversion you're trying to do with some
</span><br><span style='font-size: 10pt; '>&gt; sample points, maybe someone
will be able to work it out for
you.</span><br><span style='font-size: 10pt; '>&gt;
</span><br><span style='font-size: 10pt; '>&gt;
Paul</span><br><span style='font-size: 10pt; '>&gt; </span></div>



</body>

</html>