private int getPointByteSize(Geometry geom) { return geom.getCoordinateDimension() * ByteBuffer.DOUBLE_SIZE; }