Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Commented Unassigned: OGR Vectors [24351]

$
0
0
Hi,

I'm triyng to load data from a database by using OGR Vectors in DotSpatial. I have no problem opening .shp and kml.
But when I open a datasource using a connection string, when DotSpatial.Data.OgrDataReader.Read(l321) is called I get an error because iFeatureIndex (value : 0) doesn't match with any feature in my layer. I fixed the bug by replacing:
```
_currentFeature = _ogrLayer.GetFeature(_iFeatureIndex);
```
by :
```
_currentFeature = _ogrLayer.GetNextFeature();
```

because I've already worked on an OGRDriver customized (and I try to use it) this solution seems right to me.
I need your approbation about this. Am I wrong? Is still someone working on this?
Did you know this issue? Are you going to fix it?


Nat.
Comments: ** Comment from web user: mogikanin **

Yes, your change looks more correct than current code.


Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>