[gdal-dev] Unexpected behavior on gdal2tiles.py

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Tue Mar 2 23:01:08 PST 2021


Hi,

Tiles created by gdal2tiles are never georeferenced directly but only
through the tileset definition. I had a try with your coordinate system with
raster profile and by looking at the generated tilemapresource.xml it seems
to me that the tileset is correct and tiles georeferenced right. Client that
reads the tilemaprerource.xml or that is configured manually to use the same
tileset should show correct coordinate, including a knowledge that the tiles
are from Mars.


<?xml version="1.0" encoding="utf-8"?>
    <TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
      <Title>mars.tif</Title>
      <Abstract></Abstract>
     
<SRS>GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190,169.894447223612]],PRIMEM["Reference_Meridian",0],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST]]</SRS>
      <BoundingBox minx="494000.00000000000000"
miny="7008000.00000000000000" maxx="500000.00000000000000"
maxy="7014000.00000000000000"/>
      <Origin x="494000.00000000000000" y="7008000.00000000000000"/>
      <TileFormat width="256" height="256" mime-type="image/png"
extension="png"/>
      <TileSets profile="raster">
        <TileSet href="0" units-per-pixel="32.00000000000000" order="0"/>
        <TileSet href="1" units-per-pixel="16.00000000000000" order="1"/>
  ...
      </TileSets>
    </TileMap>
    

-Jukka Rahkonen-


erentar2002 wrote
> If i use raster, the resulting tiles are not georeferenced, i.e the
> {x},{y},{z} coordinates are not correct. I require them to be
> georeferenced. Do you know of another tool that would let me render
> georeferenced tiles for mars?





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list