Class GeometryWrapper

java.lang.Object
org.apache.jena.geosparql.implementation.GeometryWrapper
All Implemented Interfaces:
Serializable

public class GeometryWrapper extends Object implements Serializable
See Also:
  • Constructor Details

    • GeometryWrapper

      public GeometryWrapper(org.locationtech.jts.geom.Geometry geometry, String srsURI, String geometryDatatypeURI, DimensionInfo dimensionInfo)
      Parameters:
      geometry - In X/Y or Y/X coordinate order of the SRS URI.
      srsURI -
      geometryDatatypeURI -
      dimensionInfo -
    • GeometryWrapper

      public GeometryWrapper(org.locationtech.jts.geom.Geometry geometry, String srsURI, String geometryDatatypeURI, DimensionInfo dimensionInfo, String geometryLiteral)
      Parameters:
      geometry - In X/Y or Y/X coordinate order of the SRS URI.
      srsURI -
      geometryDatatypeURI -
      dimensionInfo -
      geometryLiteral -
    • GeometryWrapper

      public GeometryWrapper(org.locationtech.jts.geom.Geometry geometry, String geometryDatatypeURI)
      Default to WGS84 geometry and XY coordinate dimensions.
      Parameters:
      geometry - In X/Y or Y/X coordinate order of WGS84.
      geometryDatatypeURI -
    • GeometryWrapper

      public GeometryWrapper(org.locationtech.jts.geom.Geometry geometry, String srsURI, String geometryDatatypeURI)
      Default to XY coordinate dimensions.
      Parameters:
      geometry - In X/Y or Y/X coordinate order of the SRS URI.
      srsURI -
      geometryDatatypeURI -
    • GeometryWrapper

      public GeometryWrapper(String srsURI, String geometryDatatypeURI)
      Empty geometry with specified parameters.
      Parameters:
      srsURI -
      geometryDatatypeURI -
    • GeometryWrapper

      public GeometryWrapper(CustomCoordinateSequence pointCoordinateSequence, String geometryDatatypeURI, String srsURI)
      Point geometry with specified SRS.
      Parameters:
      pointCoordinateSequence -
      geometryDatatypeURI -
      srsURI -
    • GeometryWrapper

      public GeometryWrapper(GeometryWrapper geometryWrapper)
      Copy GeometryWrapper.
      Parameters:
      geometryWrapper -
  • Method Details

    • checkTransformSRS

      public GeometryWrapper checkTransformSRS(GeometryWrapper targetGeometryWrapper) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Transforms, if necessary, the provided target GeometryWrapper according to this GeometryWrapper SRS_URI.
      Parameters:
      targetGeometryWrapper -
      Returns:
      GeometryWrapper after transformation.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
    • transform

      public GeometryWrapper transform(String srsURI) throws org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, org.opengis.util.FactoryException
      Transform the GeometryWrapper into another spatial reference system.
      Parameters:
      srsURI -
      Returns:
      New GeometryWrapper after transformation, or this GeometryWrapper if no transformation.
      Throws:
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
      org.opengis.util.FactoryException
    • transform

      public GeometryWrapper transform(SRSInfo srsInfo) throws org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, org.opengis.util.FactoryException
      Transform the GeometryWrapper into another spatial reference system.
      Parameters:
      srsInfo -
      Returns:
      New GeometryWrapper after transformation, or this GeometryWrapper if no transformation.
      Throws:
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
      org.opengis.util.FactoryException
    • convertSRS

      public GeometryWrapper convertSRS(String srsURI) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Returns this geometry wrapper converted to the SRS_URI URI.
      Parameters:
      srsURI -
      Returns:
      GeometryWrapper after conversion.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
    • getCRS

      public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
      Returns:
      Coordinate/Spatial reference system of the GeometryWrapper.
    • getXYGeometry

      public org.locationtech.jts.geom.Geometry getXYGeometry()
      Returns:
      Geometry with coordinates in x,y order, regardless of SRS_URI.
    • getParsingGeometry

      public org.locationtech.jts.geom.Geometry getParsingGeometry()
      Returns:
      Geometry with coordinates as originally provided.
    • translateXYGeometry

      public org.locationtech.jts.geom.Geometry translateXYGeometry()
      XY geometry translated by the domain range of the SRS, if a Geographic SRS.
      Returns XY geometry if not a Geographic SRS.
      Returns:
      Geometry after translation in X direction.
    • getSrsURI

      public String getSrsURI()
      Returns:
      Coordinate/Spatial reference system URI.
    • getSRID

      public String getSRID()
      Returns:
      getSRID used in GeoSPARQL Standard page 22 to refer to srsURI. i.e. getSrsURI and getSRID are the same.
    • getSrsInfo

      public SRSInfo getSrsInfo()
      Returns:
      SRS information that the Geometry Wrapper is using.
    • isSRSRecognised

      public Boolean isSRSRecognised()
      Returns:
      Whether the SRS URI has been recognised. Operations may fail or not perform correctly when false.
    • getGeometryDatatypeURI

      public String getGeometryDatatypeURI()
      Returns:
      Datatype URI of the literal.
    • getGeometryType

      public String getGeometryType()
      Returns:
      The name of the parsing Geometry's actual class.
    • getGeometryDatatype

      public GeometryDatatype getGeometryDatatype()
      Returns:
      GeometryDatatype of the literal.
    • buffer

      public GeometryWrapper buffer(double distance, String targetDistanceUnitsURI) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Transformations between SRS and Units will increase the inaccuracy of the results.
      Parameters:
      distance -
      targetDistanceUnitsURI -
      Returns:
      Buffer around GeometryWrapper according the provided distance.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
    • getUTMZoneURI

      public String getUTMZoneURI() throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Returns:
      URI of the GeometryWrapper's UTM zone
      Throws:
      org.opengis.util.FactoryException
      org.opengis.geometry.MismatchedDimensionException
      org.opengis.referencing.operation.TransformException
    • getLatitude

      public Double getLatitude() throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Latitude if Geographic SRS or in WGS84.
      Used to convert between linear and non-linear units of measure.
      Returns:
      Latitude of Geometry.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • distanceEuclidean

      public double distanceEuclidean(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean) defaulting to metres.
      Parameters:
      targetGeometry -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distanceEuclidean

      public double distanceEuclidean(GeometryWrapper targetGeometry, UnitsOfMeasure unitsOfMeasure) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean) in the Units of Measure.
      Parameters:
      targetGeometry -
      unitsOfMeasure -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distanceEuclidean

      public double distanceEuclidean(GeometryWrapper targetGeometry, String targetDistanceUnitsURI) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean) in the Units of Measure stated in URI.
      Parameters:
      targetGeometry -
      targetDistanceUnitsURI -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distanceGreatCircle

      public double distanceGreatCircle(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Great Circle) defaulting to metres.
      Parameters:
      targetGeometry -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distanceGreatCircle

      public double distanceGreatCircle(GeometryWrapper targetGeometry, UnitsOfMeasure unitsOfMeasure) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Great Circle) in the Units of Measure.
      Parameters:
      targetGeometry -
      unitsOfMeasure -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distanceGreatCircle

      public double distanceGreatCircle(GeometryWrapper targetGeometry, String targetDistanceUnitsURI) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Great Circle) in the Units of Measure stated in URI.
      Parameters:
      targetGeometry -
      targetDistanceUnitsURI -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distance

      public double distance(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean or Great Circle depending on Geometry SRS URI) defaulting to metres.
      Parameters:
      targetGeometry -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distance

      public double distance(GeometryWrapper targetGeometry, UnitsOfMeasure unitsOfMeasure) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean or Great Circle depending on Geometry SRS URI) in the Units of Measure.
      Parameters:
      targetGeometry -
      unitsOfMeasure -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • distance

      public double distance(GeometryWrapper targetGeometry, String targetDistanceUnitsURI) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException, UnitsConversionException
      Distance (Euclidean or Great Circle depending on Geometry SRS URI) in the Units of Measure stated in URI.
      Parameters:
      targetGeometry -
      targetDistanceUnitsURI -
      Returns:
      Distance
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      UnitsConversionException
      org.opengis.geometry.MismatchedDimensionException
    • boundary

      public GeometryWrapper boundary()
      Returns:
      Boundary of GeometryWrapper
    • convexHull

      public GeometryWrapper convexHull()
      Returns:
      Convex Hull of GeometryWrapper
    • difference

      public GeometryWrapper difference(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Difference of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • envelope

      public GeometryWrapper envelope()
      Envelope of GeometryWrapper with original coordinate order.
      Returns:
      Envelope of GeometryWrapper
    • getEnvelope

      public org.locationtech.jts.geom.Envelope getEnvelope()
      Envelope of GeometryWrapper in XY order.
      Returns:
      Envelope of GeometryWrapper
    • intersection

      public GeometryWrapper intersection(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Intersection of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • relate

      public org.locationtech.jts.geom.IntersectionMatrix relate(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Intersection Matrix of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • relate

      public boolean relate(GeometryWrapper targetGeometry, String intersectionPattern) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      intersectionPattern -
      Returns:
      Relation of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • symDifference

      public GeometryWrapper symDifference(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Symmetric Difference of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • union

      public GeometryWrapper union(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Union of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • contains

      public boolean contains(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfContains of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • crosses

      public boolean crosses(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfCrosses of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • disjoint

      public boolean disjoint(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfDisjoint of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • equalsTopo

      public boolean equalsTopo(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Topology equals of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • equalsExact

      public boolean equalsExact(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      Equals exactly of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • equalsExact

      public boolean equalsExact(GeometryWrapper targetGeometry, double tolerance) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      tolerance -
      Returns:
      Equals exactly of GeometryWrapper with target using provided tolerance.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • intersects

      public boolean intersects(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfIntersects of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • overlaps

      public boolean overlaps(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfOverlaps of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • touches

      public boolean touches(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfTouches of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • within

      public boolean within(GeometryWrapper targetGeometry) throws org.opengis.util.FactoryException, org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
      Parameters:
      targetGeometry -
      Returns:
      sfWithin of GeometryWrapper with target.
      Throws:
      org.opengis.util.FactoryException
      org.opengis.referencing.operation.TransformException
      org.opengis.geometry.MismatchedDimensionException
    • asNodeValue

      public NodeValue asNodeValue() throws DatatypeFormatException
      Returns:
      GeometryWrapper as NodeValue
      Throws:
      DatatypeFormatException
    • asNode

      public Node asNode() throws DatatypeFormatException
      Returns:
      GeometryWrapper as Node
      Throws:
      DatatypeFormatException
    • asLiteral

      public Literal asLiteral() throws DatatypeFormatException
      Returns:
      GeometryWrapper as Literal
      Throws:
      DatatypeFormatException
    • asLiteral

      public Literal asLiteral(String outputGeometryDatatypeURI) throws DatatypeFormatException
      Parameters:
      outputGeometryDatatypeURI -
      Returns:
      GeometryWrapper as Literal in datatype form.
      Throws:
      DatatypeFormatException
    • asLiteral

      public Literal asLiteral(GeometryDatatype datatype)
      Parameters:
      datatype -
      Returns:
      GeometryWrapper as Literal
    • getCoordinateDimension

      public int getCoordinateDimension()
      Returns:
      Coordinate dimension, i.e. 2 (x,y), 3 (x,y,z or x,y,m) or 4 (x,y,z,m)
    • getSpatialDimension

      public int getSpatialDimension()
      Returns:
      Spatial dimension, i.e. 2 or 3
    • getTopologicalDimension

      public int getTopologicalDimension()
      Returns:
      Topological dimension, i.e. 0, 1 or 2
    • getCoordinateSequenceDimensions

      public CoordinateSequenceDimensions getCoordinateSequenceDimensions()
      Returns:
      Enum of coordinate dimensions.
    • getUnitsOfMeasure

      public UnitsOfMeasure getUnitsOfMeasure()
      Returns:
      Units of Measure for the GeometryWrapper SRS.
    • getDimensionInfo

      public DimensionInfo getDimensionInfo()
      Returns:
      GeometryWrapper's coordinate, spatial and topological dimensions.
    • getLexicalForm

      public String getLexicalForm()
      Returns:
      String literal of Geometry Wrapper.
    • isEmpty

      public boolean isEmpty()
      Returns:
      Geometry is empty of coordinates.
    • isSimple

      public boolean isSimple()
      Returns:
      Geometry is in simple form.
    • isValid

      public boolean isValid()
      Returns:
      Geometry is topologically valid.
    • extract

      public static final GeometryWrapper extract(NodeValue geometryLiteral, GeometryLiteralIndex.GeometryIndex targetIndex)
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      geometryLiteral -
      targetIndex -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static final GeometryWrapper extract(Node geometryLiteral, GeometryLiteralIndex.GeometryIndex targetIndex) throws DatatypeFormatException
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      geometryLiteral -
      targetIndex -
      Returns:
      Geometry Wrapper of the Geometry Literal.
      Throws:
      DatatypeFormatException
    • extract

      public static final GeometryWrapper extract(NodeValue geometryLiteral)
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      geometryLiteral -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static final GeometryWrapper extract(Node geometryLiteral)
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      geometryLiteral -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static final GeometryWrapper extract(Literal geometryLiteral, GeometryLiteralIndex.GeometryIndex targetIndex)
      Extract Geometry Wrapper from Geometry Literal. Returns null if invalid literal provided.
      Parameters:
      geometryLiteral -
      targetIndex -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static final GeometryWrapper extract(Literal geometryLiteral)
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      geometryLiteral -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static GeometryWrapper extract(String lexicalForm, String datatypeURI)
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      lexicalForm -
      datatypeURI -
      Returns:
      Geometry Wrapper of the Geometry Literal.
    • extract

      public static GeometryWrapper extract(String lexicalForm, String datatypeURI, GeometryLiteralIndex.GeometryIndex targetIndex) throws DatatypeFormatException
      Extract Geometry Wrapper from Geometry Literal.
      Parameters:
      lexicalForm -
      datatypeURI -
      targetIndex -
      Returns:
      Geometry Wrapper of the Geometry Literal.
      Throws:
      DatatypeFormatException
    • fromPoint

      public static final GeometryWrapper fromPoint(double x, double y, String srsURI)
      Builds a WKT Point of Geometry Wrapper.
      This method does not use the GeometryLiteralIndex and so is best used for one of Geometry Wrappers.
      Parameters:
      x -
      y -
      srsURI -
      Returns:
      Geometry Wrapper of WKT Point.
    • getEmptyWKT

      public static final GeometryWrapper getEmptyWKT()
      Returns:
      Empty GeometryWrapper in WKT datatype.
    • getEmptyGML

      public static final GeometryWrapper getEmptyGML()
      Returns:
      Empty GeometryWrapper in GML datatype.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object