Changes in Metadata packages
Completed interfaces and code list derived from ISO 19115.
Replaced all
Set
references byCollection
, except in the very few places where ISO 19115 defines explicitly the collection type.Replaced all
URL
references byURI
.Changes in Referencing packages
Added
SingleCRS
interface. This change reflect a part of ISO 19111 which was omitted in previous release.Renamed
ObliqueCartesianCS
asAffineCS
. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed
TemporalCS
asTimeCS
. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed
Info
asIdentifiedObject
. This reflect a change in OGC Topic 2 voted in July 16, 2004.In
CRSFactory.createImageCRS(...)
method, changed thecs
argument type fromCoordinateSystem
toAffineCS
. This change is required for type safety and was forgotten in previous release.In
CSFactory
interface, added methods forUserDefinedCS
creation. This part was forgotten in previous release.Added
toWKT()
method inIdentifiedObject
.Renamed
NoSuchClassificationException
asNoSuchIdentifierException
.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.quality
package. This package is now replaced byorg.opengis.metadata.quality
. This reflect a change in OGC Topic 2 voted in July 16, 2004.Renamed all
OperationParameter
interfaces asParameterDescriptor
. This is because many users expect a parameter to contains a value. TheParameterDescriptor
name 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)
inParameterDescriptorGroup
interface, changed the return type fromGeneralParameterDescriptor
toParameterDescriptor
. This change make the convenience method more... convenient.For convenience method
getValue(String)
inParameterValueGroup
interface, changed the return type fromGeneralParameterValue
toParameterValue
. 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
Locale
argument, removed this argument and replaced theString
return type byInternationalString
. This change was done for consistency with the metadata package.In
valueFile()
method, replaced theURL
return type byURI
.Changes in Geometry packages
Set
Position
as the super-interface forDirectPosition
andPoint
interfaces 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
Envelope
interface, added convenience methodsgetMinimum
,getMaximum
,getCenter
andgetLength
.In
GenericCurve
, renamed thegetParam
andgetConstructiveParam
method asforParam
andforConstructiveParam
respectively. The former names was misleading since those methods do not return a constructive parameter; they expect it as argument instead.In
Complex
, renamed thegetSuperComplexex
method 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
SampleDimension
interface (methodsgetDescription
andgetCategoryNames
) and inCoverage
interface (methodgetDimensionNames
), replaced theString
returns type byInternationalString
. This change is required for localization support and was forgotten in previous release.In
Coverage
interface, 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)
andgetDimension
convenience 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 theanalyse
method asanalyze
. The former was a typo.