[mapguide-users] GT Markup sample in MGOS 2.1

Denis Lalonde denlalonde at yahoo.com
Thu Aug 28 11:19:45 EDT 2008


Last year, I modified the sharable Markup sample in the GT app (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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080828/6bba7c78/attachment.html


More information about the mapguide-users mailing list