This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push: new c4bda9bad1 Keep the old constructors as deprecated ones. c4bda9bad1 is described below commit c4bda9bad1876e300a5437f3ca4a50d123b43eba Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Jul 12 11:15:23 2024 +0200 Keep the old constructors as deprecated ones. --- .../sis/referencing/crs/DefaultEngineeringCRS.java | 11 +++++++++++ .../sis/referencing/crs/DefaultGeocentricCRS.java | 22 ++++++++++++++++++++++ .../sis/referencing/crs/DefaultGeographicCRS.java | 11 +++++++++++ .../sis/referencing/crs/DefaultParametricCRS.java | 11 +++++++++++ .../sis/referencing/crs/DefaultTemporalCRS.java | 11 +++++++++++ .../sis/referencing/crs/DefaultVerticalCRS.java | 11 +++++++++++ 6 files changed, 77 insertions(+) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultEngineeringCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultEngineeringCRS.java index 36c1e5e942..eccc070abf 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultEngineeringCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultEngineeringCRS.java @@ -164,6 +164,17 @@ public class DefaultEngineeringCRS extends AbstractCRS implements EngineeringCRS checkDatum(datum, ensemble); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultEngineeringCRS(final Map<String,?> properties, + final EngineeringDatum datum, + final CoordinateSystem cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeocentricCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeocentricCRS.java index 1b09339b3c..27125cbaea 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeocentricCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeocentricCRS.java @@ -167,6 +167,28 @@ public class DefaultGeocentricCRS extends DefaultGeodeticCRS { checkDimension(2, 3, cs); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultGeocentricCRS(final Map<String,?> properties, + final GeodeticDatum datum, + final CartesianCS cs) + { + this(properties, datum, null, cs); + } + + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultGeocentricCRS(final Map<String,?> properties, + final GeodeticDatum datum, + final SphericalCS cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeographicCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeographicCRS.java index 288e53630a..e8b4027634 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeographicCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultGeographicCRS.java @@ -164,6 +164,17 @@ public class DefaultGeographicCRS extends DefaultGeodeticCRS implements Geograph checkDimension(2, 3, cs); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultGeographicCRS(final Map<String,?> properties, + final GeodeticDatum datum, + final EllipsoidalCS cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultParametricCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultParametricCRS.java index c79c9ae007..e55064a583 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultParametricCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultParametricCRS.java @@ -147,6 +147,17 @@ public class DefaultParametricCRS extends AbstractCRS implements ParametricCRS { checkDimension(1, 1, cs); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultParametricCRS(final Map<String,?> properties, + final ParametricDatum datum, + final ParametricCS cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultTemporalCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultTemporalCRS.java index bad5499ec1..be954702c0 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultTemporalCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultTemporalCRS.java @@ -184,6 +184,17 @@ public class DefaultTemporalCRS extends AbstractCRS implements TemporalCRS { initializeConverter(); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultTemporalCRS(final Map<String,?> properties, + final TemporalDatum datum, + final TimeCS cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultVerticalCRS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultVerticalCRS.java index 0474e453d7..e5be3b1c7d 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultVerticalCRS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/crs/DefaultVerticalCRS.java @@ -148,6 +148,17 @@ public class DefaultVerticalCRS extends AbstractCRS implements VerticalCRS { checkDimension(1, 1, cs); } + /** + * @deprecated A {@code DatumEnsemble} argument has been added. + */ + @Deprecated(since="1.5", forRemoval=true) + public DefaultVerticalCRS(final Map<String,?> properties, + final VerticalDatum datum, + final VerticalCS cs) + { + this(properties, datum, null, cs); + } + /** * Creates a new CRS derived from the specified one, but with different axis order or unit. * This is for implementing the {@link #createSameType(AbstractCS)} method only.