Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.09
-
Fix Version/s: 3.09
-
Component/s: Referencing
-
Labels:
Description
invoking GeneralEnvelope.toString() or Envelope2D.toString() should returns the WKT BOX element, as in the example below:
- BOX2D(-180.0 -90.0, 180.0 90.0)
This is consistent with what we are already doing with Coordinate Reference System object, which define a toString() method formatting the CRS in WKT.
We should also provide a GeneralEnvelope(String) convenience constructor which parse a WKT BOX element.
The code already exists in the Constellation project, so this is basically just a port straight into the Envelope implementations.
Added WKT parsing and formatting for DirectPosition implementations too.