PostGIS  2.1.10dev-r@@SVN_REVISION@@
char* lwgeom_extent_to_gml3 ( const LWGEOM geom,
const char *  srs,
int  precision,
int  opts,
const char *  prefix 
optsoutput options bitfield, see LW_GML macros for meaning

Definition at line 193 of file lwout_gml.c.

References gbox_to_gml3(), and lwgeom_get_bbox().

Referenced by do_gml3_extent_test(), and LWGEOM_asGML().

194 {
195  const GBOX* bbox = lwgeom_get_bbox(geom);
196 /*
197  if ( ! bbox ) {
198  lwerror("lwgeom_extent_to_gml3: empty geometry doesn't have a bounding box");
199  return NULL;
200  }
201 */
202  return gbox_to_gml3(bbox, srs, precision, opts, prefix);
203 }
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
Definition: lwgeom.c:596
static char * gbox_to_gml3(const GBOX *bbox, const char *srs, int precision, int opts, const char *prefix)
Definition: lwout_gml.c:111

Here is the call graph for this function:

Here is the caller graph for this function: