improve shapeindex support for pointz
This commit is contained in:
parent
c2813464a9
commit
c30ceb1be4
1 changed files with 7 additions and 1 deletions
|
@ -176,6 +176,7 @@ int main (int argc,char** argv)
|
|||
{
|
||||
double x=shp.read_double();
|
||||
double y=shp.read_double();
|
||||
// skip m
|
||||
shp.read_double();
|
||||
item_ext=box2d<double>(x,y,x,y);
|
||||
|
||||
|
@ -184,8 +185,13 @@ int main (int argc,char** argv)
|
|||
{
|
||||
double x=shp.read_double();
|
||||
double y=shp.read_double();
|
||||
// skip z
|
||||
shp.read_double();
|
||||
shp.read_double();
|
||||
//skip m if exists
|
||||
if ( content_length == 8 + 36)
|
||||
{
|
||||
shp.read_double();
|
||||
}
|
||||
item_ext=box2d<double>(x,y,x,y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue