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

Jeremy Short jshort at lodgingcompany.com
Tue Jun 3 20:18:21 EDT 2008


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/
”. This created 6 directories named 0 to 5, each a directory of tiled 
pngs 0 to x.

The 0 directory has only one 0.png file in the structure 
../tiledmaps/0/0/0.png. This is the original picture shrunken down to a 
256K X 256K image. The 1 directory has 2 subdirectories 0 and 1, each 
representing a column with two tiles in each directory. The four 256K X 
256K tiled images make up the whole image.

eg.
jshort at ws79:~/svn/mapserver/map/tiledmaps/1\ 05:07 PM$ ls -lR
.:
total 8
drwxr-xr-x 2 jshort jshort 4096 2008-06-03 11:53 0
drwxr-xr-x 2 jshort jshort 4096 2008-06-03 11:53 1
./0:
total 16
-rw-r--r-- 1 jshort jshort 9458 2008-06-03 11:53 0.png
-rw-r--r-- 1 jshort jshort 1694 2008-06-03 11:53 1.png
./1:
total 20
-rw-r--r-- 1 jshort jshort 13702 2008-06-03 11:53 0.png
-rw-r--r-- 1 jshort jshort 1280 2008-06-03 11:53 1.png
jshort at ws79:~/svn/mapserver/map/tiledmaps/1\ 05:07 PM$


The higher the directory number the greater number of tiled images. So 
the original image is tiled in 6 different ways, in 6 directories.

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.

My environment is as follows:
Debian 4.1.2-22
Linux version 2.6.25-2-amd64

Here is my worldfile BigWhite_600.pgw
60.0000000000
0.0000000000
0.0000000000
-60.0000000000
440750.0000000000
3751290.0000000000



-- 
Jeremy Short
IT Programmer
The Lodging Company
http://www.skihills.com/


More information about the mapserver-users mailing list