public class MultiPoint2D extends BaseMultiPrimitive implements MultiPoint
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatusgeometriesgeometryType, geomManager, id, projectionBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Constructor and Description |
|---|
MultiPoint2D(GeometryType geometryType)
The constructor with the GeometryType like and argument
is used by the
GeometryType#create()
to create the geometry |
MultiPoint2D(GeometryType geometryType,
java.lang.String id,
IProjection projection,
Point2D[] points) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point point)
Adds a new point to the multipoint
|
void |
addPrimitive(Primitive primitive)
Adds a new primitive to the primitive
|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one.
|
Geometry |
cloneGeometry()
Creates a clone of this geometry.
|
java.awt.Rectangle |
getBounds() |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns this geometry's boundary rectangle.
|
Envelope |
getEnvelope()
Returns the minimum bounding box for this Geometry.
|
int |
getNumgeometries()
Deprecated.
use getPrimitivesNumber
|
int |
getNumPoints()
Deprecated.
use getPrimitivesNumber
|
Point2D |
getPoint(int i) |
Point |
getPointAt(int index)
Gets the point that is on a concrete position
inside the multi point
|
void |
setPoints(double[] x,
double[] y) |
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
contains, contains, contains, contains, ensureCapacity, fastIntersects, getDimension, getGeneralPath, getGeometries, getHandlers, getInternalShape, getPathIterator, getPathIterator, getPrimitiveAt, getPrimitivesNumber, getSelectHandlers, getStretchingHandlers, intersection, intersects, intersects, isSimple, reProject, unionarea, buffer, centroid, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getInteriorPoint, getShape, getShape, getShapeType, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitensureCapacitygetPrimitiveAt, getPrimitivesNumber, intersection, unionarea, buffer, centroid, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getDimension, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, union, withinpublic MultiPoint2D(GeometryType geometryType)
GeometryType#create()
to create the geometrytype - The geometry typepublic MultiPoint2D(GeometryType geometryType, java.lang.String id, IProjection projection, Point2D[] points)
geometryType - id - projection - points - public Geometry cloneGeometry()
GeometrycloneGeometry in interface GeometrycloneGeometry in class AbstractPrimitivepublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.ShapegetBounds in class BaseMultiPrimitivepublic java.awt.geom.Rectangle2D getBounds2D()
GeometrygetBounds2D in interface java.awt.ShapegetBounds2D in interface GeometrygetBounds2D in class BaseMultiPrimitivepublic FShape cloneFShape()
FShapecloneFShape in interface FShapecloneFShape in class BaseMultiPrimitivepublic int getNumgeometries()
public int getNumPoints()
public Point2D getPoint(int i)
public void transform(java.awt.geom.AffineTransform at)
Geometrypublic Envelope getEnvelope()
GeometryReturns the minimum bounding box for this Geometry. This shall be the coordinate region spanning the minimum and maximum value for each ordinate taken on by DirectPositions in this Geometry. The simplest representation for an envelope consists of two DirectPositions, the first one containing all the minimums for each ordinate, and second one containing all the maximums.
getEnvelope in interface GeometrygetEnvelope in class BaseMultiPrimitivepublic void addPoint(Point point)
MultiPointaddPoint in interface MultiPointpoint - The point to addpublic void addPrimitive(Primitive primitive)
MultiPrimitiveaddPrimitive in interface MultiPrimitiveaddPrimitive in class BaseMultiPrimitiveprimitive - The primitive to addpublic void setPoints(double[] x,
double[] y)
public Point getPointAt(int index)
MultiPointgetPointAt in interface MultiPointindex - The position