org.postgis
Class Geometry
java.lang.Object
|
+--org.postgis.Geometry
- Direct Known Subclasses:
- LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
- public class Geometry
- extends java.lang.Object
Field Summary |
int |
dimension
The dimensionality of this feature (2,3) |
static int |
GEOMETRYCOLLECTION
The OGIS geometry type number for feature collections. |
static int |
LINESTRING
The OGIS geometry type number for lines. |
static int |
MULTILINESTRING
The OGIS geometry type number for aggregate lines. |
static int |
MULTIPOINT
The OGIS geometry type number for aggregate points. |
static int |
MULTIPOLYGON
The OGIS geometry type number for aggregate polygons. |
static int |
POINT
The OGIS geometry type number for points. |
static int |
POLYGON
The OGIS geometry type number for polygons. |
int |
type
The OGIS geometry type of this feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dimension
public int dimension
- The dimensionality of this feature (2,3)
type
public int type
- The OGIS geometry type of this feature.
POINT
public static int POINT
- The OGIS geometry type number for points.
LINESTRING
public static int LINESTRING
- The OGIS geometry type number for lines.
POLYGON
public static int POLYGON
- The OGIS geometry type number for polygons.
MULTIPOINT
public static int MULTIPOINT
- The OGIS geometry type number for aggregate points.
MULTILINESTRING
public static int MULTILINESTRING
- The OGIS geometry type number for aggregate lines.
MULTIPOLYGON
public static int MULTIPOLYGON
- The OGIS geometry type number for aggregate polygons.
GEOMETRYCOLLECTION
public static int GEOMETRYCOLLECTION
- The OGIS geometry type number for feature collections.
Feature collections are not currently supported by the
backend.
Geometry
public Geometry()
getType
public int getType()
- Returns:
- The OGIS geometry type number of this geometry.
getDimension
public int getDimension()
- Returns:
- The dimensionality (eg, 2D or 3D) of this geometry.