Class Wrappers

Object
Wrappers

public final class Wrappers extends Object
Views of GeoTools objects as GeoAPI objects, and conversely. All geoapi(…) methods take a GeoTools object in argument and returns an implementation of the corresponding GeoAPI interface which delegates all operations to the given GeoTools object. That geoapi(…) method is overloaded with all types supported by wrappers in this package. In most cases, users can blindly invoke Wrappers.geoapi(…) and let the compiler determines the most appropriate method.

All geoapi(…) methods perform the same work as geoapi(…) methods, but in the reverse direction: they view GeoAPI objects as GeoTools objects.

Dynamic determination of type

Some types are the parent of one or more specializations. For example, when the geoapi(CoordinateSystem) method is invoked, the given object could actually be a CartesianCS, or a SphericalCS, etc. All methods in this class check for such specializations in order to return the best match.
  • Method Summary

    Modifier and Type
    Method
    Description
    geoapi(Position geotools)
    Views the given GeoTools object as a GeoAPI DirectPosition.
    static Address
    geoapi(Address geotools)
    Views the given GeoTools object as a GeoAPI Address.
    static Citation
    geoapi(Citation geotools)
    Views the given GeoTools object as a GeoAPI Citation.
    static Contact
    geoapi(Contact geotools)
    Views the given GeoTools object as a GeoAPI Contact.
    geoapi(OnLineFunction geotools)
    Returns the given GeoTools code list value as a GeoAPI OnLineFunction.
    geoapi(OnLineResource geotools)
    Views the given GeoTools object as a GeoAPI OnlineResource.
    geoapi(PresentationForm geotools)
    Returns the given GeoTools code list value as a GeoAPI PresentationForm.
    geoapi(ResponsibleParty geotools)
    Views the given GeoTools object as a GeoAPI ResponsibleParty.
    geoapi(Role geotools)
    Returns the given GeoTools code list value as a GeoAPI Role.
    static Telephone
    geoapi(Telephone geotools)
    Views the given GeoTools object as a GeoAPI Telephone.
    static Extent
    geoapi(Extent geotools)
    Views the given GeoTools object as a GeoAPI Extent.
    geoapi(GeographicBoundingBox geotools)
    Views the given GeoTools object as a GeoAPI GeographicBoundingBox.
    geoapi(GeographicExtent geotools)
    Views the given GeoTools object as a GeoAPI GeographicExtent.
    geoapi(TemporalExtent geotools)
    Views the given GeoTools object as a GeoAPI TemporalExtent.
    geoapi(VerticalExtent geotools)
    Views the given GeoTools object as a GeoAPI VerticalExtent.
    static Identifier
    geoapi(Identifier geotools)
    Views the given GeoTools object as a GeoAPI Identifier.
    geoapi(AbsoluteExternalPositionalAccuracy geotools)
    Views the given GeoTools object as a GeoAPI AbsoluteExternalPositionalAccuracy.
    geoapi(ConformanceResult geotools)
    Views the given GeoTools object as a GeoAPI ConformanceResult.
    static Element
    geoapi(Element geotools)
    Views the given GeoTools object as a GeoAPI Element.
    geoapi(EvaluationMethodType geotools)
    Returns the given GeoTools code list value as a GeoAPI EvaluationMethodType.
    geoapi(PositionalAccuracy geotools)
    Views the given GeoTools object as a GeoAPI PositionalAccuracy.
    geoapi(QuantitativeResult geotools)
    Views the given GeoTools object as a GeoAPI QuantitativeResult.
    static Result
    geoapi(Result geotools)
    Views the given GeoTools object as a GeoAPI Result.
    geoapi(GeneralParameterDescriptor geotools)
    Views the given GeoTools object as a GeoAPI GeneralParameterDescriptor.
    geoapi(GeneralParameterValue geotools)
    Views the given GeoTools object as a GeoAPI GeneralParameterValue.
    geoapi(CompoundCRS geotools)
    Views the given GeoTools object as a GeoAPI CompoundCRS.
    geoapi(CoordinateReferenceSystem geotools)
    Views the given GeoTools object as a GeoAPI CoordinateReferenceSystem.
    geoapi(CRSAuthorityFactory geotools)
    Views the given GeoTools object as a GeoAPI CRSAuthorityFactory.
    static CRSFactory
    geoapi(CRSFactory geotools)
    Views the given GeoTools object as a GeoAPI CRSFactory.
    static DerivedCRS
    geoapi(DerivedCRS geotools)
    Views the given GeoTools object as a GeoAPI DerivedCRS.
    geoapi(EngineeringCRS geotools)
    Views the given GeoTools object as a GeoAPI EngineeringCRS.
    geoapi(GeneralDerivedCRS geotools)
    Views the given GeoTools object as a GeoAPI GeneralDerivedCRS.
    geoapi(GeocentricCRS geotools)
    Views the given GeoTools object as a GeoAPI GeocentricCRS.
    geoapi(GeodeticCRS geotools)
    Views the given GeoTools object as a GeoAPI GeodeticCRS.
    geoapi(GeographicCRS geotools)
    Views the given GeoTools object as a GeoAPI GeographicCRS.
    static ImageCRS
    geoapi(ImageCRS geotools)
    Views the given GeoTools object as a GeoAPI ImageCRS.
    geoapi(ProjectedCRS geotools)
    Views the given GeoTools object as a GeoAPI ProjectedCRS.
    static SingleCRS
    geoapi(SingleCRS geotools)
    Views the given GeoTools object as a GeoAPI SingleCRS.
    geoapi(TemporalCRS geotools)
    Views the given GeoTools object as a GeoAPI TemporalCRS.
    geoapi(VerticalCRS geotools)
    Views the given GeoTools object as a GeoAPI VerticalCRS.
    static AffineCS
    geoapi(AffineCS geotools)
    Views the given GeoTools object as a GeoAPI AffineCS.
    geoapi(AxisDirection geotools)
    Returns the given GeoTools code list value as a GeoAPI AxisDirection.
    geoapi(CartesianCS geotools)
    Views the given GeoTools object as a GeoAPI CartesianCS.
    geoapi(CoordinateSystem geotools)
    Views the given GeoTools object as a GeoAPI CoordinateSystem.
    geoapi(CoordinateSystemAxis geotools)
    Views the given GeoTools object as a GeoAPI CoordinateSystemAxis.
    geoapi(CSAuthorityFactory geotools)
    Views the given GeoTools object as a GeoAPI CSAuthorityFactory.
    static CSFactory
    geoapi(CSFactory geotools)
    Views the given GeoTools object as a GeoAPI CSFactory.
    geoapi(CylindricalCS geotools)
    Views the given GeoTools object as a GeoAPI CylindricalCS.
    geoapi(EllipsoidalCS geotools)
    Views the given GeoTools object as a GeoAPI EllipsoidalCS.
    static LinearCS
    geoapi(LinearCS geotools)
    Views the given GeoTools object as a GeoAPI LinearCS.
    static PolarCS
    geoapi(PolarCS geotools)
    Views the given GeoTools object as a GeoAPI PolarCS.
    geoapi(RangeMeaning geotools)
    Returns the given GeoTools code list value as a GeoAPI RangeMeaning.
    geoapi(SphericalCS geotools)
    Views the given GeoTools object as a GeoAPI SphericalCS.
    static TimeCS
    geoapi(TimeCS geotools)
    Views the given GeoTools object as a GeoAPI TimeCS.
    geoapi(UserDefinedCS geotools)
    Views the given GeoTools object as a GeoAPI UserDefinedCS.
    static VerticalCS
    geoapi(VerticalCS geotools)
    Views the given GeoTools object as a GeoAPI VerticalCS.
    static Datum
    geoapi(Datum geotools)
    Views the given GeoTools object as a GeoAPI Datum.
    geoapi(DatumAuthorityFactory geotools)
    Views the given GeoTools object as a GeoAPI DatumAuthorityFactory.
    geoapi(DatumFactory geotools)
    Views the given GeoTools object as a GeoAPI DatumFactory.
    static Ellipsoid
    geoapi(Ellipsoid geotools)
    Views the given GeoTools object as a GeoAPI Ellipsoid.
    geoapi(EngineeringDatum geotools)
    Views the given GeoTools object as a GeoAPI EngineeringDatum.
    geoapi(GeodeticDatum geotools)
    Views the given GeoTools object as a GeoAPI GeodeticDatum.
    static ImageDatum
    geoapi(ImageDatum geotools)
    Views the given GeoTools object as a GeoAPI ImageDatum.
    geoapi(PixelInCell geotools)
    Returns the given GeoTools code list value as a GeoAPI PixelInCell.
    geoapi(PrimeMeridian geotools)
    Views the given GeoTools object as a GeoAPI PrimeMeridian.
    geoapi(TemporalDatum geotools)
    Views the given GeoTools object as a GeoAPI TemporalDatum.
    geoapi(VerticalDatum geotools)
    Views the given GeoTools object as a GeoAPI VerticalDatum.
    geoapi(VerticalDatumType geotools)
    Returns the given GeoTools code list value as a GeoAPI VerticalDatumType.
    geoapi(IdentifiedObject geotools)
    Views the given GeoTools object as a GeoAPI IdentifiedObject.
    geoapi(ConcatenatedOperation geotools)
    Views the given GeoTools object as a GeoAPI ConcatenatedOperation.
    static Conversion
    geoapi(Conversion geotools)
    Views the given GeoTools object as a GeoAPI Conversion.
    geoapi(CoordinateOperation geotools)
    Views the given GeoTools object as a GeoAPI CoordinateOperation.
    geoapi(CoordinateOperationAuthorityFactory geotools)
    Views the given GeoTools object as a GeoAPI CoordinateOperationAuthorityFactory.
    geoapi(CoordinateOperationFactory geotools)
    Views the given GeoTools object as a GeoAPI CoordinateOperationFactory.
    geoapi(MathTransform geotools)
    Views the given GeoTools object as a GeoAPI MathTransform.
    geoapi(MathTransform1D geotools)
    Views the given GeoTools object as a GeoAPI MathTransform1D.
    geoapi(MathTransform2D geotools)
    Views the given GeoTools object as a GeoAPI MathTransform2D.
    static Matrix
    geoapi(Matrix geotools)
    Views the given GeoTools object as a GeoAPI Matrix.
    geoapi(OperationMethod geotools)
    Views the given GeoTools object as a GeoAPI OperationMethod.
    static Projection
    geoapi(Projection geotools)
    Views the given GeoTools object as a GeoAPI Projection.
    geoapi(SingleOperation geotools)
    Views the given GeoTools object as a GeoAPI SingleOperation.
    geoapi(Transformation geotools)
    Views the given GeoTools object as a GeoAPI Transformation.
    geoapi(ReferenceIdentifier geotools)
    Views the given GeoTools object as a GeoAPI ReferenceIdentifier.
    geoapi(ReferenceSystem geotools)
    Views the given GeoTools object as a GeoAPI ReferenceSystem.
    geoapi(PeriodDuration geotools)
    Views the given GeoTools object as a GeoAPI PeriodDuration.
    geoapi(TemporalPrimitive geotools)
    Views the given GeoTools object as a GeoAPI TemporalPrimitive.
    geoapi(GenericName geotools)
    Views the given GeoTools object as a GeoAPI GenericName.
    geoapi(InternationalString geotools)
    Views the given GeoTools object as a GeoAPI InternationalString.
    static LocalName
    geoapi(LocalName geotools)
    Views the given GeoTools object as a GeoAPI LocalName.
    static MemberName
    geoapi(MemberName geotools)
    Views the given GeoTools object as a GeoAPI MemberName.
    static NameSpace
    geoapi(NameSpace geotools)
    Views the given GeoTools object as a GeoAPI NameSpace.
    static Record
    geoapi(Record geotools)
    Views the given GeoTools object as a GeoAPI Record.
    geoapi(RecordSchema geotools)
    Views the given GeoTools object as a GeoAPI RecordSchema.
    static RecordType
    geoapi(RecordType geotools)
    Views the given GeoTools object as a GeoAPI RecordType.
    static ScopedName
    geoapi(ScopedName geotools)
    Views the given GeoTools object as a GeoAPI ScopedName.
    static TypeName
    geoapi(TypeName geotools)
    Views the given GeoTools object as a GeoAPI TypeName.
    static Position
    Views the given GeoAPI object as a GeoTools DirectPosition.
    static Address
    geotools(Address geoapi)
    Views the given GeoAPI object as a GeoTools Address.
    static Citation
    Views the given GeoAPI object as a GeoTools Citation.
    static Contact
    geotools(Contact geoapi)
    Views the given GeoAPI object as a GeoTools Contact.
    OnLineFunction
    Returns the given GeoAPI code list value as a GeoTools OnLineFunction.
    static OnLineResource
    Views the given GeoAPI object as a GeoTools OnlineResource.
    PresentationForm
    Returns the given GeoAPI code list value as a GeoTools PresentationForm.
    static ResponsibleParty
    Views the given GeoAPI object as a GeoTools ResponsibleParty.
    Role
    geotools(Role geoapi)
    Returns the given GeoAPI code list value as a GeoTools Role.
    static Telephone
    Views the given GeoAPI object as a GeoTools Telephone.
    static Extent
    geotools(Extent geoapi)
    Views the given GeoAPI object as a GeoTools Extent.
    static GeographicBoundingBox
    Views the given GeoAPI object as a GeoTools GeographicBoundingBox.
    static GeographicExtent
    Views the given GeoAPI object as a GeoTools GeographicExtent.
    static TemporalExtent
    Views the given GeoAPI object as a GeoTools TemporalExtent.
    static VerticalExtent
    Views the given GeoAPI object as a GeoTools VerticalExtent.
    static Identifier
    Views the given GeoAPI object as a GeoTools Identifier.
    static AbsoluteExternalPositionalAccuracy
    Views the given GeoAPI object as a GeoTools AbsoluteExternalPositionalAccuracy.
    static ConformanceResult
    Views the given GeoAPI object as a GeoTools ConformanceResult.
    static Element
    geotools(Element geoapi)
    Views the given GeoAPI object as a GeoTools Element.
    EvaluationMethodType
    Returns the given GeoAPI code list value as a GeoTools EvaluationMethodType.
    static PositionalAccuracy
    Views the given GeoAPI object as a GeoTools PositionalAccuracy.
    static QuantitativeResult
    Views the given GeoAPI object as a GeoTools QuantitativeResult.
    static Result
    geotools(Result geoapi)
    Views the given GeoAPI object as a GeoTools Result.
    static GeneralParameterDescriptor
    Views the given GeoAPI object as a GeoTools GeneralParameterDescriptor.
    static GeneralParameterValue
    Views the given GeoAPI object as a GeoTools GeneralParameterValue.
    static CompoundCRS
    Views the given GeoAPI object as a GeoTools CompoundCRS.
    static CoordinateReferenceSystem
    Views the given GeoAPI object as a GeoTools CoordinateReferenceSystem.
    static CRSAuthorityFactory
    Views the given GeoAPI object as a GeoTools CRSAuthorityFactory.
    static CRSFactory
    Views the given GeoAPI object as a GeoTools CRSFactory.
    static DerivedCRS
    Views the given GeoAPI object as a GeoTools DerivedCRS.
    static EngineeringCRS
    Views the given GeoAPI object as a GeoTools EngineeringCRS.
    static GeneralDerivedCRS
    Views the given GeoAPI object as a GeoTools GeneralDerivedCRS.
    static GeocentricCRS
    Views the given GeoAPI object as a GeoTools GeocentricCRS.
    static GeodeticCRS
    Views the given GeoAPI object as a GeoTools GeodeticCRS.
    static GeographicCRS
    Views the given GeoAPI object as a GeoTools GeographicCRS.
    static ImageCRS
    Views the given GeoAPI object as a GeoTools ImageCRS.
    static ProjectedCRS
    Views the given GeoAPI object as a GeoTools ProjectedCRS.
    static SingleCRS
    Views the given GeoAPI object as a GeoTools SingleCRS.
    static TemporalCRS
    Views the given GeoAPI object as a GeoTools TemporalCRS.
    static VerticalCRS
    Views the given GeoAPI object as a GeoTools VerticalCRS.
    static AffineCS
    Views the given GeoAPI object as a GeoTools AffineCS.
    AxisDirection
    Returns the given GeoAPI code list value as a GeoTools AxisDirection.
    static CartesianCS
    Views the given GeoAPI object as a GeoTools CartesianCS.
    static CoordinateSystem
    Views the given GeoAPI object as a GeoTools CoordinateSystem.
    static CoordinateSystemAxis
    Views the given GeoAPI object as a GeoTools CoordinateSystemAxis.
    static CSAuthorityFactory
    Views the given GeoAPI object as a GeoTools CSAuthorityFactory.
    static CSFactory
    Views the given GeoAPI object as a GeoTools CSFactory.
    static CylindricalCS
    Views the given GeoAPI object as a GeoTools CylindricalCS.
    static EllipsoidalCS
    Views the given GeoAPI object as a GeoTools EllipsoidalCS.
    static LinearCS
    Views the given GeoAPI object as a GeoTools LinearCS.
    static PolarCS
    geotools(PolarCS geoapi)
    Views the given GeoAPI object as a GeoTools PolarCS.
    RangeMeaning
    Returns the given GeoAPI code list value as a GeoTools RangeMeaning.
    static SphericalCS
    Views the given GeoAPI object as a GeoTools SphericalCS.
    static TimeCS
    geotools(TimeCS geoapi)
    Views the given GeoAPI object as a GeoTools TimeCS.
    static UserDefinedCS
    Views the given GeoAPI object as a GeoTools UserDefinedCS.
    static VerticalCS
    Views the given GeoAPI object as a GeoTools VerticalCS.
    static Datum
    geotools(Datum geoapi)
    Views the given GeoAPI object as a GeoTools Datum.
    static DatumAuthorityFactory
    Views the given GeoAPI object as a GeoTools DatumAuthorityFactory.
    static DatumFactory
    Views the given GeoAPI object as a GeoTools DatumFactory.
    static Ellipsoid
    Views the given GeoAPI object as a GeoTools Ellipsoid.
    static EngineeringDatum
    Views the given GeoAPI object as a GeoTools EngineeringDatum.
    static GeodeticDatum
    Views the given GeoAPI object as a GeoTools GeodeticDatum.
    static ImageDatum
    Views the given GeoAPI object as a GeoTools ImageDatum.
    PixelInCell
    Returns the given GeoAPI code list value as a GeoTools PixelInCell.
    static PrimeMeridian
    Views the given GeoAPI object as a GeoTools PrimeMeridian.
    static TemporalDatum
    Views the given GeoAPI object as a GeoTools TemporalDatum.
    static VerticalDatum
    Views the given GeoAPI object as a GeoTools VerticalDatum.
    VerticalDatumType
    Returns the given GeoAPI code list value as a GeoTools VerticalDatumType.
    static IdentifiedObject
    Views the given GeoAPI object as a GeoTools IdentifiedObject.
    static ConcatenatedOperation
    Views the given GeoAPI object as a GeoTools ConcatenatedOperation.
    static Conversion
    Views the given GeoAPI object as a GeoTools Conversion.
    static CoordinateOperation
    Views the given GeoAPI object as a GeoTools CoordinateOperation.
    static CoordinateOperationAuthorityFactory
    Views the given GeoAPI object as a GeoTools CoordinateOperationAuthorityFactory.
    static CoordinateOperationFactory
    Views the given GeoAPI object as a GeoTools CoordinateOperationFactory.
    static MathTransform
    Views the given GeoAPI object as a GeoTools MathTransform.
    static MathTransform1D
    Views the given GeoAPI object as a GeoTools MathTransform1D.
    static MathTransform2D
    Views the given GeoAPI object as a GeoTools MathTransform2D.
    static Matrix
    geotools(Matrix geoapi)
    Views the given GeoAPI object as a GeoTools Matrix.
    static OperationMethod
    Views the given GeoAPI object as a GeoTools OperationMethod.
    static Projection
    Views the given GeoAPI object as a GeoTools Projection.
    static SingleOperation
    Views the given GeoAPI object as a GeoTools SingleOperation.
    static Transformation
    Views the given GeoAPI object as a GeoTools Transformation.
    static ReferenceIdentifier
    Views the given GeoAPI object as a GeoTools ReferenceIdentifier.
    static ReferenceSystem
    Views the given GeoAPI object as a GeoTools ReferenceSystem.
    static PeriodDuration
    Views the given GeoAPI object as a GeoTools PeriodDuration.
    static TemporalPrimitive
    Views the given GeoAPI object as a GeoTools TemporalPrimitive.
    static GenericName
    Views the given GeoAPI object as a GeoTools GenericName.
    static InternationalString
    Views the given GeoAPI object as a GeoTools InternationalString.
    static LocalName
    Views the given GeoAPI object as a GeoTools LocalName.
    static MemberName
    Views the given GeoAPI object as a GeoTools MemberName.
    static NameSpace
    Views the given GeoAPI object as a GeoTools NameSpace.
    static Record
    geotools(Record geoapi)
    Views the given GeoAPI object as a GeoTools Record.
    static RecordSchema
    Views the given GeoAPI object as a GeoTools RecordSchema.
    static RecordType
    Views the given GeoAPI object as a GeoTools RecordType.
    static ScopedName
    Views the given GeoAPI object as a GeoTools ScopedName.
    static TypeName
    Views the given GeoAPI object as a GeoTools TypeName.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • geoapi

      public static AbsoluteExternalPositionalAccuracy geoapi(AbsoluteExternalPositionalAccuracy geotools)
      Views the given GeoTools object as a GeoAPI AbsoluteExternalPositionalAccuracy. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI AbsoluteExternalPositionalAccuracy interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a AbsoluteExternalPositionalAccuracy which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static AbsoluteExternalPositionalAccuracy geotools(AbsoluteExternalPositionalAccuracy geoapi)
      Views the given GeoAPI object as a GeoTools AbsoluteExternalPositionalAccuracy. This method performs the same choice as geoapi(AbsoluteExternalPositionalAccuracy), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Address geoapi(Address geotools)
      Views the given GeoTools object as a GeoAPI Address. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Address interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Address which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Address geotools(Address geoapi)
      Views the given GeoAPI object as a GeoTools Address. This method performs the same choice as geoapi(Address), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static AffineCS geoapi(AffineCS geotools)
      Views the given GeoTools object as a GeoAPI AffineCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI AffineCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a AffineCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static AffineCS geotools(AffineCS geoapi)
      Views the given GeoAPI object as a GeoTools AffineCS. This method performs the same choice as geoapi(AffineCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public AxisDirection geoapi(AxisDirection geotools)
      Returns the given GeoTools code list value as a GeoAPI AxisDirection.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public AxisDirection geotools(AxisDirection geoapi)
      Returns the given GeoAPI code list value as a GeoTools AxisDirection.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CRSAuthorityFactory geoapi(CRSAuthorityFactory geotools)
      Views the given GeoTools object as a GeoAPI CRSAuthorityFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CRSAuthorityFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CRSAuthorityFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CRSAuthorityFactory geotools(CRSAuthorityFactory geoapi)
      Views the given GeoAPI object as a GeoTools CRSAuthorityFactory. This method performs the same choice as geoapi(CRSAuthorityFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CRSFactory geoapi(CRSFactory geotools)
      Views the given GeoTools object as a GeoAPI CRSFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CRSFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CRSFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CRSFactory geotools(CRSFactory geoapi)
      Views the given GeoAPI object as a GeoTools CRSFactory. This method performs the same choice as geoapi(CRSFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CSAuthorityFactory geoapi(CSAuthorityFactory geotools)
      Views the given GeoTools object as a GeoAPI CSAuthorityFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CSAuthorityFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CSAuthorityFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CSAuthorityFactory geotools(CSAuthorityFactory geoapi)
      Views the given GeoAPI object as a GeoTools CSAuthorityFactory. This method performs the same choice as geoapi(CSAuthorityFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CSFactory geoapi(CSFactory geotools)
      Views the given GeoTools object as a GeoAPI CSFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CSFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CSFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CSFactory geotools(CSFactory geoapi)
      Views the given GeoAPI object as a GeoTools CSFactory. This method performs the same choice as geoapi(CSFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CartesianCS geoapi(CartesianCS geotools)
      Views the given GeoTools object as a GeoAPI CartesianCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CartesianCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CartesianCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CartesianCS geotools(CartesianCS geoapi)
      Views the given GeoAPI object as a GeoTools CartesianCS. This method performs the same choice as geoapi(CartesianCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Citation geoapi(Citation geotools)
      Views the given GeoTools object as a GeoAPI Citation. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Citation interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Citation which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Citation geotools(Citation geoapi)
      Views the given GeoAPI object as a GeoTools Citation. This method performs the same choice as geoapi(Citation), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CompoundCRS geoapi(CompoundCRS geotools)
      Views the given GeoTools object as a GeoAPI CompoundCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CompoundCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CompoundCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CompoundCRS geotools(CompoundCRS geoapi)
      Views the given GeoAPI object as a GeoTools CompoundCRS. This method performs the same choice as geoapi(CompoundCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ConcatenatedOperation geoapi(ConcatenatedOperation geotools)
      Views the given GeoTools object as a GeoAPI ConcatenatedOperation. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ConcatenatedOperation interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ConcatenatedOperation which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ConcatenatedOperation geotools(ConcatenatedOperation geoapi)
      Views the given GeoAPI object as a GeoTools ConcatenatedOperation. This method performs the same choice as geoapi(ConcatenatedOperation), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ConformanceResult geoapi(ConformanceResult geotools)
      Views the given GeoTools object as a GeoAPI ConformanceResult. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ConformanceResult interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ConformanceResult which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ConformanceResult geotools(ConformanceResult geoapi)
      Views the given GeoAPI object as a GeoTools ConformanceResult. This method performs the same choice as geoapi(ConformanceResult), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Contact geoapi(Contact geotools)
      Views the given GeoTools object as a GeoAPI Contact. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Contact interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Contact which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Contact geotools(Contact geoapi)
      Views the given GeoAPI object as a GeoTools Contact. This method performs the same choice as geoapi(Contact), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Conversion geoapi(Conversion geotools)
      Views the given GeoTools object as a GeoAPI Conversion. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Conversion interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Conversion which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Conversion geotools(Conversion geoapi)
      Views the given GeoAPI object as a GeoTools Conversion. This method performs the same choice as geoapi(Conversion), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateOperation geoapi(CoordinateOperation geotools)
      Views the given GeoTools object as a GeoAPI CoordinateOperation. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateOperation interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a CoordinateOperation which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateOperation geotools(CoordinateOperation geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateOperation. This method performs the same choice as geoapi(CoordinateOperation), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateOperationAuthorityFactory geoapi(CoordinateOperationAuthorityFactory geotools)
      Views the given GeoTools object as a GeoAPI CoordinateOperationAuthorityFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateOperationAuthorityFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CoordinateOperationAuthorityFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateOperationAuthorityFactory geotools(CoordinateOperationAuthorityFactory geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateOperationAuthorityFactory. This method performs the same choice as geoapi(CoordinateOperationAuthorityFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateOperationFactory geoapi(CoordinateOperationFactory geotools)
      Views the given GeoTools object as a GeoAPI CoordinateOperationFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateOperationFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CoordinateOperationFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateOperationFactory geotools(CoordinateOperationFactory geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateOperationFactory. This method performs the same choice as geoapi(CoordinateOperationFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateReferenceSystem geoapi(CoordinateReferenceSystem geotools)
      Views the given GeoTools object as a GeoAPI CoordinateReferenceSystem. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateReferenceSystem interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a CoordinateReferenceSystem which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateReferenceSystem geotools(CoordinateReferenceSystem geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateReferenceSystem. This method performs the same choice as geoapi(CoordinateReferenceSystem), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateSystem geoapi(CoordinateSystem geotools)
      Views the given GeoTools object as a GeoAPI CoordinateSystem. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateSystem interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a CoordinateSystem which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateSystem geotools(CoordinateSystem geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateSystem. This method performs the same choice as geoapi(CoordinateSystem), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CoordinateSystemAxis geoapi(CoordinateSystemAxis geotools)
      Views the given GeoTools object as a GeoAPI CoordinateSystemAxis. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CoordinateSystemAxis interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CoordinateSystemAxis which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CoordinateSystemAxis geotools(CoordinateSystemAxis geoapi)
      Views the given GeoAPI object as a GeoTools CoordinateSystemAxis. This method performs the same choice as geoapi(CoordinateSystemAxis), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static CylindricalCS geoapi(CylindricalCS geotools)
      Views the given GeoTools object as a GeoAPI CylindricalCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI CylindricalCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a CylindricalCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static CylindricalCS geotools(CylindricalCS geoapi)
      Views the given GeoAPI object as a GeoTools CylindricalCS. This method performs the same choice as geoapi(CylindricalCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Datum geoapi(Datum geotools)
      Views the given GeoTools object as a GeoAPI Datum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Datum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Datum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Datum geotools(Datum geoapi)
      Views the given GeoAPI object as a GeoTools Datum. This method performs the same choice as geoapi(Datum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static DatumAuthorityFactory geoapi(DatumAuthorityFactory geotools)
      Views the given GeoTools object as a GeoAPI DatumAuthorityFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI DatumAuthorityFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a DatumAuthorityFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static DatumAuthorityFactory geotools(DatumAuthorityFactory geoapi)
      Views the given GeoAPI object as a GeoTools DatumAuthorityFactory. This method performs the same choice as geoapi(DatumAuthorityFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static DatumFactory geoapi(DatumFactory geotools)
      Views the given GeoTools object as a GeoAPI DatumFactory. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI DatumFactory interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a DatumFactory which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static DatumFactory geotools(DatumFactory geoapi)
      Views the given GeoAPI object as a GeoTools DatumFactory. This method performs the same choice as geoapi(DatumFactory), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static DerivedCRS geoapi(DerivedCRS geotools)
      Views the given GeoTools object as a GeoAPI DerivedCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI DerivedCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a DerivedCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static DerivedCRS geotools(DerivedCRS geoapi)
      Views the given GeoAPI object as a GeoTools DerivedCRS. This method performs the same choice as geoapi(DerivedCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static DirectPosition geoapi(Position geotools)
      Views the given GeoTools object as a GeoAPI DirectPosition. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI DirectPosition interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a DirectPosition which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Position geotools(DirectPosition geoapi)
      Views the given GeoAPI object as a GeoTools DirectPosition. This method performs the same choice as geoapi(DirectPosition), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Element geoapi(Element geotools)
      Views the given GeoTools object as a GeoAPI Element. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Element interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Element which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Element geotools(Element geoapi)
      Views the given GeoAPI object as a GeoTools Element. This method performs the same choice as geoapi(Element), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Ellipsoid geoapi(Ellipsoid geotools)
      Views the given GeoTools object as a GeoAPI Ellipsoid. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Ellipsoid interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Ellipsoid which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Ellipsoid geotools(Ellipsoid geoapi)
      Views the given GeoAPI object as a GeoTools Ellipsoid. This method performs the same choice as geoapi(Ellipsoid), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static EllipsoidalCS geoapi(EllipsoidalCS geotools)
      Views the given GeoTools object as a GeoAPI EllipsoidalCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI EllipsoidalCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a EllipsoidalCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static EllipsoidalCS geotools(EllipsoidalCS geoapi)
      Views the given GeoAPI object as a GeoTools EllipsoidalCS. This method performs the same choice as geoapi(EllipsoidalCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static EngineeringCRS geoapi(EngineeringCRS geotools)
      Views the given GeoTools object as a GeoAPI EngineeringCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI EngineeringCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a EngineeringCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static EngineeringCRS geotools(EngineeringCRS geoapi)
      Views the given GeoAPI object as a GeoTools EngineeringCRS. This method performs the same choice as geoapi(EngineeringCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static EngineeringDatum geoapi(EngineeringDatum geotools)
      Views the given GeoTools object as a GeoAPI EngineeringDatum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI EngineeringDatum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a EngineeringDatum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static EngineeringDatum geotools(EngineeringDatum geoapi)
      Views the given GeoAPI object as a GeoTools EngineeringDatum. This method performs the same choice as geoapi(EngineeringDatum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public EvaluationMethodType geoapi(EvaluationMethodType geotools)
      Returns the given GeoTools code list value as a GeoAPI EvaluationMethodType.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public EvaluationMethodType geotools(EvaluationMethodType geoapi)
      Returns the given GeoAPI code list value as a GeoTools EvaluationMethodType.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Extent geoapi(Extent geotools)
      Views the given GeoTools object as a GeoAPI Extent. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Extent interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Extent which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Extent geotools(Extent geoapi)
      Views the given GeoAPI object as a GeoTools Extent. This method performs the same choice as geoapi(Extent), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeneralDerivedCRS geoapi(GeneralDerivedCRS geotools)
      Views the given GeoTools object as a GeoAPI GeneralDerivedCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeneralDerivedCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GeneralDerivedCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeneralDerivedCRS geotools(GeneralDerivedCRS geoapi)
      Views the given GeoAPI object as a GeoTools GeneralDerivedCRS. This method performs the same choice as geoapi(GeneralDerivedCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeneralParameterDescriptor geoapi(GeneralParameterDescriptor geotools)
      Views the given GeoTools object as a GeoAPI GeneralParameterDescriptor. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeneralParameterDescriptor interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GeneralParameterDescriptor which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeneralParameterDescriptor geotools(GeneralParameterDescriptor geoapi)
      Views the given GeoAPI object as a GeoTools GeneralParameterDescriptor. This method performs the same choice as geoapi(GeneralParameterDescriptor), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeneralParameterValue geoapi(GeneralParameterValue geotools)
      Views the given GeoTools object as a GeoAPI GeneralParameterValue. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeneralParameterValue interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GeneralParameterValue which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeneralParameterValue geotools(GeneralParameterValue geoapi)
      Views the given GeoAPI object as a GeoTools GeneralParameterValue. This method performs the same choice as geoapi(GeneralParameterValue), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GenericName geoapi(GenericName geotools)
      Views the given GeoTools object as a GeoAPI GenericName. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GenericName interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GenericName which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GenericName geotools(GenericName geoapi)
      Views the given GeoAPI object as a GeoTools GenericName. This method performs the same choice as geoapi(GenericName), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeocentricCRS geoapi(GeocentricCRS geotools)
      Views the given GeoTools object as a GeoAPI GeocentricCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeocentricCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a GeocentricCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeocentricCRS geotools(GeocentricCRS geoapi)
      Views the given GeoAPI object as a GeoTools GeocentricCRS. This method performs the same choice as geoapi(GeocentricCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeodeticCRS geoapi(GeodeticCRS geotools)
      Views the given GeoTools object as a GeoAPI GeodeticCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeodeticCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GeodeticCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeodeticCRS geotools(GeodeticCRS geoapi)
      Views the given GeoAPI object as a GeoTools GeodeticCRS. This method performs the same choice as geoapi(GeodeticCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeodeticDatum geoapi(GeodeticDatum geotools)
      Views the given GeoTools object as a GeoAPI GeodeticDatum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeodeticDatum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a GeodeticDatum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeodeticDatum geotools(GeodeticDatum geoapi)
      Views the given GeoAPI object as a GeoTools GeodeticDatum. This method performs the same choice as geoapi(GeodeticDatum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeographicBoundingBox geoapi(GeographicBoundingBox geotools)
      Views the given GeoTools object as a GeoAPI GeographicBoundingBox. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeographicBoundingBox interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a GeographicBoundingBox which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeographicBoundingBox geotools(GeographicBoundingBox geoapi)
      Views the given GeoAPI object as a GeoTools GeographicBoundingBox. This method performs the same choice as geoapi(GeographicBoundingBox), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeographicCRS geoapi(GeographicCRS geotools)
      Views the given GeoTools object as a GeoAPI GeographicCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeographicCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a GeographicCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeographicCRS geotools(GeographicCRS geoapi)
      Views the given GeoAPI object as a GeoTools GeographicCRS. This method performs the same choice as geoapi(GeographicCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static GeographicExtent geoapi(GeographicExtent geotools)
      Views the given GeoTools object as a GeoAPI GeographicExtent. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI GeographicExtent interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a GeographicExtent which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static GeographicExtent geotools(GeographicExtent geoapi)
      Views the given GeoAPI object as a GeoTools GeographicExtent. This method performs the same choice as geoapi(GeographicExtent), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static IdentifiedObject geoapi(IdentifiedObject geotools)
      Views the given GeoTools object as a GeoAPI IdentifiedObject. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI IdentifiedObject interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a IdentifiedObject which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static IdentifiedObject geotools(IdentifiedObject geoapi)
      Views the given GeoAPI object as a GeoTools IdentifiedObject. This method performs the same choice as geoapi(IdentifiedObject), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Identifier geoapi(Identifier geotools)
      Views the given GeoTools object as a GeoAPI Identifier. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Identifier interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Identifier which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Identifier geotools(Identifier geoapi)
      Views the given GeoAPI object as a GeoTools Identifier. This method performs the same choice as geoapi(Identifier), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ImageCRS geoapi(ImageCRS geotools)
      Views the given GeoTools object as a GeoAPI ImageCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ImageCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ImageCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ImageCRS geotools(ImageCRS geoapi)
      Views the given GeoAPI object as a GeoTools ImageCRS. This method performs the same choice as geoapi(ImageCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ImageDatum geoapi(ImageDatum geotools)
      Views the given GeoTools object as a GeoAPI ImageDatum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ImageDatum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ImageDatum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ImageDatum geotools(ImageDatum geoapi)
      Views the given GeoAPI object as a GeoTools ImageDatum. This method performs the same choice as geoapi(ImageDatum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static InternationalString geoapi(InternationalString geotools)
      Views the given GeoTools object as a GeoAPI InternationalString. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI InternationalString interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a InternationalString which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static InternationalString geotools(InternationalString geoapi)
      Views the given GeoAPI object as a GeoTools InternationalString. This method performs the same choice as geoapi(InternationalString), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static LinearCS geoapi(LinearCS geotools)
      Views the given GeoTools object as a GeoAPI LinearCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI LinearCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a LinearCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static LinearCS geotools(LinearCS geoapi)
      Views the given GeoAPI object as a GeoTools LinearCS. This method performs the same choice as geoapi(LinearCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static LocalName geoapi(LocalName geotools)
      Views the given GeoTools object as a GeoAPI LocalName. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI LocalName interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a LocalName which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static LocalName geotools(LocalName geoapi)
      Views the given GeoAPI object as a GeoTools LocalName. This method performs the same choice as geoapi(LocalName), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static MathTransform geoapi(MathTransform geotools)
      Views the given GeoTools object as a GeoAPI MathTransform. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI MathTransform interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a MathTransform which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static MathTransform geotools(MathTransform geoapi)
      Views the given GeoAPI object as a GeoTools MathTransform. This method performs the same choice as geoapi(MathTransform), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static MathTransform1D geoapi(MathTransform1D geotools)
      Views the given GeoTools object as a GeoAPI MathTransform1D. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI MathTransform1D interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a MathTransform1D which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static MathTransform1D geotools(MathTransform1D geoapi)
      Views the given GeoAPI object as a GeoTools MathTransform1D. This method performs the same choice as geoapi(MathTransform1D), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static MathTransform2D geoapi(MathTransform2D geotools)
      Views the given GeoTools object as a GeoAPI MathTransform2D. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI MathTransform2D interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a MathTransform2D which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static MathTransform2D geotools(MathTransform2D geoapi)
      Views the given GeoAPI object as a GeoTools MathTransform2D. This method performs the same choice as geoapi(MathTransform2D), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Matrix geoapi(Matrix geotools)
      Views the given GeoTools object as a GeoAPI Matrix. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Matrix interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Matrix which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Matrix geotools(Matrix geoapi)
      Views the given GeoAPI object as a GeoTools Matrix. This method performs the same choice as geoapi(Matrix), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static MemberName geoapi(MemberName geotools)
      Views the given GeoTools object as a GeoAPI MemberName. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI MemberName interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a MemberName which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static MemberName geotools(MemberName geoapi)
      Views the given GeoAPI object as a GeoTools MemberName. This method performs the same choice as geoapi(MemberName), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static NameSpace geoapi(NameSpace geotools)
      Views the given GeoTools object as a GeoAPI NameSpace. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI NameSpace interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a NameSpace which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static NameSpace geotools(NameSpace geoapi)
      Views the given GeoAPI object as a GeoTools NameSpace. This method performs the same choice as geoapi(NameSpace), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public OnLineFunction geoapi(OnLineFunction geotools)
      Returns the given GeoTools code list value as a GeoAPI OnLineFunction.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public OnLineFunction geotools(OnLineFunction geoapi)
      Returns the given GeoAPI code list value as a GeoTools OnLineFunction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static OnlineResource geoapi(OnLineResource geotools)
      Views the given GeoTools object as a GeoAPI OnlineResource. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI OnlineResource interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a OnlineResource which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static OnLineResource geotools(OnlineResource geoapi)
      Views the given GeoAPI object as a GeoTools OnlineResource. This method performs the same choice as geoapi(OnlineResource), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static OperationMethod geoapi(OperationMethod geotools)
      Views the given GeoTools object as a GeoAPI OperationMethod. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI OperationMethod interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a OperationMethod which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static OperationMethod geotools(OperationMethod geoapi)
      Views the given GeoAPI object as a GeoTools OperationMethod. This method performs the same choice as geoapi(OperationMethod), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static PeriodDuration geoapi(PeriodDuration geotools)
      Views the given GeoTools object as a GeoAPI PeriodDuration. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI PeriodDuration interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a PeriodDuration which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static PeriodDuration geotools(PeriodDuration geoapi)
      Views the given GeoAPI object as a GeoTools PeriodDuration. This method performs the same choice as geoapi(PeriodDuration), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public PixelInCell geoapi(PixelInCell geotools)
      Returns the given GeoTools code list value as a GeoAPI PixelInCell.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public PixelInCell geotools(PixelInCell geoapi)
      Returns the given GeoAPI code list value as a GeoTools PixelInCell.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static PolarCS geoapi(PolarCS geotools)
      Views the given GeoTools object as a GeoAPI PolarCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI PolarCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a PolarCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static PolarCS geotools(PolarCS geoapi)
      Views the given GeoAPI object as a GeoTools PolarCS. This method performs the same choice as geoapi(PolarCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static PositionalAccuracy geoapi(PositionalAccuracy geotools)
      Views the given GeoTools object as a GeoAPI PositionalAccuracy. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI PositionalAccuracy interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a PositionalAccuracy which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static PositionalAccuracy geotools(PositionalAccuracy geoapi)
      Views the given GeoAPI object as a GeoTools PositionalAccuracy. This method performs the same choice as geoapi(PositionalAccuracy), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public PresentationForm geoapi(PresentationForm geotools)
      Returns the given GeoTools code list value as a GeoAPI PresentationForm.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public PresentationForm geotools(PresentationForm geoapi)
      Returns the given GeoAPI code list value as a GeoTools PresentationForm.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static PrimeMeridian geoapi(PrimeMeridian geotools)
      Views the given GeoTools object as a GeoAPI PrimeMeridian. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI PrimeMeridian interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a PrimeMeridian which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static PrimeMeridian geotools(PrimeMeridian geoapi)
      Views the given GeoAPI object as a GeoTools PrimeMeridian. This method performs the same choice as geoapi(PrimeMeridian), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ProjectedCRS geoapi(ProjectedCRS geotools)
      Views the given GeoTools object as a GeoAPI ProjectedCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ProjectedCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ProjectedCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ProjectedCRS geotools(ProjectedCRS geoapi)
      Views the given GeoAPI object as a GeoTools ProjectedCRS. This method performs the same choice as geoapi(ProjectedCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Projection geoapi(Projection geotools)
      Views the given GeoTools object as a GeoAPI Projection. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Projection interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Projection which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Projection geotools(Projection geoapi)
      Views the given GeoAPI object as a GeoTools Projection. This method performs the same choice as geoapi(Projection), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static QuantitativeResult geoapi(QuantitativeResult geotools)
      Views the given GeoTools object as a GeoAPI QuantitativeResult. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI QuantitativeResult interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a QuantitativeResult which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static QuantitativeResult geotools(QuantitativeResult geoapi)
      Views the given GeoAPI object as a GeoTools QuantitativeResult. This method performs the same choice as geoapi(QuantitativeResult), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public RangeMeaning geoapi(RangeMeaning geotools)
      Returns the given GeoTools code list value as a GeoAPI RangeMeaning.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public RangeMeaning geotools(RangeMeaning geoapi)
      Returns the given GeoAPI code list value as a GeoTools RangeMeaning.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Record geoapi(Record geotools)
      Views the given GeoTools object as a GeoAPI Record. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Record interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Record which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Record geotools(Record geoapi)
      Views the given GeoAPI object as a GeoTools Record. This method performs the same choice as geoapi(Record), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static RecordSchema geoapi(RecordSchema geotools)
      Views the given GeoTools object as a GeoAPI RecordSchema. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI RecordSchema interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a RecordSchema which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static RecordSchema geotools(RecordSchema geoapi)
      Views the given GeoAPI object as a GeoTools RecordSchema. This method performs the same choice as geoapi(RecordSchema), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static RecordType geoapi(RecordType geotools)
      Views the given GeoTools object as a GeoAPI RecordType. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI RecordType interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a RecordType which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static RecordType geotools(RecordType geoapi)
      Views the given GeoAPI object as a GeoTools RecordType. This method performs the same choice as geoapi(RecordType), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ReferenceIdentifier geoapi(ReferenceIdentifier geotools)
      Views the given GeoTools object as a GeoAPI ReferenceIdentifier. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ReferenceIdentifier interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ReferenceIdentifier which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ReferenceIdentifier geotools(ReferenceIdentifier geoapi)
      Views the given GeoAPI object as a GeoTools ReferenceIdentifier. This method performs the same choice as geoapi(ReferenceIdentifier), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ReferenceSystem geoapi(ReferenceSystem geotools)
      Views the given GeoTools object as a GeoAPI ReferenceSystem. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ReferenceSystem interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a ReferenceSystem which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ReferenceSystem geotools(ReferenceSystem geoapi)
      Views the given GeoAPI object as a GeoTools ReferenceSystem. This method performs the same choice as geoapi(ReferenceSystem), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ResponsibleParty geoapi(ResponsibleParty geotools)
      Views the given GeoTools object as a GeoAPI ResponsibleParty. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ResponsibleParty interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ResponsibleParty which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ResponsibleParty geotools(ResponsibleParty geoapi)
      Views the given GeoAPI object as a GeoTools ResponsibleParty. This method performs the same choice as geoapi(ResponsibleParty), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Result geoapi(Result geotools)
      Views the given GeoTools object as a GeoAPI Result. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Result interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a Result which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Result geotools(Result geoapi)
      Views the given GeoAPI object as a GeoTools Result. This method performs the same choice as geoapi(Result), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public Role geoapi(Role geotools)
      Returns the given GeoTools code list value as a GeoAPI Role.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public Role geotools(Role geoapi)
      Returns the given GeoAPI code list value as a GeoTools Role.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static ScopedName geoapi(ScopedName geotools)
      Views the given GeoTools object as a GeoAPI ScopedName. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI ScopedName interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a ScopedName which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static ScopedName geotools(ScopedName geoapi)
      Views the given GeoAPI object as a GeoTools ScopedName. This method performs the same choice as geoapi(ScopedName), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static SingleCRS geoapi(SingleCRS geotools)
      Views the given GeoTools object as a GeoAPI SingleCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI SingleCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a SingleCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static SingleCRS geotools(SingleCRS geoapi)
      Views the given GeoAPI object as a GeoTools SingleCRS. This method performs the same choice as geoapi(SingleCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static SingleOperation geoapi(SingleOperation geotools)
      Views the given GeoTools object as a GeoAPI SingleOperation. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI SingleOperation interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. If the given object implements a more specific GeoTools interface, behaves as if impl was cast to the most specific supported type before to invoke wrap(…).
      5. Otherwise, wraps impl in a SingleOperation which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static SingleOperation geotools(SingleOperation geoapi)
      Views the given GeoAPI object as a GeoTools SingleOperation. This method performs the same choice as geoapi(SingleOperation), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static SphericalCS geoapi(SphericalCS geotools)
      Views the given GeoTools object as a GeoAPI SphericalCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI SphericalCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a SphericalCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static SphericalCS geotools(SphericalCS geoapi)
      Views the given GeoAPI object as a GeoTools SphericalCS. This method performs the same choice as geoapi(SphericalCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Telephone geoapi(Telephone geotools)
      Views the given GeoTools object as a GeoAPI Telephone. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Telephone interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Telephone which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Telephone geotools(Telephone geoapi)
      Views the given GeoAPI object as a GeoTools Telephone. This method performs the same choice as geoapi(Telephone), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TemporalCRS geoapi(TemporalCRS geotools)
      Views the given GeoTools object as a GeoAPI TemporalCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TemporalCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TemporalCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TemporalCRS geotools(TemporalCRS geoapi)
      Views the given GeoAPI object as a GeoTools TemporalCRS. This method performs the same choice as geoapi(TemporalCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TemporalDatum geoapi(TemporalDatum geotools)
      Views the given GeoTools object as a GeoAPI TemporalDatum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TemporalDatum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TemporalDatum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TemporalDatum geotools(TemporalDatum geoapi)
      Views the given GeoAPI object as a GeoTools TemporalDatum. This method performs the same choice as geoapi(TemporalDatum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TemporalExtent geoapi(TemporalExtent geotools)
      Views the given GeoTools object as a GeoAPI TemporalExtent. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TemporalExtent interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TemporalExtent which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TemporalExtent geotools(TemporalExtent geoapi)
      Views the given GeoAPI object as a GeoTools TemporalExtent. This method performs the same choice as geoapi(TemporalExtent), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TemporalPrimitive geoapi(TemporalPrimitive geotools)
      Views the given GeoTools object as a GeoAPI TemporalPrimitive. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TemporalPrimitive interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TemporalPrimitive which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TemporalPrimitive geotools(TemporalPrimitive geoapi)
      Views the given GeoAPI object as a GeoTools TemporalPrimitive. This method performs the same choice as geoapi(TemporalPrimitive), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TimeCS geoapi(TimeCS geotools)
      Views the given GeoTools object as a GeoAPI TimeCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TimeCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TimeCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TimeCS geotools(TimeCS geoapi)
      Views the given GeoAPI object as a GeoTools TimeCS. This method performs the same choice as geoapi(TimeCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static Transformation geoapi(Transformation geotools)
      Views the given GeoTools object as a GeoAPI Transformation. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI Transformation interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a Transformation which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static Transformation geotools(Transformation geoapi)
      Views the given GeoAPI object as a GeoTools Transformation. This method performs the same choice as geoapi(Transformation), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static TypeName geoapi(TypeName geotools)
      Views the given GeoTools object as a GeoAPI TypeName. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI TypeName interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a TypeName which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static TypeName geotools(TypeName geoapi)
      Views the given GeoAPI object as a GeoTools TypeName. This method performs the same choice as geoapi(TypeName), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static UserDefinedCS geoapi(UserDefinedCS geotools)
      Views the given GeoTools object as a GeoAPI UserDefinedCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI UserDefinedCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a UserDefinedCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static UserDefinedCS geotools(UserDefinedCS geoapi)
      Views the given GeoAPI object as a GeoTools UserDefinedCS. This method performs the same choice as geoapi(UserDefinedCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static VerticalCRS geoapi(VerticalCRS geotools)
      Views the given GeoTools object as a GeoAPI VerticalCRS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI VerticalCRS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a VerticalCRS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static VerticalCRS geotools(VerticalCRS geoapi)
      Views the given GeoAPI object as a GeoTools VerticalCRS. This method performs the same choice as geoapi(VerticalCRS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static VerticalCS geoapi(VerticalCS geotools)
      Views the given GeoTools object as a GeoAPI VerticalCS. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI VerticalCS interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a VerticalCS which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static VerticalCS geotools(VerticalCS geoapi)
      Views the given GeoAPI object as a GeoTools VerticalCS. This method performs the same choice as geoapi(VerticalCS), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static VerticalDatum geoapi(VerticalDatum geotools)
      Views the given GeoTools object as a GeoAPI VerticalDatum. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI VerticalDatum interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a VerticalDatum which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static VerticalDatum geotools(VerticalDatum geoapi)
      Views the given GeoAPI object as a GeoTools VerticalDatum. This method performs the same choice as geoapi(VerticalDatum), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public VerticalDatumType geoapi(VerticalDatumType geotools)
      Returns the given GeoTools code list value as a GeoAPI VerticalDatumType.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public VerticalDatumType geotools(VerticalDatumType geoapi)
      Returns the given GeoAPI code list value as a GeoTools VerticalDatumType.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.
    • geoapi

      public static VerticalExtent geoapi(VerticalExtent geotools)
      Views the given GeoTools object as a GeoAPI VerticalExtent. This method returns the first of the following choices which is applicable:
      1. If the given object is null, returns null.
      2. If the given object already implements the GeoAPI VerticalExtent interface, returns that impl instance directly.
      3. If the given object was created by a geotools(…) method, unwraps and returns the backing implementation.
      4. Otherwise, wraps impl in a VerticalExtent which will forward all methods to impl.
      Parameters:
      geotools - the GeoTools object to view as a GeoAPI object, or null.
      Returns:
      the given implementation viewed as a GeoAPI object, or null if the given object was null.
    • geotools

      public static VerticalExtent geotools(VerticalExtent geoapi)
      Views the given GeoAPI object as a GeoTools VerticalExtent. This method performs the same choice as geoapi(VerticalExtent), but in the reverse direction.
      Parameters:
      geoapi - the GeoAPI object to view as a GeoTools object, or null.
      Returns:
      the given implementation viewed as a GeoTools object, or null if the given object was null.