@Override public void visit(Point geom) { writeByteOrder(output); DimensionalFlag dimension = DimensionalFlag.valueOf(geom.is3D(), geom.isMeasured()); writeTypeCodeAndSrid(geom, dimension, output); writePoints(geom.getPoints(), geom.getCoordinateDimension(), output); }
@Override public void visit(Point<P> geom) { writeByteOrder(output); writeTypeCodeAndSrid(geom, output); if (geom.isEmpty()) { output.putUInt(0); } else { writePoints(geom.getPositions(), geom.getCoordinateDimension(), output); } }