Deprecated Methods |
org.geotools.coverage.processing.AbstractGridCoverageProcessor.analyze(GridCoverage)
This method is not yet implemented, and may not be there in a future
release of GeoAPI interfaces. |
org.geotools.nature.SunRelativePosition.compute(double, double, Date)
Use SunRelativePosition.setCoordinate(double,double) and SunRelativePosition.setDate(Date) instead. |
org.geotools.gui.swing.ZoomPane.correctPointForMagnifier(Point2D)
Use ZoomPane.correctApparentPixelPosition(java.awt.geom.Point2D) instead.
This is use a method's name change; the behavior is the same. |
org.geotools.parameter.Parameters.count(ParameterValueGroup, GeneralParameterDescriptor)
Use ParameterValueGroup.groups(type.getName().getCode())
instead. It allows to fetch groups by name independently of the actual
descriptor implementation. The returned list can be used for many operation,
including fetching the count with size() . |
org.geotools.feature.FeatureFactory.create(Object[])
Schema information is required |
org.geotools.feature.FeatureFactory.create(Object[], String)
Schema information is required |
org.geotools.feature.FeatureType.create(Object[], String)
This method will be remove in 2.2, please use FeatureFactory obtained from
FactoryFinder |
org.geotools.referencing.factory.GeotoolsFactory.createCylindricalCS(Map, PolarCS, CoordinateSystemAxis)
Uses the method expecting 3 axis instead. |
org.geotools.data.postgis.PostgisDataStoreFactory.createDataStoreInternal(ConnectionPool)
this method is only here for backwards compatibility for
subclasses, use PostgisDataStoreFactory.createDataStoreInternal(ConnectionPool, String, String)
instead. |
org.geotools.data.postgis.PostgisDataStoreFactory.createDataStoreInternal(ConnectionPool, String)
this method is only here for backwards compatibility for
subclasses, use PostgisDataStoreFactory.createDataStoreInternal(ConnectionPool, String, String)
instead. |
org.geotools.referencing.factory.GeotoolsFactory.createDerivedCRS(Map, CoordinateReferenceSystem, MathTransform, CoordinateSystem)
Use the method with an OperationMethod argument instead. |
org.geotools.cs.Ellipsoid.createEllipsoid(CharSequence, double, double, Unit)
Replaced by DefaultEllipsoid.createEllipsoid(java.lang.String, double, double, javax.units.Unit) . |
org.geotools.cs.Ellipsoid.createFlattenedSphere(CharSequence, double, double, Unit)
Replaced by DefaultEllipsoid.createFlattenedSphere(java.lang.String, double, double, javax.units.Unit) . |
org.geotools.pt.Envelope.createIntersection(Envelope)
Use ((Envelope)clone()).intersect(envelope) instead. |
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(CoordinateReferenceSystem, CoordinateReferenceSystem, OperationMethod)
Current implementation ignore the method argument. |
org.geotools.referencing.factory.GeotoolsFactory.createProjectedCRS(Map, GeographicCRS, MathTransform, CartesianCS)
Use the method with an OperationMethod argument instead. |
org.geotools.referencing.factory.GeotoolsFactory.createProjectedCRS(Map, GeographicCRS, ParameterValueGroup, CartesianCS)
Use FactoryGroup.createProjectedCRS(java.util.Map, org.opengis.referencing.crs.GeographicCRS, org.opengis.referencing.operation.Conversion, org.opengis.referencing.cs.CartesianCS) instead. |
org.geotools.referencing.factory.GeotoolsFactory.createProjectedCRS(Map, GeographicCRS, String, GeneralParameterValue[], CartesianCS)
Replaced by GeotoolsFactory.createProjectedCRS(Map,GeographicCRS,ParameterValueGroup,CartesianCS)
for concistency with the rest of the API, which work with ParameterValueGroup
rather than an array of GeneralParameterValue . |
org.geotools.data.crs.CRSAuthoritySpi.decode(String)
Replaced by CRSAuthorityFactory.createCoordinateReferenceSystem(java.lang.String) . |
org.geotools.coverage.processing.AbstractGridCoverageProcessor.doOperation(String, GeneralParameterValue[])
Use AbstractGridCoverageProcessor.doOperation(Operation, ParameterValueGroup) instead. |
org.geotools.data.arcsde.ArcSDEAdapter.fetchSchema(ArcSDEConnectionPool, String)
|
org.geotools.referencing.factory.AbstractAuthorityFactory.geoidFromWktName(String)
We should try to rely on the alias mechanism available in all
IdentifiedObject instead. If this method is really
needed, we can reinsert it later. |
org.geotools.cs.Info.getAbbreviation(Locale)
No replacement. |
org.geotools.gui.swing.CoordinateChooser.getAccessory()
Depracated together with CoordinateChooser.setAccessory(javax.swing.JComponent) . |
org.geotools.cs.Info.getAlias(Locale)
Replaced by AbstractIdentifiedObject.getIdentifiers() . |
org.geotools.cs.PrimeMeridian.getAngularUnit()
Replaced by DefaultPrimeMeridian.getAngularUnit() . |
org.geotools.cs.Info.getAuthorityCode(Locale)
Replaced by NamedIdentifier#getCode . |
org.geotools.referencing.operation.DefaultMathTransformFactory.getAvailableTransforms()
Replaced by DefaultMathTransformFactory.getAvailableMethods(java.lang.Class) . The old name was misleading, since
a transform is an instantiation of an operation method with a given set of
parameters. There is usually much less operation method in a system than
transforms. |
org.geotools.cs.CoordinateSystem.getAxis(int)
Replaced by AbstractCS.getAxis(int) . |
org.geotools.cs.Ellipsoid.getAxisUnit()
Replaced by DefaultEllipsoid.getAxisUnit() . |
org.geotools.cs.FittedCoordinateSystem.getBaseCoordinateSystem()
Replaced by AbstractDerivedCRS.getBaseCRS() . |
org.geotools.renderer.geom.GeometryProxy.getBounds()
This method is required by the Shape interface,
but it doesn't provide enough precision for most cases.
Use GeometryProxy.getBounds2D() instead. |
org.geotools.renderer.geom.Geometry.getBounds()
This method is required by the Shape interface,
but it doesn't provide enough precision for most cases.
Use Geometry.getBounds2D() instead. |
org.geotools.coverage.GridSampleDimension.getCategoryNames(Locale)
Use GridSampleDimension.getCategoryNames() instead. |
org.geotools.filter.SQLEncoder.getColnameEscape()
the escapeName method is preferred over this, it
automatically returns the name properly escaped, since
that's all getColnameEscape was being used for. |
org.geotools.filter.parser.SimpleCharStream.getColumn()
|
org.geotools.cs.Datum.getDatumType()
Replaced by DefaultVerticalDatum.getVerticalDatumType()
for the vertical case. No replacement for other cases. |
org.geotools.referencing.factory.GeotoolsFactory.getDefaultParameters(String)
This method will be removed. |
org.geotools.coverage.GridSampleDimension.getDescription(Locale)
Use GridSampleDimension.getDescription() instead. |
org.geotools.cs.CoordinateSystem.getDimension()
Replaced by AbstractCS.getDimension() . |
org.geotools.coverage.AbstractCoverage.getDimensionNames(Locale)
Replaced by AbstractCoverage.getDimensionNames() . |
org.geotools.referencing.operation.transform.AbstractMathTransform.getDimSource()
Renamed AbstractMathTransform.getSourceDimensions() for consistency with OperationMethod . |
org.geotools.referencing.operation.transform.AbstractMathTransform.getDimTarget()
Renamed AbstractMathTransform.getTargetDimensions() for consistency with OperationMethod . |
org.geotools.cs.Ellipsoid.getEccentricity()
Replaced by DefaultEllipsoid.getEccentricity() . |
org.geotools.cs.HorizontalDatum.getEllipsoid()
Replaced by DefaultGeodeticDatum.getEllipsoid() . |
org.geotools.data.AbstractDataStore.getFeatureWriter(String)
|
org.geotools.cs.ProjectedCoordinateSystem.getGeographicCoordinateSystem()
Replaced by AbstractDerivedCRS.getBaseCRS() . |
org.geotools.feature.GeometryAttributeType.getGeometryFactory()
Please use GeometrFactory associated with your FeatureFactory
using the hinting system. |
org.geotools.cs.CompoundCoordinateSystem.getHeadCS()
Replaced by DefaultCompoundCRS.getCoordinateReferenceSystems() . |
org.geotools.cs.HorizontalCoordinateSystem.getHorizontalDatum()
Replaced by AbstractSingleCRS.getDatum() . |
org.geotools.cs.GeocentricCoordinateSystem.getHorizontalDatum()
Replaced by AbstractSingleCRS.getDatum() . |
org.geotools.cs.Ellipsoid.getInverseFlattening()
Replaced by DefaultEllipsoid.getInverseFlattening() . |
org.geotools.filter.parser.SimpleCharStream.getLine()
|
org.geotools.cs.LocalCoordinateSystem.getLocalDatum()
Replaced by AbstractSingleCRS.getDatum() . |
org.geotools.cs.PrimeMeridian.getLongitude()
Replaced by DefaultPrimeMeridian.getGreenwichLongitude() . |
org.geotools.renderer.j2d.RenderedLegend.getMargin()
Use RenderedLegend.getInsets() instead. |
org.geotools.ct.CoordinateTransformation.getMathTransform()
Replaced by AbstractCoordinateOperation.getMathTransform() . |
org.geotools.ct.CoordinateTransformation.getName(Locale)
Replaced by AbstractIdentifiedObject.getName() . |
org.geotools.referencing.crs.AUTOCRSAuthorityFactory.getObjectFactory()
This method was required by old GeoAPI interfaces, but is not required anymore. |
org.geotools.referencing.factory.AbstractAuthorityFactory.getObjectFactory()
Will be removed. |
org.geotools.data.jdbc.referencing.JDBCAuthorityFactory.getObjectFactory()
This method will be removed from GeoAPI interfaces. |
org.geotools.parameter.MatrixParameterDescriptors.getParameter(String)
Use MatrixParameterDescriptors.descriptor(String) instead. |
org.geotools.parameter.MatrixParameters.getParameter(String)
Use MatrixParameters.descriptor(String) instead. |
org.geotools.parameter.DefaultParameterDescriptorGroup.getParameter(String)
Use DefaultParameterDescriptorGroup.descriptor(java.lang.String) instead. |
org.geotools.cs.Projection.getParameters()
Replaced by DefaultOperation.getParameterValues() . |
org.geotools.cs.GeographicCoordinateSystem.getPrimeMeridian()
Replaced by DefaultGeodeticDatum.getPrimeMeridian() . |
org.geotools.cs.GeocentricCoordinateSystem.getPrimeMeridian()
Replaced by DefaultGeodeticDatum.getPrimeMeridian() . |
org.geotools.cs.ProjectedCoordinateSystem.getProjection()
Replaced by AbstractDerivedCRS.getConversionFromBase() . |
org.geotools.cs.Ellipsoid.getSemiMajorAxis()
Replaced by DefaultEllipsoid.getSemiMajorAxis() . |
org.geotools.cs.Ellipsoid.getSemiMinorAxis()
Replaced by DefaultEllipsoid.getSemiMinorAxis() . |
org.geotools.ct.CoordinateTransformation.getSourceCS()
Replaced by AbstractCoordinateOperation.getSourceCRS() . |
org.geotools.cs.CompoundCoordinateSystem.getTailCS()
Replaced by DefaultCompoundCRS.getCoordinateReferenceSystems() . |
org.geotools.ct.CoordinateTransformation.getTargetCS()
Replaced by AbstractCoordinateOperation.getTargetCRS() . |
org.geotools.cs.FittedCoordinateSystem.getToBase()
Replaced by AbstractDerivedCRS.getConversionFromBase() ,
except that the transform needs to be inverted. |
org.geotools.ct.CoordinateTransformation.getTransformType()
No direct replacement. Check for instance of
Conversion or
Transformation instead. |
org.geotools.cs.ProjectedCoordinateSystem.getUnits(int)
Replaced by DefaultCoordinateSystemAxis.getUnit() . |
org.geotools.cs.GeographicCoordinateSystem.getUnits(int)
Replaced by DefaultCoordinateSystemAxis.getUnit() . |
org.geotools.cs.VerticalCoordinateSystem.getUnits(int)
Replaced by DefaultCoordinateSystemAxis.getUnit() . |
org.geotools.cs.GeocentricCoordinateSystem.getUnits(int)
Replaced by DefaultCoordinateSystemAxis.getUnit() . |
org.geotools.cs.CoordinateSystem.getUnits(int)
Replaced by DefaultCoordinateSystemAxis.getUnit() . |
org.geotools.cs.VerticalCoordinateSystem.getVerticalDatum()
Replaced by AbstractSingleCRS.getDatum() . |
org.geotools.feature.FeatureType.hasAttributeType(String)
It seems this method is ill concieved, use getAttributeType( xpath ) != null as a
replacement |
org.geotools.parameter.Parameters.indexOf(ParameterValueGroup, GeneralParameterDescriptor)
Use ParameterValueGroup.parameter(java.lang.String) or ParameterValueGroup.groups(java.lang.String)
instead. We would like to encourage peoples to use parameter name as key instead of parameter
descriptor, because the parameter descriptor may not be always available. For example
if a user know he is looking for the "semi_major" axis length (because it is documented
in OpenGIS specification under that name) but don't know and don't care about who is
providing the implementation, then he doesn't have the parameter descriptor; he only
have the parameter name. Furthermore, parameter descriptor is implementation dependent.
For example if we search for the "semi_major" axis length using the Geotools descriptor
for this parameter, we will fail to find this parameter in a ParameterValueGroup
provided by an other implementation. This is against GeoAPI goal, which is
inter-operability. This doesn't mean that parameter descriptor should not be used.
They are used for inspecting meta-data about parameters, not for searching parameters.
Since each parameter name should be unique in a given parameter group (because
DefaultParameterDescriptor.getMaximumOccurs() is always 1 for single parameter),
the parameter name is a suffisient key for searching. |
org.geotools.gc.GridCoverage.interpolate(GridCoverage)
Override GridCoverage.createGeophysics(boolean) instead.
This method will be removed in a future version. |
org.geotools.feature.FeatureAttributeType.isGeometry()
repalce with: type instanceof GeometryAttributeType |
org.geotools.feature.GeometryAttributeType.isGeometry()
replace with type instnaceof GeometryAttribtueType |
org.geotools.feature.AttributeType.isGeometry()
Replaced with the use of instanceof or Geometry.class.isAssignableFrom(attributeTypes[j].getType()) |
org.geotools.cs.Ellipsoid.isIvfDefinitive()
Replaced by DefaultEllipsoid.isIvfDefinitive() . |
org.geotools.parameter.Parameters.list(ParameterValueGroup, GeneralParameterDescriptor)
Use search(group,
type.getName().getCode(), 1) instead. See comments in Parameters.indexOf(org.opengis.parameter.ParameterValueGroup, org.opengis.parameter.GeneralParameterDescriptor) for a rational
about why name should be used as key instead of parameter descriptor. |
org.geotools.cs.Ellipsoid.orthodromicDistance(double, double, double, double)
Replaced by DefaultEllipsoid.orthodromicDistance(double,double,double,double) . |
org.geotools.cs.Ellipsoid.orthodromicDistance(Point2D, Point2D)
Replaced by DefaultEllipsoid.orthodromicDistance(Point2D,Point2D) . |
org.geotools.renderer.j2d.Renderer.paint(Graphics2D, AffineTransform, Rectangle)
Use Renderer.paint(Graphics2D, Rectangle, AffineTransform) instead. |
org.geotools.renderer.j2d.Renderer.paint(Graphics2D, Rectangle, AffineTransform)
Use Renderer.paint(Graphics2D,Rectangle,AffineTransform,boolean) instead. |
org.geotools.data.FeatureResults.reader()
please use FeatureCollections.features() to obtain a FeatureIterator |
org.geotools.parameter.Parameters.search(ParameterValueGroup, GeneralParameterDescriptor)
Use search(group,
type.getName().getCode(), 100) instead. See comments in Parameters.indexOf(org.opengis.parameter.ParameterValueGroup, org.opengis.parameter.GeneralParameterDescriptor) for a
rational about why name should be used as key instead of parameter descriptor. |
org.geotools.gui.swing.CoordinateChooser.setAccessory(JComponent)
This method doesn't bring any new feature. You can do
the same with better results using the following code:
JPanel panel = new JPanel(new BorderLayout());
panel.add(coordinateChooser, BorderLayout.WEST);
panel.add(accessory, BorderLayout.CENTER);
|
org.geotools.filter.SQLEncoder.setColnameEscape(String)
Use setSqlNameEscape instead, as it is more aptly named. |
org.geotools.filter.SQLEncoderSDE.setLayer(SeLayer)
remove when the old data api dissapear |
org.geotools.filter.GeometryEncoderSDE.setLayer(SeLayer)
remove when the old data api dissapear |
org.geotools.renderer.j2d.RenderedLegend.setMargin(Insets)
Use RenderedLegend.setInsets(java.awt.Insets) instead. |
org.geotools.renderer.lite.LiteRenderer.setOutput(Graphics, Rectangle)
Graphics and bounds is to be set in renderer(). |
org.geotools.renderer.lite.LiteRenderer2.setOutput(Graphics, Rectangle)
Graphics and bounds is to be set in renderer(). |
org.geotools.referencing.factory.AbstractAuthorityFactory.wktFromGeoidName(String)
We should try to rely on the alias mechanism available in all
IdentifiedObject instead. If this method is really
needed, we can reinsert it later. |
Deprecated Constructors |
org.geotools.referencing.operation.AbstractCoordinateOperationFactory(FactoryGroup)
Use AbstractCoordinateOperationFactory.AbstractCoordinateOperationFactory(Hints) instead. |
org.geotools.referencing.operation.AbstractCoordinateOperationFactory(MathTransformFactory)
Use AbstractCoordinateOperationFactory.AbstractCoordinateOperationFactory(Hints) instead. |
org.geotools.referencing.operation.DefaultCoordinateOperationFactory(FactoryGroup)
Use DefaultCoordinateOperationFactory.DefaultCoordinateOperationFactory(Hints) instead. |
org.geotools.referencing.operation.DefaultCoordinateOperationFactory(MathTransformFactory)
Use DefaultCoordinateOperationFactory.DefaultCoordinateOperationFactory(Hints) instead. |
org.geotools.referencing.operation.DefaultOperationMethod(Map, int, int, GeneralParameterDescriptor[])
Use the method expecting a parameter group instead. |
org.geotools.parameter.DefaultParameterDescriptor(Map, boolean, Class, Object[], Object, Comparable, Comparable, Unit)
Use the constructor with required as the last argument
instead. This is just a change in the order of arguments, which was
performed for consistency with other constructors. |
org.geotools.parameter.DefaultParameterDescriptor(String, Class, Comparable, Comparable, Comparable, Unit)
This constructor add little benefit compared to the full constructor.
In other words, this "convenience" constructor doesn't save much typing.
It will be removed in a future version, in order to simplify the API. |
org.geotools.referencing.cs.DefaultPolarCS(String, CoordinateSystemAxis[])
Use the method with a pre-defined number of axis
(for enforcing compile-time check). |
org.geotools.coverage.grid.GridCoverage2D(CharSequence, ImageFunction, CoordinateReferenceSystem, GridGeometry2D, GridSampleDimension[], Map)
Replaced by a method with the same signature in
GridCoverageFactory . |
org.geotools.coverage.grid.GridCoverage2D(CharSequence, RenderedImage, CoordinateReferenceSystem, Envelope)
Replaced by a method with the same signature in
GridCoverageFactory . |
org.geotools.coverage.grid.GridCoverage2D(CharSequence, WritableRaster, CoordinateReferenceSystem, Envelope, double[], double[], Unit, Color[][], RenderingHints)
Replaced by a method with the same signature in
GridCoverageFactory . |
org.geotools.coverage.grid.GridCoverage2D(CharSequence, WritableRaster, CoordinateReferenceSystem, MathTransform, double[], double[], Unit, Color[][], RenderingHints)
Replaced by a method with the same signature in
GridCoverageFactory . |
org.geotools.coverage.grid.GridCoverage2D(CharSequence, WritableRaster, Envelope)
Replaced by a method with the same signature in
GridCoverageFactory . |
org.geotools.feature.SimpleFeatureType(String, String, Collection, Collection, GeometryAttributeType)
use SimpleFeatureType(String,URI,Collection,Collection,GeometryAttributeType) |