java.lang.Object
org.apache.jena.geosparql.implementation.SRSInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final org.locationtech.jts.geom.EnvelopebuildDomainEnvelope(org.opengis.referencing.crs.CoordinateReferenceSystem crs, Boolean isAxisXY) static final BooleancheckAxisXY(org.opengis.referencing.crs.CoordinateReferenceSystem crs) static final StringconvertSRID(int srid) static final StringconvertSRID(BigInteger srid) booleanorg.opengis.referencing.crs.CoordinateReferenceSystemgetCrs()OpenGIS Coordinate Reference System.static final SRSInfogetDefaultWktCRS84(String srsURI) org.locationtech.jts.geom.EnvelopeDomain of validity in XY coordinate order.doubleRange of domain of validity in X axis.URI of the Spatial Reference System
Identical values to SRID.Units of Measure for the coordinate reference system.static final SRSInfogetUnrecognised(String srsURI) Unrecognised SRS URI are assumed to follow the default CRS84 so that operations do not error but may not complete as expected.inthashCode()isAxisXY()Check if axis is in XY order.Check if the SRS is geographic (i.e. latitude, longitude on a sphere).Check if the SRS URI is recognised as a OpenGIS coordinate reference system.Check if the SRS is default for WKT Literals.toString()
-
Field Details
-
DEFAULT_WKT_CRS84_CODE
- See Also:
-
DEFAULT_WKT_CRS84
-
-
Constructor Details
-
SRSInfo
- Throws:
SRSInfoException
-
SRSInfo
SRID will be converted to EPSG URI: http://www.opengis.net/def/crs/EPSG/0/srid.- Parameters:
srid-- Throws:
SRSInfoException
-
-
Method Details
-
checkAxisXY
-
buildDomainEnvelope
public static final org.locationtech.jts.geom.Envelope buildDomainEnvelope(org.opengis.referencing.crs.CoordinateReferenceSystem crs, Boolean isAxisXY) -
convertSRID
- Parameters:
srid-- Returns:
- srsURI using SRID
-
convertSRID
- Parameters:
srid-- Returns:
- srsURI using SRID
-
getSrsURI
URI of the Spatial Reference System
Identical values to SRID.- Returns:
- SRS URI
-
getCrs
public org.opengis.referencing.crs.CoordinateReferenceSystem getCrs()OpenGIS Coordinate Reference System.- Returns:
- Coordinate Reference System
-
getUnitsOfMeasure
Units of Measure for the coordinate reference system.- Returns:
- Units of Measure
-
isAxisXY
Check if axis is in XY order.- Returns:
- True if XY order.
-
isSRSRecognised
Check if the SRS URI is recognised as a OpenGIS coordinate reference system.- Returns:
- True if SRS is recognised.
-
isGeographic
Check if the SRS is geographic (i.e. latitude, longitude on a sphere).- Returns:
- True if a Geographic SRS, e.g. WGS84.
-
isWktDefault
Check if the SRS is default for WKT Literals.- Returns:
- True if CRS84 SRS, i.e. http://www.opengis.net/def/crs/OGC/1.3/CRS84.
-
getDomainEnvelope
public org.locationtech.jts.geom.Envelope getDomainEnvelope()Domain of validity in XY coordinate order.- Returns:
- Bounding box of valid values.
-
getDomainRangeX
public double getDomainRangeX()Range of domain of validity in X axis.- Returns:
- Difference between min and max values in X axis.
-
getDefaultWktCRS84
- Parameters:
srsURI- Allows alternative srsURI to be associated with CRS84.- Returns:
- SRSInfo using default setup for WKT but alternative srsURI.
- Throws:
SRSInfoException
-
getUnrecognised
Unrecognised SRS URI are assumed to follow the default CRS84 so that operations do not error but may not complete as expected.- Parameters:
srsURI-- Returns:
- SRSInfo with default setup for WKT without SRS URI
- Throws:
SRSInfoException
-
hashCode
public int hashCode() -
equals
-
toString
-