Skip navigation links

Package org.apache.sis.io.wkt

Well Known Text (WKT) parsing and formatting.

See: Description

Package org.apache.sis.io.wkt Description

Well Known Text (WKT) parsing and formatting. This package implements the services provided by various convenience methods: However the WKTFormat class provided in this package gives more control. For example this package allows to:
Referencing WKT
Referencing WKT is defined using Extended Backus Naur Form (EBNF) in two versions: The WKT 1 format has been interpreted differently by various implementors. One noticeable difference is the unit of measurement of prime meridians and projection parameters. The WKT 2 format aims to solve the inter-operability problem caused by such mismatches, but not all softwares support this new format. Consequently importing or exporting data from/to a software with the WKT syntax require knowledge of the WKT variant used by that software. This variant can be specified by the Convention enumeration.
Geometry WKT
The General­Envelope and General­Direct­Position classes provide their own, limited, WKT parsing and formatting services for the BOX and POINT elements. A description for this WKT format can be found on Wikipedia.
Where to find WKT examples
An excellent source of well-formed WKT is the online EPSG Geodetic Parameter Registry. The WKT of many Coordinate Reference System object can be viewed using the pattern below (replace 3395 by the EPSG code of the desired CRS):
Example: "WGS 84 / World Mercator": http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::3395
Readers should be aware that some popular other sources of WKT are actually invalid, since many of them do not comply with EPSG definitions (especially on axis order). The above-cited EPSG registry is the authoritative source of CRS definitions in the EPSG namespace.
Since:
0.4
See Also:
WKT 2 specification, Legacy WKT 1

Defined in the sis-metadata module

Skip navigation links

Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.