PostGIS  2.1.10dev-r@@SVN_REVISION@@
char* lwgeom_extent_to_gml2 ( const LWGEOM geom,
const char *  srs,
int  precision,
const char *  prefix 
)

Definition at line 178 of file lwout_gml.c.

References gbox_to_gml2(), and lwgeom_get_bbox().

Referenced by do_gml2_extent_test(), and LWGEOM_asGML().

179 {
180  const GBOX* bbox = lwgeom_get_bbox(geom);
181 /*
182  if ( ! bbox ) {
183  lwerror("lwgeom_extent_to_gml2: empty geometry doesn't have a bounding box");
184  return NULL;
185  }
186 */
187  char *ret = gbox_to_gml2(bbox, srs, precision, prefix);
188  return ret;
189 }
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_gml2(const GBOX *bbox, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:57

Here is the call graph for this function:

Here is the caller graph for this function: