[mapguide-users] Re-projection information 2
Jason Birch
jason at jasonbirch.com
Thu Oct 22 21:13:19 EDT 2009
Is that a copy/paste? If so, you have a typo in your $csTransformation
definition (RSR instead of SRS)
Jason
2009/10/22 Langen, Gido <Gido.Langen at nrcan-rncan.gc.ca>
> I should have included my code in the previous message; may-be somebody
> can see what's wrong with it.
> Thanks,
> Gido
>
> $coordSysFactory = new MgCoordinateSystemFactory();
> $sourceSRS = $coordSysFactory->Create($featureSRS);
> $targetSRS = $coordSysFactory->Create($mapSRS);
> $csTransformation = $coordSysFactory->GetTransform($sourceSRS, $targetRSR);
>
> $parcelQuery = new MgFeatureQueryOptions();
> try {
> $featureReader = $layer->SelectFeatures($parcelQuery);
> while($featureReader->ReadNext()) {
> $attVal = $featureReader->GetString("PARCELDESI");
> $geoObj = $featureReader->GetGeometry("Geometry");
> $newObj = $geoObj->Transform($csTransformation); <<===== Fails:
> }
> }
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20091022/99db81be/attachment.html
More information about the mapguide-users
mailing list