Class GeometryWrapper

  • All Implemented Interfaces:
    java.io.Serializable

    public class GeometryWrapper
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • GeometryWrapper

        public GeometryWrapper​(org.locationtech.jts.geom.Geometry geometry,
                               java.lang.String srsURI,
                               java.lang.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,
                               java.lang.String srsURI,
                               java.lang.String geometryDatatypeURI,
                               DimensionInfo dimensionInfo,
                               java.lang.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,
                               java.lang.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,
                               java.lang.String srsURI,
                               java.lang.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​(java.lang.String srsURI,
                               java.lang.String geometryDatatypeURI)
        Empty geometry with specified parameters.
        Parameters:
        srsURI -
        geometryDatatypeURI -
      • GeometryWrapper

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

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

      • 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​(java.lang.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​(java.lang.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 java.lang.String getSrsURI()
        Returns:
        Coordinate/Spatial reference system URI.
      • getSRID

        public java.lang.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 java.lang.Boolean isSRSRecognised()
        Returns:
        Whether the SRS URI has been recognised. Operations may fail or not perform correctly when false.
      • getGeometryDatatypeURI

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

        public java.lang.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,
                                      java.lang.String targetDistanceUnitsURI)
                               throws org.opengis.util.FactoryException,
                                      org.opengis.geometry.MismatchedDimensionException,
                                      org.opengis.referencing.operation.TransformException
        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
      • getUTMZoneURI

        public java.lang.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 java.lang.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
        Distance (Euclidean) defaulting to metres.
        Parameters:
        targetGeometry -
        Returns:
        Distance
        Throws:
        org.opengis.util.FactoryException
        org.opengis.referencing.operation.TransformException
        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
        Distance (Euclidean) in the Units of Measure.
        Parameters:
        targetGeometry -
        unitsOfMeasure -
        Returns:
        Distance
        Throws:
        org.opengis.util.FactoryException
        org.opengis.referencing.operation.TransformException
        org.opengis.geometry.MismatchedDimensionException
      • distanceEuclidean

        public double distanceEuclidean​(GeometryWrapper targetGeometry,
                                        java.lang.String targetDistanceUnitsURI)
                                 throws org.opengis.util.FactoryException,
                                        org.opengis.geometry.MismatchedDimensionException,
                                        org.opengis.referencing.operation.TransformException
        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
        org.opengis.geometry.MismatchedDimensionException
      • distanceGreatCircle

        public double distanceGreatCircle​(GeometryWrapper targetGeometry)
                                   throws org.opengis.util.FactoryException,
                                          org.opengis.geometry.MismatchedDimensionException,
                                          org.opengis.referencing.operation.TransformException
        Distance (Great Circle) defaulting to metres.
        Parameters:
        targetGeometry -
        Returns:
        Distance
        Throws:
        org.opengis.util.FactoryException
        org.opengis.referencing.operation.TransformException
        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
        Distance (Great Circle) in the Units of Measure.
        Parameters:
        targetGeometry -
        unitsOfMeasure -
        Returns:
        Distance
        Throws:
        org.opengis.util.FactoryException
        org.opengis.referencing.operation.TransformException
        org.opengis.geometry.MismatchedDimensionException
      • distanceGreatCircle

        public double distanceGreatCircle​(GeometryWrapper targetGeometry,
                                          java.lang.String targetDistanceUnitsURI)
                                   throws org.opengis.util.FactoryException,
                                          org.opengis.geometry.MismatchedDimensionException,
                                          org.opengis.referencing.operation.TransformException
        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
        org.opengis.geometry.MismatchedDimensionException
      • distance

        public double distance​(GeometryWrapper targetGeometry)
                        throws org.opengis.util.FactoryException,
                               org.opengis.geometry.MismatchedDimensionException,
                               org.opengis.referencing.operation.TransformException
        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
        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
        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
        org.opengis.geometry.MismatchedDimensionException
      • distance

        public double distance​(GeometryWrapper targetGeometry,
                               java.lang.String targetDistanceUnitsURI)
                        throws org.opengis.util.FactoryException,
                               org.opengis.geometry.MismatchedDimensionException,
                               org.opengis.referencing.operation.TransformException
        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
        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,
                              java.lang.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
      • 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 java.lang.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)
        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​(java.lang.String lexicalForm,
                                              java.lang.String datatypeURI)
        Extract Geometry Wrapper from Geometry Literal.
        Parameters:
        lexicalForm -
        datatypeURI -
        Returns:
        Geometry Wrapper of the Geometry Literal.
      • fromPoint

        public static final GeometryWrapper fromPoint​(double x,
                                                      double y,
                                                      java.lang.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.
        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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object