none
Combing Output from MAPCruncher Renders (aka massive tile sets) RRS feed

  • Question

  • Hi I turned 4 adjacent map images into tilesets using MapCruncher and am now hoping to combine them. Is this possible? I am happy to edit the metadata file but can;t quite figure out what need to change.

    The issue is slightly more complicated than just including multiple data sources in mapcruncher because the images are all freely available 1:50000 topo map images of New Zealand and I would like to set up an community effort in converting these to tilesets for the whole country (which is several hundred) - Ideally people could help out by crunching a few that they are interested in. Is this kind of thing feasible with mapcruncher or am I dreaming?

    Thanks

    • Moved by Ricky_Brundritt Friday, March 9, 2012 2:15 PM (From:Bing Maps: Map Control and Web services Development)
    Monday, November 29, 2010 10:47 AM

Answers

  • You'll be pleased to hear that this is incredibly easy... the only metadata required for Bing Maps to load tiles in a tilelayer is the quadkey of that tile, which is what MapCruncher uses as the unique filename of each saved tile. A quadkey, such as 0103312.png uniquely describes the area covered and zoom level of every tile on the map. So you can have multiple users create tiles and merge them together in a single directory with no worries.

    The metadata.xml created by MapCruncher provides additional information about the bounding box covered by the tilelayer, the naming convention etc. but you don't need it at all to add a tile layer to Bing Maps.


    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    • Marked as answer by mrtrombone Monday, November 29, 2010 6:25 PM
    Monday, November 29, 2010 12:41 PM
    Moderator

All replies

  • You'll be pleased to hear that this is incredibly easy... the only metadata required for Bing Maps to load tiles in a tilelayer is the quadkey of that tile, which is what MapCruncher uses as the unique filename of each saved tile. A quadkey, such as 0103312.png uniquely describes the area covered and zoom level of every tile on the map. So you can have multiple users create tiles and merge them together in a single directory with no worries.

    The metadata.xml created by MapCruncher provides additional information about the bounding box covered by the tilelayer, the naming convention etc. but you don't need it at all to add a tile layer to Bing Maps.


    Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290
    • Marked as answer by mrtrombone Monday, November 29, 2010 6:25 PM
    Monday, November 29, 2010 12:41 PM
    Moderator
  • Thanks for your response.

    My next question is that ideally I would like to set up a batch process that could automate this.

    The original file is in GeoTiff format so provides some information that hopefully I should be able to use  to programatically generate the .yum file.

    Unfortunately GIS isn't my field (although I am a confident developer) so I'm not quite sure if I have enough info

    The information contained in the GeoTiff file is below. Is having accurate coordinates of the four corners of the map image sufficient or do I really need several within the map also (e.g. more central)? In case you are wondering the actual map information is available here: http://www.linz.govt.nz/topography/topo-maps/index.aspx

    Thanks

    Geotiff_Information:
       Version: 1
       Key_Revision: 1.0
       Tagged_Information:
          ModelTiepointTag (2,3):
             0.5              0.5              0               
             1804000          5550000          0               
          ModelPixelScaleTag (1,3):
             4.233            4.233            0               
          End_Of_Tags.
       Keyed_Information:
          GTModelTypeGeoKey (Short,1): ModelTypeProjected
          GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
          GeogGeodeticDatumGeoKey (Short,1): User-Defined
          GeogEllipsoidGeoKey (Short,1): Ellipse_GRS_1980
          ProjectedCSTypeGeoKey (Short,1): User-Defined
          PCSCitationGeoKey (Ascii,60): "Transverse Mercator; New Zealand Geodetic Datum 2000; GRS80"
          ProjectionGeoKey (Short,1): User-Defined
          ProjCoordTransGeoKey (Short,1): CT_TransverseMercator
          ProjLinearUnitsGeoKey (Short,1): Linear_Meter
          ProjNatOriginLongGeoKey (Double,1): 173             
          ProjNatOriginLatGeoKey (Double,1): 0               
          ProjFalseEastingGeoKey (Double,1): 1600000         
          ProjFalseNorthingGeoKey (Double,1): 10000000        
          ProjScaleAtNatOriginGeoKey (Double,1): 0.9996          
          End_Of_Keys.
       End_Of_Geotiff.

    Projection Method: CT_TransverseMercator
       ProjNatOriginLatGeoKey: 0.000000 (  0d 0' 0.00"N)
       ProjNatOriginLongGeoKey: 173.000000 (173d 0' 0.00"E)
       ProjScaleAtNatOriginGeoKey: 0.999600
       ProjFalseEastingGeoKey: 1600000.000000 m
       ProjFalseNorthingGeoKey: 10000000.000000 m
    Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)
    Projection Linear Units: 9001/metre (1.000000m)

    Corner Coordinates:
    Upper Left    ( 1803997.884, 5550002.116)
    Lower Left    ( 1803997.884, 5514000.452)
    Upper Right   ( 1828003.227, 5550002.116)
    Lower Right   ( 1828003.227, 5514000.452)
    Center        ( 1816000.555, 5532001.284)

     

     

    Monday, November 29, 2010 8:04 PM
  • Hello tanoshimi,

    I am trying to do the same thing but I cant figure out how to merge them together. The files just over writes each other. Any ideas?

    Wednesday, December 22, 2010 2:01 PM
  • Hi, I'm trying to do the same (US maps, Brazil maps and NZ maps) and I'm hosting them on Windows Azure.

    http://blogs.infosupport.com/blogs/eriko/archive/2010/12/21/using-azure-cdn-and-bing-maps-and-cache.aspx

    Could you get in touch with me?

    Thanks,

    Erik

    Thursday, January 27, 2011 3:03 PM
  • Which files overwrite?

    I created a .yum file with multiple images, this will create 1 big map and no trouble with overwriting files.

    Erik

    Thursday, January 27, 2011 3:05 PM