Tabnine Logo
CRS.getEllipsoid
Code IndexAdd Tabnine to your IDE (free)

How to use
getEllipsoid
method
in
org.geotools.referencing.CRS

Best Java code snippets using org.geotools.referencing.CRS.getEllipsoid (Showing top 5 results out of 315)

origin: geotools/geotools

/**
 * Constructs a new geodetic calculator expecting coordinates in the supplied CRS. The ellipsoid
 * will be inferred from the CRS.
 *
 * @param crs The reference system for the {@link Position} objects.
 * @since 2.2
 */
public GeodeticCalculator(final CoordinateReferenceSystem crs) {
  this(CRS.getEllipsoid(crs), crs);
}
origin: geotools/geotools

/**
 * Returns the first ellipsoid found in a coordinate reference system, or {@code null} if there
 * is none.
 *
 * @param crs The coordinate reference system, or {@code null}.
 * @return The ellipsoid, or {@code null} if none.
 * @since 2.4
 */
public static Ellipsoid getEllipsoid(final CoordinateReferenceSystem crs) {
  final Datum datum = CRSUtilities.getDatum(crs);
  if (datum instanceof GeodeticDatum) {
    return ((GeodeticDatum) datum).getEllipsoid();
  }
  if (crs instanceof CompoundCRS) {
    final CompoundCRS cp = (CompoundCRS) crs;
    for (final CoordinateReferenceSystem c : cp.getCoordinateReferenceSystems()) {
      final Ellipsoid candidate = getEllipsoid(c);
      if (candidate != null) {
        return candidate;
      }
    }
  }
  return null;
}
origin: org.geotools/gt2-coverageio

  public Object getValue(final GridCoverage coverage) {
    return CRS.getEllipsoid(coverage.getCoordinateReferenceSystem());
  }
};
origin: bcdev/beam

private ObservationIterator(Product product, SamplePointer pointer, BinningContext binningContext) {
  this.pointer = pointer;
  this.dataPeriod = binningContext.getDataPeriod();
  Geometry geometryRegion = binningContext.getRegion();
  if (geometryRegion != null) {
    this.region = PreparedGeometryFactory.prepare(binningContext.getRegion());
  } else {
    this.region = null;
  }
  this.product = product;
  this.productHasTime = product.getStartTime() != null || product.getEndTime() != null;
  this.gc = product.getGeoCoding();
  Ellipsoid ellipsoid = CRS.getEllipsoid(gc.getMapCRS());
  earthRadius = ellipsoid != null ? ellipsoid.getSemiMajorAxis() : DefaultEllipsoid.WGS84.getSemiMajorAxis();
  geometryFactory = new GeometryFactory();
  maxDistanceOnEarth = binningContext.getMaxDistanceOnEarth();
}
origin: bcdev/beam

this.imageToMap = imageToMap;
setMapCRS(mapCRS);
org.opengis.referencing.datum.Ellipsoid gtEllipsoid = CRS.getEllipsoid(mapCRS);
String ellipsoidName = gtEllipsoid.getName().getCode();
Ellipsoid ellipsoid = new Ellipsoid(ellipsoidName,
org.geotools.referencingCRSgetEllipsoid

Javadoc

Returns the first ellipsoid found in a coordinate reference system, or null if there is none.

Popular methods of CRS

  • decode
  • findMathTransform
  • equalsIgnoreMetadata
  • parseWKT
  • lookupEpsgCode
  • transform
  • getAxisOrder
  • lookupIdentifier
  • toSRS
  • getHorizontalCRS
  • getEnvelope
  • getCoordinateOperationFactory
  • getEnvelope,
  • getCoordinateOperationFactory,
  • getAuthorityFactory,
  • getMapProjection,
  • getSupportedCodes,
  • getGeographicBoundingBox,
  • reset,
  • getProjectedCRS,
  • getTemporalCRS

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now