## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Exceptions
- Deprecated Fields
- Deprecated Methods

Deprecated Interfaces
DataFeatureCollection Removed pending a redesign of feature storage interfaces
FeatureListener Removed pending a redesign of feature storage interfaces
FeatureStore Removed pending a redesign of feature storage interfaces
FeatureStoreListener Removed pending a redesign of feature storage interfaces
FormalConsistency renamed to `FormatConsistency`.
Format In favor of migrating to ISO 19123 definition for Coverage.
GridAnalysis In favor of migrating to ISO 19123 definition for Coverage.
GridCoverageExchange In favor of migrating to ISO 19123 definition for Coverage.
GridCoverageReader In favor of migrating to ISO 19123 definition for Coverage.
GridCoverageWriter In favor of migrating to ISO 19123 definition for Coverage.
GridPacking In favor of migrating to ISO 19123 definition for Coverage.
LockResponse Removed pending a redesign of feature storage interfaces
NonQuantitativeAttributeCorrectness renamed to NonQuantitativeAttributeAccuracy
Query Removed pending a redesign of feature storage interfaces
Transaction Removed pending a redesign of feature storage interfaces

Deprecated Classes
ByteInValuePacking In favor of migrating to ISO 19123 definition for Coverage.
ColorInterpretation No replacement.
FeatureEvent Removed pending a redesign of feature storage interfaces
FeatureStoreEvent Removed pending a redesign of feature storage interfaces
PaletteInterpretation No replacement.
ValueInBytePacking In favor of migrating to ISO 19123 definition for Coverage.

Deprecated Exceptions
CannotCreateGridCoverageException In favor of migrating to ISO 19123 definition for Coverage.
FeatureStoreException Removed pending a redesign of feature storage interfaces
FileFormatNotCompatibleWithGridCoverageException In favor of migrating to ISO 19123 definition for Coverage.
InvalidSampleDimensionException In favor of migrating to ISO 19123 definition for Coverage.
MetadataNameNotFoundException No replacement.

Deprecated Fields
org.opengis.metadata.spatial.GeometricObjectType.COMPLEXES Renamed as `GeometricObjectType.COMPLEX`.
org.opengis.metadata.spatial.GeometricObjectType.COMPOSITES Renamed as `GeometricObjectType.COMPOSITE`.
org.opengis.metadata.identification.TopicCategory.HEALT Renamed as `TopicCategory.HEALTH`.
org.opengis.go.display.style.DashArray.NONE Renamed as `DashArray.NO_DASH`.
org.opengis.referencing.operation.CoordinateOperation.POSITIONAL_ACCURACY_KEY Renamed as `CoordinateOperation.COORDINATE_OPERATION_ACCURACY_KEY`.
org.opengis.referencing.ReferenceSystem.VALID_AREA_KEY Renamed as `ReferenceSystem.DOMAIN_OF_VALIDITY_KEY`.
org.opengis.referencing.datum.Datum.VALID_AREA_KEY Renamed as `Datum.DOMAIN_OF_VALIDITY_KEY`.
org.opengis.referencing.operation.CoordinateOperation.VALID_AREA_KEY Renamed as `CoordinateOperation.DOMAIN_OF_VALIDITY_KEY`.
org.opengis.metadata.Identifier.VERSION_KEY Moved to `ReferenceIdentifier.VERSION_KEY`.

Deprecated Methods
org.opengis.coverage.processing.GridCoverageProcessor.analyze(GridCoverage) No replacement.
org.opengis.util.GenericName.asLocalName() Renamed as `GenericName.name()`.
org.opengis.util.GenericName.asScopedName() Replaced by `GenericName.toFullyQualifiedName()`.
org.opengis.geometry.DirectPosition.clone() The Cloneable status of `DirectPosition` should be left to implementors.

org.opengis.referencing.crs.CRSFactory.createDerivedCRS(Map<String, ?>, OperationMethod, CoordinateReferenceSystem, MathTransform, CoordinateSystem)
Use `CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)` followed by `CRSFactory.createDerivedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.CoordinateReferenceSystem, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CoordinateSystem)` instead.

org.opengis.geometry.coordinate.GeometryFactory.createDirectPosition() Moved to PositionFactory
org.opengis.geometry.coordinate.GeometryFactory.createDirectPosition(double[]) Moved to PositionFactory
org.opengis.geometry.coordinate.GeometryFactory.createMultiPrimitive() This method is temporary. It will move to some `MultiPrimitive` factory when the creation of Geometry interfaces will be completed. See GEO-1 on JIRA.
org.opengis.referencing.operation.CoordinateOperationFactory.createOperation(CoordinateReferenceSystem, CoordinateReferenceSystem, OperationMethod) `CoordinateOperationFactory` is supposed to infers the operation from the CRS. In addition, more than one operation step may be involved in the path from `sourceCRS` to `targetCRS`, but this method has only one `method` argument.

org.opengis.referencing.crs.CRSFactory.createProjectedCRS(Map<String, ?>, OperationMethod, GeographicCRS, MathTransform, CartesianCS)
Use `CoordinateOperationFactory.createDefiningConversion(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterValueGroup)` followed by `CRSFactory.createProjectedCRS(java.util.Map<java.lang.String, ?>, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.crs.GeographicCRS, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.cs.CartesianCS)` instead.

