I have have been trying to modify my map using mapagent. I have exported the resource content and then edited the coordinate system to use the WKT representation of the projection. I can not seem to get past an error in the Metadata tag:

'Parser message: In element Metadata: Can not have element children within a simple type content. '

If I remove the metadata, I get an exception error when trying to open the map in Studio. My XML is below:

<MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd">
<Name>New Map</Name>
<CoordinateSystem>
PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] +wktext +no_defs"]]
</CoordinateSystem>
<Extents>
<MinX>0</MinX>
<MaxX>0</MaxX>
<MinY>0</MinY>
<MaxY>0</MaxY>
</Extents>
<BackgroundColor>FFFFFFFF</BackgroundColor>
<Metadata><MapDescription>GoogleTiles</MapDescription></Metadata>
</MapDefinition>


Is there something obvious that I am missing?

Thanks for the help!

George



Jason Birch wrote:
Specifics of this projection are documented at SpatialReference.org:

http://spatialreference.org/ref/user/google-projection/

And Charlie Savage has a good write-up of why it's not just Mercator:

http://cfis.savagexi.com/articles/2006/05/03/google-maps-deconstructed

Note, I have no idea how to add custom projections like this to Proj.4.
I wonder if you would be able to add the WKT representation directly to
your map?

http://spatialreference.org/ref/user/google-projection/ogcwkt/

Jason
-----Original Message-----
From: Traian Stanev
Subject: RE: [mapguide-users] Generating tiles for google maps

Yes, you have to use Mercator. To make the tiles match perfectly across
the whole world, you will need to use a custom Mercator rather than the
default one in MapGuide (last time I did it, I had to hardcode the
projection into MapGuide). I think that if you restrict yourself to a
small region, you can get away with the Mercator that already exists in
MapGuide and some tiny translation tweaks to make it all align
perfectly.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to