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

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

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

origin: geotools/geotools

/**
 * Returns the first vertical coordinate reference system found in a the given CRS, or {@code
 * null} if there is none.
 *
 * @param crs The coordinate reference system, or {@code null}.
 * @return The vertical CRS, or {@code null} if none.
 * @since 2.4
 */
public static VerticalCRS getVerticalCRS(final CoordinateReferenceSystem crs) {
  if (crs instanceof VerticalCRS) {
    return (VerticalCRS) crs;
  }
  if (crs instanceof CompoundCRS) {
    final CompoundCRS cp = (CompoundCRS) crs;
    for (final CoordinateReferenceSystem c : cp.getCoordinateReferenceSystems()) {
      final VerticalCRS candidate = getVerticalCRS(c);
      if (candidate != null) {
        return candidate;
      }
    }
  }
  return null;
}
origin: georocket/georocket

 /**
  * A simple test
  * @throws Exception if the test fails
  */
 @Test
 public void compoundCrs() throws Exception {
  CoordinateReferenceSystem c = CompoundCRSDecoder.decode("urn:ogc:def:crs,crs:EPSG:6.12:3068,crs:EPSG:6.12:5783");
  assertEquals(CRS.decode("EPSG:3068"), CRS.getHorizontalCRS(c));
  assertEquals(CRS.decode("EPSG:5783"), CRS.getVerticalCRS(c));
 }
}
org.geotools.referencingCRSgetVerticalCRS

Javadoc

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

Popular methods of CRS

  • decode
  • findMathTransform
  • equalsIgnoreMetadata
  • parseWKT
  • lookupEpsgCode
  • transform
    Implementation of #transform(MathTransform,Envelope) with the opportunity to save the projected cent
  • getAxisOrder
  • lookupIdentifier
  • toSRS
  • getHorizontalCRS
  • getEnvelope
  • getCoordinateOperationFactory
  • getEnvelope,
  • getCoordinateOperationFactory,
  • getAuthorityFactory,
  • getMapProjection,
  • getSupportedCodes,
  • getGeographicBoundingBox,
  • reset,
  • getEllipsoid,
  • getProjectedCRS,
  • getTemporalCRS

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer alternatives
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