hasNext method
Implementation
Future<bool> hasNext() async {
while (nextFeature == null && await filesHaveMore()) {
Record? record = await shp.nextRecord();
Geometry geometry = getGeometry(record!, shp.buffer);
if (geometry != SKIP) {
// also grab the dbf row
Row? row;
// if (dbf != null) {
row = await dbf?.readRow();
if (row != null && row.isDeleted()) {
continue;
}
// } else {
// row = null;
// }
nextFeature = await buildFeature(
shp.recordNumber, geometry, row, record.envelope());
} else {
// if (dbf != null) {
dbf!.skip();
// }
}
}
return nextFeature != null;
}