estimatePointArray method

int estimatePointArray(
  1. List<Coordinate> geom
)

Write an Array of "slim" Points (without endianness and type, part of LinearRing and Linestring, but not MultiPoint!

Implementation

int estimatePointArray(List<Coordinate> geom) {
  // number of points
  int result = 4;

  // And the amount of the points itsself, in consistent geometries
  // all points have equal size.
  if (geom.isNotEmpty) {
    result += geom.length * estimatePoint(geom[0]);
  }
  return result;
}