PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t pointArray_GMLsize ( POINTARRAY pa,
int  precision 
)
static

Definition at line 1471 of file lwout_gml.c.

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

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

1472 {
1473  if (FLAGS_NDIMS(pa->flags) == 2)
1474  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(", ")) * 2 * pa->npoints;
1475 
1476  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(", ")) * 3 * pa->npoints;
1477 }
int npoints
Definition: liblwgeom.h:327
uint8_t flags
Definition: liblwgeom.h:325
#define OUT_MAX_DIGS_DOUBLE
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118

Here is the caller graph for this function: