PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ asgml2_point()

static void asgml2_point ( stringbuffer_t sb,
const LWPOINT point,
const GML_Options opts 
)
static

Definition at line 203 of file lwout_gml.c.

204 {
205 
206  stringbuffer_aprintf(sb, "<%sPoint", opts->prefix);
207  if (opts->srs) stringbuffer_aprintf(sb, " srsName=\"%s\"", opts->srs);
208  if (lwpoint_is_empty(point))
209  {
210  stringbuffer_append(sb, "/>");
211  return;
212  }
213  stringbuffer_append(sb, ">");
214  stringbuffer_aprintf(sb, "<%scoordinates>", opts->prefix);
215  asgml2_ptarray(sb, point->point, opts);
216  stringbuffer_aprintf(sb, "</%scoordinates>", opts->prefix);
217  stringbuffer_aprintf(sb, "</%sPoint>", opts->prefix);
218 }
int lwpoint_is_empty(const LWPOINT *point)
static void asgml2_ptarray(stringbuffer_t *sb, const POINTARRAY *pa, const GML_Options *opts)
Definition: lwout_gml.c:51
opts
Definition: ovdump.py:45
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
Definition: stringbuffer.c:247
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
Definition: stringbuffer.h:105
POINTARRAY * point
Definition: liblwgeom.h:471

References asgml2_ptarray(), lwpoint_is_empty(), ovdump::opts, LWPOINT::point, stringbuffer_append(), and stringbuffer_aprintf().

Referenced by asgml2_collection(), asgml2_multi(), and lwgeom_to_gml2().

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