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 **
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.