Is that a copy/paste?  If so, you have a typo in your $csTransformation definition (RSR instead of SRS)<div><br></div><div>Jason<br><br><div class="gmail_quote">2009/10/22 Langen, Gido <span dir="ltr">&lt;<a href="mailto:Gido.Langen@nrcan-rncan.gc.ca">Gido.Langen@nrcan-rncan.gc.ca</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div>


<p><font size="2" face="Arial">I should have included my code in the previous message; may-be somebody can see what&#39;s wrong with it.</font>

<br><font size="2" face="Arial">Thanks,</font>

<br><font size="2" face="Arial">Gido </font>
</p>
<br>

<p><font size="2" face="Arial">$coordSysFactory = new MgCoordinateSystemFactory();</font>

<br><font size="2" face="Arial">$sourceSRS = $coordSysFactory-&gt;Create($featureSRS);</font>

<br><font size="2" face="Arial">$targetSRS = $coordSysFactory-&gt;Create($mapSRS);</font>

<br><font size="2" face="Arial">$csTransformation = $coordSysFactory-&gt;GetTransform($sourceSRS, $targetRSR);</font>
</p>

<p><font size="2" face="Arial">$parcelQuery = new MgFeatureQueryOptions();</font>

<br><font size="2" face="Arial">try {</font>

<br><font size="2" face="Arial">  $featureReader = $layer-&gt;SelectFeatures($parcelQuery);</font>

<br><font size="2" face="Arial">  while($featureReader-&gt;ReadNext()) {</font>

<br><font size="2" face="Arial">    $attVal = $featureReader-&gt;GetString(&quot;PARCELDESI&quot;);</font>

<br><font size="2" face="Arial">    $geoObj = $featureReader-&gt;GetGeometry(&quot;Geometry&quot;);</font>

<br><font size="2" face="Arial">    $newObj = $geoObj-&gt;Transform($csTransformation);  &lt;&lt;===== Fails: </font>

<br><font size="2" face="Arial">  }</font>

<br><font size="2" face="Arial">}</font>
</p>

</div>
<br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br></div>