Constructor and Description |
---|
CoordinateSystem(String code) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAsHeaderValue() |
String |
getCode() |
String |
getCodeWithAuthority() |
int |
getSrid()
srid from the passed crs
|
int |
hashCode() |
boolean |
isValid()
1.
|
String |
toString() |
public CoordinateSystem(String code)
code
- the coordinate system, never null
public String getCode()
null
public String getAsHeaderValue()
null
public int getSrid()
null
UnknownCrsException
- if the srid could not be parsedpublic String getCodeWithAuthority()
null
UnknownCrsException
- if the crs is not a OGC URN (starting with urn:ogc:def:crs:epsg) or OGC http-URIs (starting with
http://www.opengis.net/def/crs/epsg) with EPSG auhoritypublic 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.
true
if the crs is valid, false
otherwiseCopyright © 2024 Open Geospatial Consortium. All rights reserved.