createPoint method

Point createPoint(
  1. Coordinate? coordinate
)

Creates a Point using the given Coordinate. A null Coordinate creates an empty Geometry.

@param coordinate a Coordinate, or null @return the created Point

Implementation

Point createPoint(Coordinate? coordinate) {
  return createPointSeq(coordinate != null
      ? getCoordinateSequenceFactory().create([coordinate])
      : null);
}