gdaltindex raster files (MapInfo gif + tab format)
Zhonghai Wang
zhonghaiw at GMAIL.COM
Mon May 22 07:42:40 PDT 2006
Hi,
I've checked using "mapserv -v" and the GIF is supported.
but it's strange that I can not performed "gdalinfo --formats" or
"gdal-congif --formats" to check if the GIF format is supported. I am using
the precomplied MS4W on WinXP. Does this mean that my gdal utility is not
really working? but I still can use some commands such as "gdalinfo" and
"gdal_translate".
zhongahi
On 5/22/06, Zhonghai Wang <zhonghaiw at gmail.com> wrote:
>
> Hi guys,
>
> I get some info again from the "Raster Dat Access" document, and it
> indicates that:
>
> ****
> GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer
> will also be able to read GIF files for raster layers. The only way to
> georeference GIF files is with a world file.
>
> If GD is not configured with GIF support, it may still be available in
> GDAL
>
> ****
>
> Is it true that GIF raster images can only be georeferenced with a
> worldfiles? TAB files are not supported?
>
> zhonghai
> On 5/22/06, Zhonghai Wang <zhonghaiw at gmail.com> wrote:
> >
> > Hi guys,
> >
> > I've found a way to do that, like this:
> >
> > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt
> > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt
> >
> > and this works well.
> >
> > but georeferencing information in the TAB file can not be found by the
> > command, an error message is something like:
> >
> > >>>no georeferencing info is available, gdaltindex performance will be
> > skipped.
> >
> > actually there is georeferencing info in the TAB file, for each small
> > gif image there is a corresponding TAB, e.g.:
> > ***
> > !table
> > !version 300
> > !charset WindowsLatin1
> >
> > Definition Table
> > File "m_1_1_1000.gif"
> > Type "RASTER"
> > (5.290517,48.2308475) (1392,987) Label "Pt 1",
> > (5.25001439194036,48.25) (0,0) Label "Pt 2",
> > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3",
> > (5.33101960805964,48.25) (2784,0) Label "Pt 4",
> > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5"
> > CoordSys Earth Projection 1, 104
> > Units "degree"
> > ***
> >
> > why can it not be read by gdal?
> >
> > thanks a lot
> > zhonghai
> >
> > On 5/22/06, Mateusz Loskot <mateusz at loskot.net > wrote:
> >
> > > Rahkonen Jukka wrote:
> > > > Very first you can try giving the full path to your images, I mean
> > > > c:\...\rasterdata\tem\*.gif. Let's see what happens.
> > >
> > > It should not be the case.
> > > I've checked gdaltindex from latest FWTools on Windows and
> > > it works with relative and absolute paths.
> > > Also, you can use forward or back slash:
> > >
> > > gdaltindex test.shp data/*.tif
> > >
> > > gdaltindex test.shp data\*.tif
> > >
> > > Although, gdaltindex usage message suggests to use the former version
> > > with Unix-like forward slash.
> > >
> > > Cheers
> > > --
> > > Mateusz Łoskot
> > > http://mateusz.loskot.net
> > >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060522/97499e21/attachment.htm>
More information about the MapServer-users
mailing list