ISO 19157 defines a DQM_Parameter class (added in #44), which duplicates the parameter classes provided by other standards:
- ISO 19111
CC_OperationParameter
- ISO 19115
SV_Parameter (referenced by OperationMetadata.getParameters())
- ISO 19157
DQM_Parameter (referenced only in Measure.getParameters())
- Possibly WPS in a future version, etc.
GeoAPI tries to consolidate all parameters API in a single org.opengis.parameter package. If we apply this consolidation to ISO 19157 as well, then the SV_Parameter class should be omitted in favour of org.opengis.parameter.ParameterDescriptor (I didn't found the parameter value anywhere in ISO 19157). The mapping would be:
| ISO 19157 |
ParameterDescriptor |
Change of value type |
| name |
getName() |
InternationalString → Identifier |
| definition |
getName().getDescription() |
|
| description |
getDescription() |
Description → InternationalString |
| valueType |
getValueClass() |
RecordType → Class<?> |
| valueStructure |
To be omitted? |
|
The valueStructure attribute may be omitted because in an object-oriented language, we rather expect the valueType to be the structure, for example org.opengis.referencing.operation.Matrix.
ISO 19157 defines a
DQM_Parameterclass (added in #44), which duplicates the parameter classes provided by other standards:CC_OperationParameterSV_Parameter(referenced byOperationMetadata.getParameters())DQM_Parameter(referenced only inMeasure.getParameters())GeoAPI tries to consolidate all parameters API in a single
org.opengis.parameterpackage. If we apply this consolidation to ISO 19157 as well, then theSV_Parameterclass should be omitted in favour oforg.opengis.parameter.ParameterDescriptor(I didn't found the parameter value anywhere in ISO 19157). The mapping would be:ParameterDescriptorgetName()InternationalString→IdentifiergetName().getDescription()getDescription()Description→InternationalStringgetValueClass()RecordType→Class<?>The
valueStructureattribute may be omitted because in an object-oriented language, we rather expect thevalueTypeto be the structure, for exampleorg.opengis.referencing.operation.Matrix.