/** * Returns the geographic CRS on which the map projection is applied. * This CRS defines the {@linkplain #getDatum() datum} of this CRS and (at least implicitly) * the {@linkplain org.apache.sis.referencing.operation.DefaultConversion#getSourceCRS() source} * of the {@linkplain #getConversionFromBase() conversion from base}. * * @return the base coordinate reference system, which must be geographic. */ @Override @XmlElement(name = "baseGeodeticCRS", required = true) // Note: older GML version used "baseGeographicCRS". public GeographicCRS getBaseCRS() { final Projection projection = super.getConversionFromBase(); return (projection != null) ? (GeographicCRS) projection.getSourceCRS() : null; }
/** * Returns the geographic CRS on which the map projection is applied. * This CRS defines the {@linkplain #getDatum() datum} of this CRS and (at least implicitly) * the {@linkplain org.apache.sis.referencing.operation.DefaultConversion#getSourceCRS() source} * of the {@linkplain #getConversionFromBase() conversion from base}. * * @return the base coordinate reference system, which must be geographic. */ @Override @XmlElement(name = "baseGeodeticCRS", required = true) // Note: older GML version used "baseGeographicCRS". public GeographicCRS getBaseCRS() { final Projection projection = super.getConversionFromBase(); return (projection != null) ? (GeographicCRS) projection.getSourceCRS() : null; }
/** * Returns a coordinate reference system of the same type than this CRS but with different axes. */ @Override final AbstractCRS createSameType(final Map<String,?> properties, final CoordinateSystem cs) { final Projection conversion = super.getConversionFromBase(); return new DefaultProjectedCRS(properties, (GeographicCRS) conversion.getSourceCRS(), conversion, (CartesianCS) cs); }
/** * Returns a coordinate reference system of the same type than this CRS but with different axes. */ @Override final AbstractCRS createSameType(final Map<String,?> properties, final CoordinateSystem cs) { final Projection conversion = super.getConversionFromBase(); return new DefaultProjectedCRS(properties, (GeographicCRS) conversion.getSourceCRS(), conversion, (CartesianCS) cs); }