@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);
 }
Esempio n. 2
0
 @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);
   }
 }