Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-02 Thread Martin Chapman
: 'kedardeshpande87'; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads Selon Martin Chapman : > Kedar, > > Think about it...how does GetNextFeature() know what feature is next? > It's because somewhere inside the

Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-02 Thread Even Rouault
Selon Martin Chapman : > Kedar, > > Think about it...how does GetNextFeature() know what feature is next? > It's because somewhere inside the datasource handle there is probably a > variable that is keeping track of what record is next. If multiple > threads are all using the same datasource hand

Re: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-01 Thread Martin Chapman
bject: [gdal-dev] Corrupted .shp error when reading shapefile from multiple threads Hi, I am writing an application in Java with gdal's java bindings that reads a zipcode layer shapefile. I set a spatial filter of a point on the layer and get the zipcode by reading from the layer. ... Dat

[gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-01 Thread kedardeshpande87
Hi, I am writing an application in Java with gdal's java bindings that reads a zipcode layer shapefile. I set a spatial filter of a point on the layer and get the zipcode by reading from the layer. ... DataSource ds = ogr.Open("path/to/shapefile"); Layer layer = ds.GetLayer(0); ... public void get