Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread agerrius
Even, No, this is not the same problem as before. With the changes we discussed before I did get the filter to work perfectly. But now when I add the do-while loop around it for the interleaved reading I get unexpected results again. I'll try to isolate the problem in a small sample program tonig

Re: [gdal-dev] Missing features after copying layers from Shapefiles to SQLite

2014-03-02 Thread Jukka Rahkonen
Nik Sands nixanz.com> writes: > > Hi all, > > I'm planning to switch from using a standard file format of Shapefiles to Spatialite for internal storage > of spatial data. > > When importing from other formats, the app attempts to convert these to SQLite (Spatialite) using > 'OGR_DS_CopyLayer'

[gdal-dev] Missing features after copying layers from Shapefiles to SQLite

2014-03-02 Thread Nik Sands
Hi all, I'm planning to switch from using a standard file format of Shapefiles to Spatialite for internal storage of spatial data. When importing from other formats, the app attempts to convert these to SQLite (Spatialite) using 'OGR_DS_CopyLayer' to copy each layer from the source data set to

Re: [gdal-dev] Cannot compile GDAL 1.10.1 for iOS with spatialite (2, 3 or 4)

2014-03-02 Thread Nik Sands
Thanks Even, that seems to have done the trick. Although I've now got a lot of features missing when using a spatial filter to decide what to display. But that's a whole other issue, and I'll need to do more investigation about that before deciding if I need to ask about it here. :-) Cheers,

Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread Even Rouault
Le dimanche 02 mars 2014 21:26:39, agerrius a écrit : > Thanks for the answer. > > I do have a question about the interleaved mode. I have trouble to combine > it with the SetAttributeFilter command on a layer. I have the impression > that when the first "slice" of the interleaved reading doesn't

Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread agerrius
Thanks for the answer. I do have a question about the interleaved mode. I have trouble to combine it with the SetAttributeFilter command on a layer. I have the impression that when the first "slice" of the interleaved reading doesn't contain any features that match the filter, that the reading sto

Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread Even Rouault
Le dimanche 02 mars 2014 17:59:49, agerrius a écrit : > Even, > > Thanks for the quick reply and the quick fix. > > I'm looking at implementing the interleaved reading in my code as well, > since some files throw an error with the normal reading mode. Are you > saying this issue will not happen w

Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread agerrius
Even, Thanks for the quick reply and the quick fix. I'm looking at implementing the interleaved reading in my code as well, since some files throw an error with the normal reading mode. Are you saying this issue will not happen with interleaved reading mode? Arno -- View this message in conte

Re: [gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread Even Rouault
Le dimanche 02 mars 2014 15:47:37, agerrius a écrit : > Hi all, > > I'm using the OGR libraries from a C# application to read OSM data. But I > have a problem now, with a certain file the reading of the features > "stalls". It seems GetNextFeature() never returns anything. > > When I use ogrinfo

[gdal-dev] C# OGR reading OSM features "stalls"

2014-03-02 Thread agerrius
Hi all, I'm using the OGR libraries from a C# application to read OSM data. But I have a problem now, with a certain file the reading of the features "stalls". It seems GetNextFeature() never returns anything. When I use ogrinfo -al on the same file it also seems to stall (probably at the same po