PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pointArray_GMLsize()

static size_t pointArray_GMLsize ( POINTARRAY pa,
int  precision 
)
static

Definition at line 1947 of file lwout_gml.c.

1948 {
1949  if (FLAGS_NDIMS(pa->flags) == 2)
1950  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(", ")) * 2 * pa->npoints;
1951 
1952  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(", ")) * 3 * pa->npoints;
1953 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:193
#define OUT_MAX_DIGS_DOUBLE
lwflags_t flags
Definition: liblwgeom.h:417
uint32_t npoints
Definition: liblwgeom.h:413

References POINTARRAY::flags, FLAGS_NDIMS, POINTARRAY::npoints, OUT_MAX_DIGS_DOUBLE, and precision.

Referenced by asgml2_line_size(), asgml2_point_size(), asgml2_poly_size(), asgml3_circstring_size(), asgml3_compound_size(), asgml3_curvepoly_size(), asgml3_line_size(), asgml3_point_size(), asgml3_poly_size(), asgml3_triangle_size(), gbox_to_gml2(), and gbox_to_gml3().

Here is the caller graph for this function: