Interface Geometry<P extends Positions>
-
- Type Parameters:
P- The Position type param.
- All Known Implementing Classes:
AbstractGeometry,GeometryCollection,LinearGeometry,LinearRing,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,Polygon
public interface Geometry<P extends Positions>A Geometry is a definition of a shape (A collection of coordinates). GeoJson reference: @see http://geojson.org/geojson-spec.html#geometry-objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGeometry.TypeDefine the type of the Geometry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ppositions()Returns the Position underlying instance.intsize()Returns the size of this Geometry.Geometry.Typetype()Returns the Geometry type.
-
-
-
Method Detail
-
type
Geometry.Type type()
Returns the Geometry type.- Returns:
- Type
-
positions
P positions()
Returns the Position underlying instance.- Returns:
- Position
-
size
int size()
Returns the size of this Geometry. Depending of the type of this Geometry, it may have different meaning. eg: For a LineString it is the number of points, for a MultiPolygon it is the number of polygons.- Returns:
- Int
-
-