Tile index with gdal
Frank Warmerdam
warmerdam at POBOX.COM
Tue Sep 28 06:20:39 PDT 2004
joanvp wrote:
> Thanks for your response,
>
> But I can't get it. I don'tknow what I'm doing
> wrong!!!!
>
> Now I've tried to use Tile4ms. I execute DOS
>
> C:\ms4w\Apache\cgi-bin>tile4ms tilefile.shp
> c:\foto\*.tif
>
> And appears "Unable to create c:\foto\*.tif.shp.shp
> (.shx)" error.
>
> What's wrong?
Joan,
What is wrong is that you didn't follow Armin's instructions.
I believe tile4ms is for greating a tileindex referring to
shapefiles. You need to use gdaltindex to build a tile index
referring to raster files. And, you actually need to use the
for statement as Armin shows ... no kidding. He didn't just write
that for his health.
Note that the wildcards don't work with gdaltindex (or tile4ms
for that matter) because the windows command shell does not take
care of wildcard expansion the way unix command shells do.
> --- Armin Burger <armin.burger at gmx.net> wrote:
>
>
>>Joan
>>
>>I found the solution once on the Mapserver mailing
>>list. You can use the gdaltindex from OpenEV and use
>>a command like
>>
>>for %f in (D:\data\IMAGES\*.tif) do gdaltindex
>>img_index.shp %f
>>
>>on the CMD prompt.
--
---------------------------------------+--------------------------------------
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 | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list