[mapguide-users] Generating tiles for google maps

George McLean gmclean at gorge.net
Wed Dec 19 15:44:16 EST 2007

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" 
<Name>New Map</Name>
+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 
+units=m +nadgrids=@null +wktext  +no_defs"]]

Is there something obvious that I am missing?

Thanks for the help!


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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users

More information about the mapguide-users mailing list