PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_pt_outside()

void lwpoly_pt_outside ( const LWPOLY poly,
POINT2D pt_outside 
)

Definition at line 1423 of file lwgeodetic.c.

References LWPOLY::bbox, gbox_pt_outside(), and lwgeom_calculate_gbox_geodetic().

Referenced by lwpoly_calculate_circ_tree().

1424 {
1425  /* Make sure we have boxes */
1426  if ( poly->bbox )
1427  {
1428  gbox_pt_outside(poly->bbox, pt_outside);
1429  return;
1430  }
1431  else
1432  {
1433  GBOX gbox;
1434  lwgeom_calculate_gbox_geodetic((LWGEOM*)poly, &gbox);
1435  gbox_pt_outside(&gbox, pt_outside);
1436  return;
1437  }
1438 }
GBOX * bbox
Definition: liblwgeom.h:437
int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox)
Calculate the geodetic bounding box for an LWGEOM.
Definition: lwgeodetic.c:2615
void gbox_pt_outside(const GBOX *gbox, POINT2D *pt_outside)
Given a unit geocentric gbox, return a lon/lat (degrees) coordinate point point that is guaranteed to...
Definition: lwgeodetic.c:1444
Here is the call graph for this function:
Here is the caller graph for this function: