writePoint method

void writePoint(
  1. Point pt,
  2. List<int> os
)

Implementation

void writePoint(Point pt, List<int> os) {
  if (pt.getCoordinateSequence().size() == 0)
    throw ArgumentError("Empty Points cannot be represented in WKB");
  if (!doSpatialite) writeByteOrder(os);

  writeGeometryType(WKBConstants.wkbPoint, pt, os);
  writeCoordinateSequence(pt.getCoordinateSequence(), false, os);
}