GeoAPI

Bearing has angle with no units.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.3-M3
  • Component/s: geometry
  • Labels:
    None
  • Number of attachments :
    0

Description

The "getAngles" method for "...spatialschema.geometry.primitive.Bearing" returns an array of doubles with no units. This should be changed to conform to the "UML to Java" mapping page (stating that an additional "getAngleUnits" method is required) or just use the "Quantity" concept from JScience.

At the very least, the required units should be documented in the Javadoc.

Activity

Hide
Martin Desruisseaux added a comment -

Fixed as suggested (added a getAngleUnit() method) as of revision 1445. The delay before commiting such a simple change has been way too long, mostly because we are lacking a "geometry expert" among the GeoAPI commiters. There is other geometry tasks pending which need to be assigned.

Show
Martin Desruisseaux added a comment - Fixed as suggested (added a getAngleUnit() method) as of revision 1445. The delay before commiting such a simple change has been way too long, mostly because we are lacking a "geometry expert" among the GeoAPI commiters. There is other geometry tasks pending which need to be assigned.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: