PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_extent_to_gml3()

char* lwgeom_extent_to_gml3 ( const LWGEOM geom,
const char *  srs,
int  precision,
int  opts,
const char *  prefix 
)
Parameters
optsoutput options bitfield, see LW_GML macros for meaning

Definition at line 213 of file lwout_gml.c.

References gbox_to_gml3(), and lwgeom_get_bbox().

Referenced by do_gml3_extent_test(), and LWGEOM_asGML().

214 {
215  const GBOX* bbox = lwgeom_get_bbox(geom);
216  /*
217  if ( ! bbox ) {
218  lwerror("lwgeom_extent_to_gml3: empty geometry doesn't have a bounding box");
219  return NULL;
220  }
221  */
222  return gbox_to_gml3(bbox, srs, precision, opts, prefix);
223 }
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:689
uint8_t precision
Definition: cu_in_twkb.c:25
opts
Definition: ovdump.py:44
static char * gbox_to_gml3(const GBOX *bbox, const char *srs, int precision, int opts, const char *prefix)
Definition: lwout_gml.c:130
Here is the call graph for this function:
Here is the caller graph for this function: