Changes in Metadata packages
Completed interfaces and code list derived from ISO 19115.
Replaced all
Setreferences byCollection, except in the very few places where ISO 19115 defines explicitly the collection type.Replaced all
URLreferences byURI.Changes in Referencing packages
Added
SingleCRSinterface. This change reflect a part of ISO 19111 which was omitted in previous release.Renamed
ObliqueCartesianCSasAffineCS. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed
TemporalCSasTimeCS. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed
InfoasIdentifiedObject. This reflect a change in OGC Topic 2 voted in July 16, 2004.In
CRSFactory.createImageCRS(...)method, changed thecsargument type fromCoordinateSystemtoAffineCS. This change is required for type safety and was forgotten in previous release.In
CSFactoryinterface, added methods forUserDefinedCScreation. This part was forgotten in previous release.Added
toWKT()method inIdentifiedObject.Renamed
NoSuchClassificationExceptionasNoSuchIdentifierException.Replaced all arrays by collections as the return type of the following methods:
IdentifiedObject.getIdentifiers(),IdentifiedObject.getAlias()CompoundCRS.getCoordinateReferenceSystems(),ConcatenatedOperation.getOperations(),CoordinateOperation.getPositionalAccuracy().Removed the
org.opengis.referencing.qualitypackage. This package is now replaced byorg.opengis.metadata.quality. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed all
OperationParameterinterfaces asParameterDescriptor. This is because many users expect a parameter to contains a value. TheParameterDescriptorname make it clearer that this interface contains metadata about parameter, not the actual parameter value. It also consistent with usage in other Java libraries like Java Advanced Imaging.In
OperationMethod, changed theGeneralParameterDescriptor[]return type toParameterDescriptorGroup. Generally speaking, this change was applied for most processing methods in GeoAPI returning parameters. This is a slight departure from specifications, which usually returns a sequence of parameter rather than a group.For convenience method
getParameter(String)inParameterDescriptorGroupinterface, changed the return type fromGeneralParameterDescriptortoParameterDescriptor. This change make the convenience method more... convenient.For convenience method
getValue(String)inParameterValueGroupinterface, changed the return type fromGeneralParameterValuetoParameterValue. This change make the convenience method more... convenient. Also renamed the method asparameter, which avoid strange expression likegetValue("some_name").setValue(someValue). The idiom is nowparameter("some_name").setValue(someValue)instead.For all methods expecting a
Localeargument, removed this argument and replaced theStringreturn type byInternationalString. This change was done for consistency with the metadata package.In
valueFile()method, replaced theURLreturn type byURI.Changes in Geometry packages
Set
Positionas the super-interface forDirectPositionandPointinterfaces instead of an union of them. The union type do no exists in Java and this change lead to a more object oriented approach. This change was done after a comment on the GeoAPI mailing list.In
Envelopeinterface, added convenience methodsgetMinimum,getMaximum,getCenterandgetLength.In
GenericCurve, renamed thegetParamandgetConstructiveParammethod asforParamandforConstructiveParamrespectively. The former names was misleading since those methods do not return a constructive parameter; they expect it as argument instead.In
Complex, renamed thegetSuperComplexexmethod asgetSuperComplexes. The former was a typo.Addition of more geometry interfaces from ISO 19107. The work is not finished however.
Changes in Grid Coverage packages
In
SampleDimensioninterface (methodsgetDescriptionandgetCategoryNames) and inCoverageinterface (methodgetDimensionNames), replaced theStringreturns type byInternationalString. This change is required for localization support and was forgotten in previous release.In
Coverageinterface, changed the return type fromdouble[]tofloat[]for the methodevaluate(DirectPosition, float[]). Previous return type was wrong.In
Coverage, mergedgetNumSources()andgetSource(int)methods into a singlegetSources()method.In
GridRange, renamedgetLower()andgetUpper()asgetLowers()andgetUppers().In
GridRange, addedgetLower(int),getUpper(int),getLength(int)andgetDimensionconvenience methods.In
Operation, changed theGeneralParameterValue[], return type toParameterValueGroup. Generally speaking, this change was applied for most processing methods in GeoAPI returning parameters. This is a slight departure from specifications, which usually returns a sequence of parameter values.In
GridAnalysis, renamed theanalysemethod asanalyze. The former was a typo.