[mapserver-users] Using gdaltindex yields "no georeferencing is available"

Frank Warmerdam warmerdam at pobox.com
Wed Jun 4 11:10:46 EDT 2008


Jeremy Short wrote:
> 
> I have used gdal2tiles.py to convert a simple very large png file to 
> many small tiled images. The command I used is “gdal2tiles.py 
> BigWhite_600.png tiledmaps/
...
> It's my understanding I could create a tileindex from one of these sets 
> of tiled images using
> “gdaltindex test.shp tiledmaps/0/0/0.png” and the shape file test.shp 
> would be created and I could use this in the map file. However, when I 
> run the above command I get the messages
>> ERROR 4: Unable to open test.shp or test.SHP.
> Creating new index file...
> It appears no georeferencing is available for
> `tiledmaps/0/0/0.png', skipping.
>> As mentioned above I do have a world file BigWhite_600.pnw. Do I somehow 
> have to include the tiled directory structure into the world file? I 
> thought gdaltindex would create a world file for me? Any ideas as I 
> don't know what to do now? Thank you for reading this.

Jeremy,

The gdal2tiles script produces tiles suitable for use with various web
mapping environments and I believe the georefernecing of each individual
tile is implicit in it's name, and relationship to the whole tree.   So
I don't think it is suitable for what you want to do.

I think the gdal_retile.py script might be more suitable for your use.

   http://www.gdal.org/gdal_retile.html

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list