PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwpoly_pt_outside()

void lwpoly_pt_outside ( const LWPOLY poly,
POINT2D pt_outside 
)

Definition at line 1440 of file lwgeodetic.c.

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

Referenced by lwpoly_calculate_circ_tree().

1441 {
1442  /* Make sure we have boxes */
1443  if ( poly->bbox )
1444  {
1445  gbox_pt_outside(poly->bbox, pt_outside);
1446  return;
1447  }
1448  else
1449  {
1450  GBOX gbox;
1451  lwgeom_calculate_gbox_geodetic((LWGEOM*)poly, &gbox);
1452  gbox_pt_outside(&gbox, pt_outside);
1453  return;
1454  }
1455 }
GBOX * bbox
Definition: liblwgeom.h:452
int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox)
Calculate the geodetic bounding box for an LWGEOM.
Definition: lwgeodetic.c:2626
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:1461
Here is the call graph for this function:
Here is the caller graph for this function: