[Mapserver-users] help with gdaltindex for dos :

Ed McNierney ed at topozone.com
Wed Dec 17 14:19:40 EST 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3C4D2.B8181BEA
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Stephen -
=20
You have two options.  The difference comes from the fact that on Unix
the command shell does the wildcard expansion, so the command line
gdaltindex actually sees is a long list of file names.  In DOS this does
not happen and the filename expansion has to be done by the program.
=20
gdaltindex can be recompiled and linked with setargv.obj from the
compiler library, which will add this feature.
=20
gdaltindex also adds to the shapefile if it already exists, so a command
like:
=20
for %f in (c:\maps\nebc\data\tif\*.tif) do gdaltindex index_94A.shp %f
=20
will also work without any recompilation needed.  Note that the "for"
loop will expand its arguments with any pathname included in the
argument, so it will do the right thing (i.e. put full absolute paths in
the index file).
=20
    - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242=20


  _____ =20

From: Stephen Clark [mailto:stephen.clark at focus.ca]=20
Sent: Wednesday, December 17, 2003 2:40 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] help with gdaltindex for dos :


Hi all,
=20
I am looking for a command line syntax for using gdaltindex for dos.
=20
The unix version from the usage is :
=20
% gdaltindex doq_index.shp doq/*.tif
=20
I have some geotiff files in folder:
=20
c:\maps\nebc\data\tif\
=20
=20
my command at the dos line is :
=20
gdaltindex index_94A.shp c:\maps\nebc\data\tif\*.tif
=20
The error I get is:
 Unable to open c:\maps\nebc\data\tif\*.tif, skipping
=20
----------------------
=20
I also tried this at the command line:
gdaltindex index_94A.shp c:/maps/nebc/data/tif/*.tif
=20
The error I get is:
 Unable to open c:/maps/nebc/data/tif/*.tif, skipping
=20
Any help would be appreciated.
=20
=20
thanks
Stephen

------_=_NextPart_001_01C3C4D2.B8181BEA
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Stephen -</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>You have two options.&nbsp; The difference =
comes from the=20
fact that on Unix the command shell does the wildcard expansion, so the =
command=20
line gdaltindex actually sees is a long list of file names.&nbsp; In DOS =
this=20
does not happen and the filename expansion has to be done by the=20
program.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>gdaltindex can be recompiled and linked with =
setargv.obj=20
from the compiler library, which will add this =
feature.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>gdaltindex also adds to the shapefile if it =
already exists,=20
so a command like:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>for %f in (c:\maps\nebc\data\tif\*.tif) do =
gdaltindex=20
index_94A.shp %f</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>will also work without any recompilation =
needed.&nbsp; Note=20
that the "for" loop will expand its arguments with any pathname included =
in the=20
argument, so it will do the right thing (i.e. put full absolute paths in =
the=20
index file).</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN =
class=3D087221419-17122003>&nbsp;&nbsp;&nbsp; <FONT=20
face=3DArial color=3D#0000ff size=3D2>- Ed</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D087221419-17122003>
<P><FONT size=3D2>Ed McNierney<BR>President and Chief =
Mapmaker<BR>TopoZone.com /=20
Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North =
Chelmsford,=20
MA&nbsp; 01863<BR>ed at topozone.com<BR>(978) 251-4242 =
</FONT></P></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Stephen Clark=20
[mailto:stephen.clark at focus.ca] <BR><B>Sent:</B> Wednesday, December 17, =
2003=20
2:40 PM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
[Mapserver-users] help with gdaltindex for dos :<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am looking for a command line syntax =
for using=20
gdaltindex for dos.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The unix version from the usage is =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>% gdaltindex doq_index.shp =
doq/*.tif</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have some geotiff files in =
folder:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>c:\maps\nebc\data\tif\</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my command at the dos line is =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>gdaltindex index_94A.shp=20
c:\maps\nebc\data\tif\*.tif</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The error I get is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Unable to open =
c:\maps\nebc\data\tif\*.tif,=20
skipping</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I also tried this at the command =
line:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>gdaltindex index_94A.shp=20
c:/maps/nebc/data/tif/*.tif</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>The error I get is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Unable to open =
c:/maps/nebc/data/tif/*.tif,=20
skipping</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any help would be =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Stephen</FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C3C4D2.B8181BEA--



More information about the mapserver-users mailing list