indexed tif images do not display

Dan Greve grevedan at HOTMAIL.COM
Wed Jun 22 13:55:33 PDT 2005


I can never get relative paths in gdaltindex to work with mapserver.  I 
attached a program I use to change the gdaltindex shapefile based on a 
simple pattern.  Remove 'n' characters with pattern 'p'.

i.e. if all the records are /USA_Tiffs/something.tif

I do

gdaltirepath.exe -p f:/ -c 1 index.shp

will change all "location" (by default)  records to

f:/USA_Tiffs/something.tif

I find it's quicker than rebuilding the entire shapefile using gdaltindex 
which must open every file to be indexed. The -tileindex options permits 
fields of other than 'location'

-- Dan Greve, Software Engineer
-- Palm Bay, FL

>From: Frank Warmerdam <fwarmerdam at GMAIL.COM>
>Reply-To: Frank Warmerdam <fwarmerdam at GMAIL.COM>
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: Re: [UMN_MAPSERVER-USERS] indexed tif images do not display
>Date: Wed, 22 Jun 2005 12:18:24 -0400
>
>On 6/22/05, Ethan Alpert <ealpert at digitalglobe.com> wrote:
> > I think you need to rerun gdaltindex. I just did a dbf dump of mine and
> > realized that the paths to the tiles are absolute paths. Not sure if
> > there's a way to construct relative path tileindexes.
> >
> > Anyone?
>
>Ethan,
>
>gdaltindex will store the paths in the form they are passed in.  So
>if you want relative paths, use those on the commandline.
>
>eg.
>
>gdaltindex index.shp doq/*.tif
>
>as opposed to
>
>gdaltindex index.shp /opt/data/doq/*.tif
>
>Of course, it can be tricky to ensure that the relative
>paths in the index file are correctly interpreted by mapserver.
>I'm never sure if it interpretes them relative to the index file,
>or the SHAPEPATH or what.
>
>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    | Geospatial Programmer for Rent

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdaltirepath.c
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050622/4e673b89/attachment.c>


More information about the MapServer-users mailing list