Hi Denis,
There was a documented API change between the two releases.  See:
http://trac.osgeo.org/mapguide/wiki/Release/2.0/Notes
 
To fix the markup GT, edit the markupeditor.php file.  In the GetTransform()
function, change the line that reads:
 
return new MgCoordinateSystemTransform($source, $target);
to
return $coordSysFactory->GetTransform($source, $target);
 
Andy Morsell, P.E.
Spatial Integrators, Inc.
www.SpatialGIS.com
 
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Denis Lalonde
Sent: Thursday, August 28, 2008 8:20 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] GT Markup sample in MGOS 2.1
 
Last year, I modified the sharable Markup sample in the GT app (
<http://data.mapguide.com/mapguide/gt/index.php>
http://data.mapguide.com/mapguide/gt/index.php) to be session based.  It
worked great in MGE2008.
I can't seem to get it to work with MGOS 2.1 and am having difficulties.
I've traced the problem to the line that calls: "return new
MgCoordinateSystemTransform($source, $target);" in the GetTransform()
Function on the markupeditor.php page (See below). It gets called from the
AddPolygon() function of the same page.
What am I missing? No errors are given, just blank page.
function GetTransform()
 {
  $coordSysFactory = new MgCoordinateSystemFactory();
  $resourceService =
$this->site->CreateService(0);//MgServiceType::ResourceService);
  
  $map = new MgMap();
  $map->Open($resourceService, $this->args['MAPNAME']);
  $source = $coordSysFactory->Create($map->GetMapSRS()); 
  $target = $coordSysFactory->Create(MarkupManager::LL84WKT);
//ERROR OCCURS HERE============================================
   return new MgCoordinateSystemTransform($source, $target);
//=================================================================
 }
 
Thanks,
Denis
 
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to