<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>Last year, I modified the sharable Markup sample in the GT app (</FONT><A href="http://data.mapguide.com/mapguide/gt/index.php"><FONT face=Calibri color=#800080 size=3>http://data.mapguide.com/mapguide/gt/index.php</FONT></A><FONT face=Calibri size=3>) to be session based.<SPAN style="mso-spacerun: yes"> </SPAN>It worked great in MGE2008.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>I can't seem to get it to work with MGOS 2.1 and am having difficulties.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>I’ve traced the problem to the line that calls: “return new MgCoordinateSystemTransform($source, $target);” i</FONT><FONT face=Calibri size=3>n the GetTransform() Function on the markupeditor.php page (See below). It gets called from the AddPolygon() function of the same page.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Calibri size=3>What am I missing? </FONT><FONT face=Calibri size=3>No errors are given, just blank page.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt">function GetTransform()<BR> {<BR> $coordSysFactory = new MgCoordinateSystemFactory();<BR> $resourceService = $this->site->CreateService(0);//MgServiceType::ResourceService);<BR> <BR> $map = new MgMap();<BR> $map->Open($resourceService, $this->args['MAPNAME']);</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"> $source = $coordSysFactory->Create($map->GetMapSRS()); </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"> $target = $coordSysFactory->Create(MarkupManager::LL84WKT);</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt">//ERROR OCCURS HERE============================================</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><STRONG> return new MgCoordinateSystemTransform($source, $target);</STRONG></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt">//=================================================================<BR> }</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt">Thanks,</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt">Denis</P></DIV></div><br>
</body></html>