How can I set index field for .shp file ?

classic Classic list List threaded Threaded
3 messages Options
TonBrouwer TonBrouwer
Reply | Threaded
Open this post in threaded view
|

How can I set index field for .shp file ?

Hi,

How can I set the fieldname to be used for indexing for a .shp file ?
I want to set it in the .earth file, but probably "overlooking or misreading" something....

Regards,
Ton
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How can I set index field for .shp file ?

Depends what you mean by "index."

If you want to indicate the attribute to use as a unique Feature ID, you can use the "fid_attribute" property.

If you want to create a column or spatial index, you need to do that offline with the ogr2ogr tool.

Hope this helps.
Glenn Waldron / Pelican Mapping
TonBrouwer TonBrouwer
Reply | Threaded
Open this post in threaded view
|

Re: How can I set index field for .shp file ?

Thanks, that was exactly what I was trying to find.
Ton