Class CoordinateSystem
java.lang.Object
org.opengis.cite.ogcapifeatures10.conformance.crs.query.crs.CoordinateSystem
Encapsulates an CRS from
- Author:
- Lyn Goltz
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CoordinateSystem
Constructor for CoordinateSystem.
- Parameters:
code- the coordinate system, nevernull
-
-
Method Details
-
getCode
Getter for the field
code.- Returns:
- the code of the crs, never
null
-
getAsHeaderValue
getAsHeaderValue.
- Returns:
- the crs as header value (like <CODE>, never
null
-
getSrid
public int getSrid()srid from the passed crs- Returns:
- the parsed srid, -1 if the crs is
null
-
getCodeWithAuthority
getCodeWithAuthority.
- Returns:
- the code with the authority: EPSG:CODE, may be
null
-
isValid
public boolean isValid()1. For http-URIs (starting with http:) validate that the string conforms to the syntax specified by RFC 7230, section 2.7.1. 2. For https-URIs (starting with https:) validate that the string conforms to the syntax specified by RFC 7230, section 2.7.2. 3. For URNs (starting with urn:) validate that the string conforms to the syntax specified by RFC 8141, section 2. 4. For OGC URNs (starting with urn:ogc:def:crs:) and OGC http-URIs (starting with http://www.opengis.net/def/crs/) validate that the string conforms to the syntax specified by OGC Name Type Specification - definitions - part 1 – basic name.- Returns:
trueif the crs is valid,falseotherwise
-
toString
-
equals
-
hashCode
public int hashCode()
-