PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ lwpoly_pt_outside()

void lwpoly_pt_outside ( const LWPOLY poly,
POINT2D pt_outside 
)

Definition at line 1444 of file lwgeodetic.c.

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

Referenced by lwpoly_calculate_circ_tree().

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