[mapguide-users] GT Markup sample in MGOS 2.1
Andy Morsell
amorsell at spatialgis.com
Thu Aug 28 12:00:10 EDT 2008
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: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080828/dad16b1e/attachment.html
More information about the mapguide-users
mailing list