public interface Parser
Parsing services may be provided by factories which implement this interface:
GeodeticObjectFactory.createFromWKT(String)
DefaultMathTransformFactory.createFromWKT(String)
"org.apache.sis.io.wkt"
. Warnings may be for unknown or unsupported WKT elements, inconsistent
unit definitions (unit symbol, scale factor or EPSG code), unparsable axis abbreviations, etc.
However this parser does not verify if the overall parsed object matches the EPSG (or other authority) definition.
For such verification, see CRS.fromWKT(String)
.Defined in the sis-metadata
module
Modifier and Type | Method and Description |
---|---|
Object |
createFromWKT(String text)
Creates the object from a string.
|
Object createFromWKT(String text) throws FactoryException
"org.apache.sis.io.wkt"
.
CompoundFormat.parseObject(String)
followed by a call to WKTFormat.getWarnings()
.text
- object encoded in Well-Known Text format (version 1 or 2).FactoryException
- if the object creation failed.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.