Check to see if this geocentric gbox is wrapped around a pole.
Only makes sense if this gbox originated from a polygon, as it's assuming the box is generated from external edges and there's an "interior" which contains the pole.
This function is overdetermined, for very large polygons it might add an unwarranted pole. STILL NEEDS WORK!
Definition at line 316 of file lwgeodetic.c.
References gbox_to_string(), LW_FALSE, LW_TRUE, LWDEBUG, LWDEBUGF, GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.
Referenced by lwpolygon_calculate_gbox_geodetic().
322 if (gbox->
xmin < 0.0 && gbox->
xmax > 0.0 &&
323 gbox->
ymin < 0.0 && gbox->
ymax > 0.0)
326 if ((gbox->
zmin > 0.0) && (gbox->
zmax > 0.0))
328 LWDEBUG(4,
"enclosed positive z axis");
332 else if ((gbox->
zmin < 0.0) && (gbox->
zmax < 0.0))
334 LWDEBUG(4,
"enclosed negative z axis");
340 LWDEBUG(4,
"enclosed both z axes");
348 if (gbox->
xmin < 0.0 && gbox->
xmax > 0.0 &&
349 gbox->
zmin < 0.0 && gbox->
zmax > 0.0)
351 if ((gbox->
ymin > 0.0) && (gbox->
ymax > 0.0))
353 LWDEBUG(4,
"enclosed positive y axis");
356 else if ((gbox->
ymin < 0.0) && (gbox->
ymax < 0.0))
358 LWDEBUG(4,
"enclosed negative y axis");
363 LWDEBUG(4,
"enclosed both y axes");
371 if (gbox->
ymin < 0.0 && gbox->
ymax > 0.0 &&
372 gbox->
zmin < 0.0 && gbox->
zmax > 0.0)
374 if ((gbox->
xmin > 0.0) && (gbox->
xmax > 0.0))
376 LWDEBUG(4,
"enclosed positive x axis");
379 else if ((gbox->
xmin < 0.0) && (gbox->
xmax < 0.0))
381 LWDEBUG(4,
"enclosed negative x axis");
386 LWDEBUG(4,
"enclosed both x axes");
char * gbox_to_string(const GBOX *gbox)
Allocate a string representation of the GBOX, based on dimensionality of flags.
#define LWDEBUG(level, msg)
#define LW_TRUE
Return types for functions with status returns.
#define LWDEBUGF(level, msg,...)