Geotoolkit

Envelope.toString() implementations should return the box in WKT format

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Martin Desruisseaux added a comment - 12/Feb/2010 17:03

Added WKT parsing and formatting for DirectPosition implementations too.

Show
Martin Desruisseaux added a comment - 12/Feb/2010 17:03 Added WKT parsing and formatting for DirectPosition implementations too.

People

Vote (0)
Watch (0)

Dates

  • Created:
    11/Feb/2010 19:51
    Updated:
    13/Apr/2011 15:55
    Resolved:
    13/Apr/2011 15:55