PostGIS  2.5.7dev-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.

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 }
static uint8_t precision
Definition: cu_in_twkb.c:25
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:734
static char * gbox_to_gml3(const GBOX *bbox, const char *srs, int precision, int opts, const char *prefix)
Definition: lwout_gml.c:130
opts
Definition: ovdump.py:44

References gbox_to_gml3(), lwgeom_get_bbox(), ovdump::opts, and precision.

Referenced by do_gml3_extent_test(), and LWGEOM_asGML().

Here is the call graph for this function:
Here is the caller graph for this function: