PostGIS  2.1.10dev-r@@SVN_REVISION@@
void lwpoly_pt_outside ( const LWPOLY poly,
POINT2D pt_outside 
)

Definition at line 1422 of file lwgeodetic.c.

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

Referenced by lwpoly_calculate_circ_tree().

1423 {
1424  /* Make sure we have boxes */
1425  if ( poly->bbox )
1426  {
1427  gbox_pt_outside(poly->bbox, pt_outside);
1428  return;
1429  }
1430  else
1431  {
1432  GBOX gbox;
1433  lwgeom_calculate_gbox_geodetic((LWGEOM*)poly, &gbox);
1434  gbox_pt_outside(&gbox, pt_outside);
1435  return;
1436  }
1437 }
GBOX * bbox
Definition: liblwgeom.h:409
int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox)
Calculate the geodetic bounding box for an LWGEOM.
Definition: lwgeodetic.c:2612
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:1443

Here is the call graph for this function:

Here is the caller graph for this function: