[Gdal-dev] OGRTINDEX support for Geodatabases?
Mateusz Loskot
mateusz at loskot.net
Wed May 31 14:30:26 EDT 2006
Frank Warmerdam wrote:
> Mateusz Loskot wrote:
>
>> Matt Wilkie wrote:
>>
>>>> The other alternative is to build a DOS for loop to invoke
>>>> ogrtindex for each file via looping.
>>>
>>>
>>> e.g. for /r Z:\geodatabase %f in (*.mdb) do ogrtindex
>>> mdb_index.shp "%f"
>>>
>>> Will recursively search Z:\Geodatabase and index all .mdb files.
>>> Doesn't work on my machine though. Or rather the recursion works
>>> but ogrtindex exits with an error: "Schema of attributes of
>>> subsequent layers does not match ... Terminating."
>>
>>
>> And that's a correct behaviour of ogrtindex. Please, see my
>> previous post (second part) in this thread or refer to Bug 1144:
>> http://bugzilla.remotesensing.org/show_bug.cgi?id=1144
>>
>> Simply, all layers processing with ogrtindex should have the same
>> attributes schema.
>>
>> May be for PGeo this behaviour should be quite different, specific.
>> Frank, what do you think?
>
>
> Mateusz,
>
> There is nothing special about personal geodatabases having more than
> one layer. It is a common case.
Frank,
Yes, I have it in mind.
> For a tileindex to work properly
> with mapserver all the inserted layers need to be of a consistent
> schema.
Yes, indeed.
> Assuming all the .mdb files have a table that matches the
> others (but is presumably for a different geographic region) and
> assuming that layer always has a consistent name, you can use the
> -lname switch with ogrtindex to select just that layer.
This is clear. Thanks!
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list