JTS
Comment:
- The JTS Topology Suite is a Java API that implements a core set of spatial data operations using an explicit precision model and robust geometric algorithms.
It provides a complete model for specifying 2-D linear Geometry.
Many common operations in computational geometry and spatial data processing are exposed in a clear, consistent and integrated API.
JTS is intended to be used in the development of applications that support the validation, cleaning, integration and querying of spatial datasets.
http://www.vividsolutions.com/jts/JTSHome.htm
JTS_Coordinate
Methods:
- Distance (Coordinate1 As Coordinate) As Double
- Initialize (X As Double, Y As Double)
- Initialize2 (X As Double, Y As Double, Z As Double)
- Initialize3 (Coordinate1 As Coordinate)
- IsInitialized As Boolean
- SetCoordinate (Coordinate1 As Coordinate)
Properties:
- X As Double [read only]
- Y As Double [read only]
- Z As Double [read only]
JTS_Geometry
Methods:
- Contains (Geometry1 As Geometry) As Boolean
Returns true if this geometry contains Geometry1.
- ConvexHull As Geometry
Computes the smallest convex Polygon that contains all the points in the Geometry.
- CoveredBy (Geometry1 As Geometry) As Boolean
Returns true if this geometry is covered by Geometry1.
- Covers (Geometry1 As Geometry) As Boolean
Returns true if this geometry covers Geometry1.
- Crosses (Geometry1 As Geometry) As Boolean
Returns true if this geometry crosses Geomtery1.
- Difference (Geometry1 As Geometry) As Geometry
Computes a Geometry representing the points making up this Geometry that do not make up Geometry1.
- Disjoint (Geometry1 As Geometry) As Boolean
Returns true if this geometry is disjoint to Geometry1.
- Distance (Geometry1 As Geometry) As Double
Returns the minimum distance between this Geometry and Geometry1.
- GetArea As Double
Returns the area of this Geometry.
- GetBoundary As Geometry
Returns the boundary, or an empty geometry of appropriate dimension if this Geometry is empty.
- GetBoundaryDimension As Int
Returns the dimension of this Geometry's inherent boundary.
- GetCentroid As Point
Computes the centroid of this Geometry.
- GetCoordinate As Coordinate
Returns a vertex of this Geometry.
- GetCoordinates As Coordinate[]
Returns this Geometry's vertices.
- GetDimension As Int
Returns the dimension of this Geometry.
- GetEnvelope As Geometry
Returns this Geometry's bounding box.
- GetEnvelopeInternal As Envelope
Returns the minimum and maximum x and y values in this Geometry , or an uninitialized Envelope if this Geometry is empty.
- GetFactory As GeometryFactory
Gets the factory which contains the context in which this geometry was created.
- GetGeometryN (N As Int) As Geometry
Returns an element Geometry from a GeometryCollection (or this, if the geometry is not a collection).
- GetGeometryType As String
Returns the name of this object's com.vividsolutions.jts.geom interface.
- GetLength As Double
Returns the length of this Geometry.
- GetNumGeometries As Int
Returns the number of Geometrys in a GeometryCollection (or 1, if the geometry is not a collection).
- GetNumPoints As Int
Returns the count of this Geometrys vertices.
- GetSRID As Int
Returns the ID of the Spatial Reference System used by the Geometry.
- GetUserData As Object
Gets the user data object for this geometry, if any.
- Intersection (Geometry1 As Geometry) As Geometry
Computes a Geometry representing the points shared by this Geometry and Geometry1.
- Intersects (Geometry1 As Geometry) As Boolean
Returns true if this geometry intersects geometry1.
- IsEmpty As Boolean
Returns whether or not the set of points in this Geometry is empty.
- IsInitialized As Boolean
- IsRectangle As Boolean
- IsSimple As Boolean
Tests whether this Geometry is simple.
- IsValid As Boolean
Tests the validity of this Geometry.
- IsWithinDistance (Geometry1 As Geometry, Distance As Double) As Boolean
Tests whether the distance from this Geometry to Geometry1 is less than or equal to Distance.
- Normalize
Converts this Geometry to normal form (or canonical form ).
- Overlaps (Geometry1 As Geometry) As Boolean
Returns true if this geometry overlaps the specified geometry.
- SetSRID (SRID As Int)
Sets the ID of the Spatial Reference System used by the Geometry.
- SetUserData (UserData As Object)
A simple scheme for applications to add their own custom data to a Geometry.
- SymDifference (Geometry1 As Geometry) As Geometry
Returns a set combining the points in this Geometry not in Geometry1, and the points in Geometry1 not in this Geometry.
- ToText As String
Returns the Well-known Text representation of this Geometry.
- Touches (Geometry1 As Geometry) As Boolean
Returns true if this geometry touches the specified geometry.
- Union (Geometry1 As Geometry) As Geometry
Computes a Geometry representing all the points in this Geometry and Geometry1.
- Within (Geometry1 As Geometry) As Boolean
Returns true if this geometry is within Geometry1.
JTS_GeometryCollection
Methods:
- GetArea As Double
Returns the area of this GeometryCollection.
- GetBoundary As Geometry
Returns the boundary, or an empty geometry of appropriate dimension if this Geometry is empty.
- GetBoundaryDimension As Int
Returns the dimension of this Geometry's inherent boundary.
- GetCoordinate As Coordinate
Returns a vertex of this Geometry.
- GetCoordinates As Coordinate[]
Collects all coordinates of all sub-geometries into an Array.
- GetDimension As Int
Returns the dimension of this Geometry.
- GetGeometryN (N As Int) As Geometry
Returns an element Geometry from a GeometryCollection (or this, if the geometry is not a collection).
- GetGeometryType As String
Returns the name of this object's com.vividsolutions.jts.geom interface.
- GetLength As Double
Returns the length of this Geometry.
- GetNumGeometries As Int
Returns the number of Geometrys in a GeometryCollection (or 1, if the geometry is not a collection).
- GetNumPoints As Int
Returns the count of this Geometrys vertices.
- IsEmpty As Boolean
Returns whether or not the set of points in this Geometry is empty.
- IsInitialized As Boolean
- Normalize
Converts this Geometry to normal form (or canonical form ).
JTS_GeometryFactory
Methods:
- CreatePoint (Coordinate1 As Coordinate) As Point
- Initialize (SRID As Int)
- IsInitialized As Boolean
JTS_MultiPolygon
Methods:
JTS_Point
Methods:
- GetCoordinate As Coordinate
- GetDimension As Int
- IsInitialized As Boolean
Properties:
- X As Double [read only]
- Y As Double [read only]
JTS_Version
Fields:
- MAJOR As Int
- MINOR As Int
- PATCH As Int
Methods:
JTS_WKBReader
Methods:
- HexToBytes (Hex As String) As Byte[]
Converts a hexadecimal string to a byte array.
- Initialize
- IsInitialized As Boolean
- Read (Bytes() As Byte) As Geometry
Reads a single Geometry from a byte array.
JTS_WKTReader
Methods:
- Initialize
- IsInitialized As Boolean
- Read (WKTString As String) As Geometry
Reads a Well-Known Text representation of a Geometry from a String.