<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=011370514-23102009>Jason - Thanks for detecting such a stupid mistake;
unfortunately, that wasn't the problem. It still did not re-project even
after fixing the typo.</SPAN></FONT></DIV>
<DIV><SPAN class=011370514-23102009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>Gido</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=011370514-23102009></SPAN></FONT></FONT></FONT><BR> </DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Jason
Birch<BR><B>Sent:</B> October 22, 2009 19:13<BR><B>To:</B> MapGuide Users Mail
List<BR><B>Subject:</B> Re: [mapguide-users] Re-projection information
2<BR></FONT><BR></DIV>
<DIV></DIV>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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<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></BODY></HTML>