skip null geometries for indexed shapefiles (already skip for non-indexed) to avoid invalid reads - TODO - consider not adding to index to avoid need to skip
This commit is contained in:
parent
bfd27f6047
commit
e901058eba
1 changed files with 8 additions and 2 deletions
|
@ -150,8 +150,14 @@ feature_ptr shape_index_featureset<filterT>::next()
|
||||||
while(!filter_.pass(shape_.current_extent()) &&
|
while(!filter_.pass(shape_.current_extent()) &&
|
||||||
itr_!=ids_.end())
|
itr_!=ids_.end())
|
||||||
{
|
{
|
||||||
pos=*itr_++;
|
if (shape_.type() != shape_io::shape_null) {
|
||||||
shape_.move_to(pos);
|
pos=*itr_++;
|
||||||
|
shape_.move_to(pos);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return feature_ptr();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
|
|
Loading…
Reference in a new issue