[gdal-dev] ogrinfo wildchar in the datasource?

Sebastian E. Ovide sebastian.ovide at gmail.com
Tue Oct 26 12:35:52 EDT 2010


...probably I will copy (or move) all the files under the same folder... I
do not like too much this approach... as I would prefer to maintain the
original directory hierarchy...  but it will make its job...

On Tue, Oct 26, 2010 at 5:25 PM, Frank Warmerdam <warmerdam at pobox.com>wrote:

> Sebastian E. Ovide wrote:
>
>>
>> Hi All,
>>
>> Is there anyway to make gdal read from multiple folders ? something like
>> ogrinfo mydata/* ? where mydata has a lot of subfolders and any of those
>> subfolders have shape files.
>>
>> (I have some folders with tens of folders with shape files that I need to
>> display with to MapServer. Just wondering if I need to create a script or if
>> there is a shortcut...)
>>
>
> Sebastian,
>
> This would have to be something supported by the shapefile driver in this
> case, and it supports two configurations.  One where the datasource is a
> file (one of .shp or.shx) in which case it provides one layer.  The other
> configuration is where a directory is given as the datasource name in
> which case it provides one layer per .shx/shp/dbf set in the directory.
>
> There is no mechanism existing now to do what you want short of
> constructing
> a complicated virtual file collecting several directory based shapefile
> datasources.   This approach would not be helpful to you, I think.
>
> 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
>
>


-- 
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101026/5b24486d/attachment.html


More information about the gdal-dev mailing list