コード例 #1
0
 @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);
 }
コード例 #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);
   }
 }