[mapguide-users] Generating tiles for google maps
azpublic
azpublic at bluewin.ch
Thu Dec 20 12:05:51 EST 2007
I found out this article talking about MS virtual earth / live maps
http://msdn2.microsoft.com/en-us/library/bb259689.aspx
They show us how we can calculate the scale ...
Now my next question:
Is the scale displayed in mapguide studio calculated at the equator when in
a Mercator projection?
If yes I think we could generate the tiles pretty easily using the
FMTilingEngine and the appropriate projection
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of azpublic
Sent: jeudi, 20. décembre 2007 17:05
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Generating tiles for google maps
Thanks for your help.
I think the problem if we do it this way is that the zoom levels won't match
precisely.
Google and Microsoft use QuadTiles for their maps.
Meaning that each tile at a specific zoom level is divided in 4 tiles at the
next zoom level.
I thought that with this information we could figure out what were the
different MapGuide zoom levels to define in studio and then reuse them in
the automated tiling engine ...
For example :
If at goolge zoom level 17 the world fits perfectly in a 256 x 256 pixels
square we could calculate the corresponding mapguide scale ??? am I wrong ?
http://mt0.google.com/mt?n=404&v=w2.66&x=0&y=0&zoom=17&s=
Then do the same at zoom level 16 where the world is (2 x 256) x (2x256)
pixels and so on.
We could then use these scales in the automated Tiling Engine for a specific
Map of which the boundaries would exactly correspd to a given Google maps
tile at a higher zoom level.
What do you think ?
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of George McLean
Sent: mercredi, 19. décembre 2007 20:57
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Generating tiles for google maps
I was thinking you could create a layer that was your bounding box and
then add your map to a weblayout. Open the web layout in a browser and
as you zoom in to the corners of your bounding box the tiles will get
created under the TileCache directory (at least in windows). There may
be a better way to do this but that is how I have created tiles for
regions within a larger map.
Thanks for the Chris Savage link. I read it a few weeks ago but now that
I have been working on this it was helpful to re-read.
George
azpublic wrote:
> Yes it is a mercator projection and its the one I've been using for my
map.
>
>
> Here is a good post about the subject.
>
> http://cfis.savagexi.com/articles/2006/05/03/google-maps-deconstructed
>
> What do you mean by "I would create the box and
> then zoom to the corners" ?
>
>
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of George McLean
> Sent: mercredi, 19. décembre 2007 17:26
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Generating tiles for google maps
>
> I have been trying to get this working as well. My approach has been to
> use data between 85 degrees north and 85 degrees south in a Mercator
> projection since this is what I believe Google maps uses. I am still not
> sure if this is the right approach as I am still working on it.
>
> To get the tiles within your bounding box, I would create the box and
> then zoom to the corners. The tiles for that region will be created and
> this will help you figure out the rows and columns for each corner at
> each zoom level. Once you know the zoom levels and row/column boundaries
> you can specify these parameters in the call to the tiling engine.
>
> George McLean
>
> azpublic wrote:
>
>> Hi,
>>
>>
>>
>> Im looking for a way to generate custom tiles for google maps or Ms
>> Live maps / Virtual earth using Mapguide OS.
>>
>>
>>
>> Ive created my map using studio and Im now thinking about using the
>> Automated tiling engine from WSD to generate the tiles.
>>
>>
>>
>> My main problem is about which scale to use to have my custom tiles
>> match with google maps tiles. What are the mapguide scales I need to
>> use for specific google maps zoom levels?
>>
>>
>>
>> Moreover I want to generate tiles only for a specific lat/lon bounding
>> box. Is this possible using the Tiling engine?
>>
>>
>>
>> Any help appreciated !
>>
>>
>>
>>
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007
>> 00:00
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.503 / Virus Database: 269.17.4/1188 - Release Date:
>>
> 12/17/2007 2:13 PM
>
>>
>>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007
00:00
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007
00:00
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007 00:00
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007 00:00
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4 - Release Date: 16.12.2007 00:00
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 18.12.2007
21:40
More information about the mapguide-users
mailing list