org.opengis.coverage.processing.GridCoverageProcessor.doOperation(String, GeneralParameterValue[])
org.opengis.go.display.primitive.GraphicArc.ArcClosure.getArray() Use `GraphicArc.ArcClosure.values()` instead.
org.opengis.metadata.identification.DataIdentification.getCharacterSet() use getCharacterSets
org.opengis.coverage.SampleDimension.getColorInterpretation() No replacement.
org.opengis.metadata.MetaData.getContact() Replaced by `MetaData.getContacts()`.
org.opengis.metadata.quality.Element.getDate() Replaced by `Element.getDates()`.
org.opengis.util.ProgressListener.getDescription() Please use getTask().toString()
org.opengis.metadata.content.CoverageDescription.getDimension() Use `CoverageDescription.getDimensions()` instead.
org.opengis.coverage.Coverage.getDimensionNames() This information can be obtained from the underlying coordinate system.
org.opengis.geometry.Geometry.getDistance(Geometry) use `Geometry.distance(org.opengis.geometry.Geometry)`.
org.opengis.metadata.citation.Telephone.getFacsimile() Replaced by `Telephone.getFacsimiles()`.
org.opengis.metadata.ApplicationSchemaInformation.getFeatureCatalogueSupplement() removed from ISO_19115
org.opengis.metadata.identification.DataIdentification.getGeographicBox() not in ISO 19115:2003
org.opengis.metadata.identification.DataIdentification.getGeographicDescription() not in ISO 19115:2003
org.opengis.coverage.grid.GridGeometry.getGridToCoordinateSystem() Renamed as `GridGeometry.getGridToCRS()`.
org.opengis.metadata.citation.Citation.getIdentifierTypes() removed from ISO_19115
org.opengis.coverage.grid.GridRange.getLowers() Replaced by `GridRange.getLower()`.
org.opengis.metadata.maintenance.MaintenanceInformation.getMaintenanceNote() use getMaintenanceNotes()
org.opengis.geometry.Precision.getMaximumSignificantDigits() This is redundant with `Precision.getScale()`.
org.opengis.coverage.Coverage.getMetadataNames() Replaced by `PropertySource`.
org.opengis.coverage.processing.GridCoverageProcessor.getMetadataNames() No replacement.
org.opengis.coverage.SampleDimension.getMetaDataNames() No replacement.
org.opengis.coverage.SampleDimension.getMetadataValue(String) No replacement.
org.opengis.coverage.Coverage.getMetadataValue(String) Replaced by `PropertySource`.
org.opengis.coverage.processing.GridCoverageProcessor.getMetadataValue(String) No replacement.
org.opengis.go.display.style.YAnchor.getNumberOfStyles() Use `YAnchor.values().length` instead.
org.opengis.coverage.processing.GridCoverageProcessor.getNumOperations() Use `GridCoverageProcessor.getOperations()` instead.
org.opengis.coverage.processing.GridCoverageProcessor.getOperation(int) Use `GridCoverageProcessor.getOperations()` instead.
org.opengis.coverage.SampleDimension.getPalette() No replacement.
org.opengis.coverage.SampleDimension.getPaletteInterpretation() No replacement.
org.opengis.metadata.spatial.Georeferenceable.getParameters() Use `Georeferenceable.getGeoreferencedParameters()` instead.
org.opengis.referencing.operation.CoordinateOperation.getPositionalAccuracy() Renamed as `CoordinateOperation.getCoordinateOperationAccuracy()`.
org.opengis.metadata.quality.Element.getResult() Replaced by `Element.getResults()`.
org.opengis.util.GenericName.getScope() Replaced by `GenericName.scope()`.
org.opengis.metadata.extent.VerticalExtent.getUnit() removed from ISO_19115:2003/Cor.1:2006
org.opengis.metadata.maintenance.MaintenanceInformation.getUpdateScope() use getUpdateScopes
org.opengis.metadata.maintenance.MaintenanceInformation.getUpdateScopeDescription() use getUpdateScopeDescriptions
org.opengis.coverage.grid.GridRange.getUppers() Replaced by `GridRange.getUpper()`.
org.opengis.referencing.ReferenceSystem.getValidArea() Renamed as `ReferenceSystem.getDomainOfValidity()`.
org.opengis.referencing.datum.Datum.getValidArea() Renamed as `Datum.getDomainOfValidity()`.
org.opengis.referencing.operation.CoordinateOperation.getValidArea() Renamed as `CoordinateOperation.getDomainOfValidity()`.
org.opengis.metadata.Identifier.getVersion() Moved to `ReferenceIdentifier.getVersion()`.
org.opengis.metadata.extent.VerticalExtent.getVerticalDatum() changed to `VerticalExtent.getVerticalCRS()` in ISO_19115:2003/Cor.1:2006
org.opengis.metadata.citation.Telephone.getVoice() Replaced by `Telephone.getVoices()`.
org.opengis.geometry.coordinate.PointArray.length() Please use `List.size()`
org.opengis.geometry.coordinate.PointArray.positions() use this
org.opengis.util.ProgressListener.setDescription(String) please use setTask
org.opengis.coverage.grid.GridCoverage.setPackedDataBlock(GridRange, byte[]) This operation can hardly be implemented efficiently in Java with a `byte[]` argument type, since we can't easily cast an array of `byte[]` to an array of arbitrary type.

Copyright © 1994-2008 Open Geospatial Consortium. All Rights Reserved.