/** * Write an Array of "slim" Points (without endianness and type, part of * LinearRing and Linestring, but not MultiPoint! */ private int estimatePointArray(Point[] geom) { // number of points int result = 4; // And the amount of the points itsself, in consistent geometries // all points have equal size. if (geom.length > 0) { result += geom.length * estimatePoint(geom[0]); } return result; }
/** * Write an Array of "slim" Points (without endianness and type, part of * LinearRing and Linestring, but not MultiPoint! */ private int estimatePointArray(Point[] geom) { // number of points int result = 4; // And the amount of the points itsself, in consistent geometries // all points have equal size. if (geom.length > 0) { result += geom.length * estimatePoint(geom[0]); } return result; }
result += estimatePoint((Point) geom); break; case Geometry.LINESTRING :
result += estimatePoint((Point) geom); break; case Geometry.LINESTRING :