Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.3-M1
-
Fix Version/s: 2.3-M4
-
Component/s: referencing
-
Labels:None
-
Number of attachments :
Description
The source and target dimensions in OperationMethod was declared mandatory by ISO 19111 at the time the GeoAPI interface has been defined. Those attributes are now optional in latest ISO 19111, which make sense since some operation methods can work on an arbitrary number of dimensions (e.g. Affine Transform). On the Java API size, the implication is a change of the return value type from the primitive int to the wrapper Integer. Client code could be recompiled with no change, but would be exposed to the risk of NullPointerException.
This JIRA task proposes to align OperationMethod on latest ISO specification and make [source|target] dimension optional.
Pros:
- ISO 19111 conformance
- Resolve problematic case like what are the dimension of an Affine Transform operation method?
Cons:
- User code, if not changed, would continue to compile (because of Java 5 auto-boxing) but would be exposed to NullPointerException at runtime.
Issue Links
| This issue is related to: | ||||
| GEO-174 | New ISO 19111:2007 interface: CC_Formula |
|
|
|
Commited on trunk as of revision 1479.