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"><<a href="mailto:Gido.Langen@nrcan-rncan.gc.ca">Gido.Langen@nrcan-rncan.gc.ca</a>></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'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->Create($featureSRS);</font>
<br><font size="2" face="Arial">$targetSRS = $coordSysFactory->Create($mapSRS);</font>
<br><font size="2" face="Arial">$csTransformation = $coordSysFactory->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->SelectFeatures($parcelQuery);</font>
<br><font size="2" face="Arial"> while($featureReader->ReadNext()) {</font>
<br><font size="2" face="Arial"> $attVal = $featureReader->GetString("PARCELDESI");</font>
<br><font size="2" face="Arial"> $geoObj = $featureReader->GetGeometry("Geometry");</font>
<br><font size="2" face="Arial"> $newObj = $geoObj->Transform($csTransformation); <<===== 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>