public class WKTUtils extends Object
| Constructor and Description |
|---|
WKTUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CRSType |
getCoordinateReferenceSystemType(CRSKeyword keyword)
Get the Coordinate Reference System Type
|
static UnitType |
getUnitType(CRSKeyword keyword)
Get the unit type from the keyword
|
static boolean |
isLeftDelimiter(String text)
Is the text a left delimiter
|
static boolean |
isOrdinalDateTime(CoordinateSystemType type)
Is the Coordinate System Type an ordinal or temporal date time type
|
static boolean |
isRightDelimiter(String text)
Is the text a right delimiter
|
static boolean |
isSpatial(CoordinateSystemType type)
Is the Coordinate System Type a spatial type
|
static boolean |
isTemporalCountMeasure(CoordinateSystemType type)
Is the Coordinate System Type a temporal count or measure type
|
static String |
pretty(String wkt)
Convert the WKT to a pretty WKT string, 4 space indents
|
static String |
pretty(String wkt,
String indent)
Convert the WKT to a pretty WKT string
|
static String |
pretty(String wkt,
String newline,
String indent)
Convert the WKT to a pretty WKT string
|
static String |
prettyNoIndent(String wkt)
Convert the WKT to a pretty WKT string, no indents
|
static String |
prettyTabIndent(String wkt)
Convert the WKT to a pretty WKT string, tab indents
|
public static boolean isLeftDelimiter(String text)
text - wkt text tokenpublic static boolean isRightDelimiter(String text)
text - wkt text tokenpublic static boolean isSpatial(CoordinateSystemType type)
type - coordinate system typepublic static boolean isTemporalCountMeasure(CoordinateSystemType type)
type - coordinate system typepublic static boolean isOrdinalDateTime(CoordinateSystemType type)
type - coordinate system typepublic static UnitType getUnitType(CRSKeyword keyword)
keyword - coordinate reference system keywordpublic static CRSType getCoordinateReferenceSystemType(CRSKeyword keyword)
keyword - coordinate reference system keywordpublic static String pretty(String wkt) throws IOException
wkt - well-known textIOException - upon failure to read and createpublic static String prettyTabIndent(String wkt) throws IOException
wkt - well-known textIOException - upon failure to read and createpublic static String prettyNoIndent(String wkt) throws IOException
wkt - well-known textIOException - upon failure to read and createpublic static String pretty(String wkt, String indent) throws IOException
wkt - well-known textindent - indent stringIOException - upon failure to read and createpublic static String pretty(String wkt, String newline, String indent) throws IOException
wkt - well-known textnewline - newline stringindent - indent stringIOException - upon failure to read and createCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.