[GRASS5] OGR
Frank Warmerdam
warmerdam at pobox.com
Mon May 10 12:02:13 EDT 2004
Radim Blazek wrote:
> I added also OGR DBMI driver, but there is a problem,
> I wanted to use FID (feature ID) as GRASS category, unfortunately
> FID may be 0, in GRASS, category = 0 is the same as no category,
> so I used FID+1 in vector library, but I forgot that it cannot
> work in the driver.
>
> Any idea how to solve this?
Radim,
I'm not sure what is the problem with using FID+1. Could you explain
why this does not "work in the driver"?
As previously noted, many OGR formats are not suitable for random access,
and some do not have stable FIDs, though in some cases this is a bug that
could be corrected.
I'm not sure why the performance was so bad with shapefiles. Generally,
random access to shapefiles via FID should be relatively fast. It would
be interesting to see what is making this slow.
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
More information about the grass-dev
mailing list