Merge pull request #1073 from MapQuest/shapeindex-null-bug
Pos counter in shapeindex not incremented for null geometry
This commit is contained in:
commit
eb210581a5
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ int main (int argc,char** argv)
|
||||||
box2d<double> item_ext;
|
box2d<double> item_ext;
|
||||||
if (shape_type==shape_io::shape_null)
|
if (shape_type==shape_io::shape_null)
|
||||||
{
|
{
|
||||||
|
// still need to increment pos, or the pos counter
|
||||||
|
// won't indicate EOF until too late.
|
||||||
|
pos+=4+content_length;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (shape_type==shape_io::shape_point)
|
else if (shape_type==shape_io::shape_point)
|
||||||
|
|
Loading…
Reference in a new issue