Tabnine Logo
SpatialReference.ImportFromEPSG
Code IndexAdd Tabnine to your IDE (free)

How to use
ImportFromEPSG
method
in
org.gdal.osr.SpatialReference

Best Java code snippets using org.gdal.osr.SpatialReference.ImportFromEPSG (Showing top 2 results out of 315)

origin: com.revolsys.open/com.revolsys.open.gdal

public static SpatialReference getSpatialReference(final int srid) {
 final SpatialReference spatialReference = new SpatialReference("");
 spatialReference.ImportFromEPSG(srid);
 return spatialReference;
}
origin: deegree/deegree3

public SpatialReference getCrsAsWkt( int epsgCode ) {
  SpatialReference sr = epsgCodeToSpatialReference.get( epsgCode );
  if ( sr == null ) {
    synchronized ( this ) {
      sr = new SpatialReference();
      int importFromEPSG = sr.ImportFromEPSG( epsgCode );
      if ( importFromEPSG != 0 ) {
        throw new RuntimeException( "Cannot import EPSG:" + epsgCode + " from GDAL." );
      }
      epsgCodeToSpatialReference.put( epsgCode, sr );
    }
  }
  return sr;
}
org.gdal.osrSpatialReferenceImportFromEPSG

Popular methods of SpatialReference

  • <init>
  • ExportToWkt
  • delete
  • ExportToPrettyWkt
  • ExportToProj4
  • Clone
  • ExportToMICoordSys
  • ExportToXML
  • GetAuthorityCode
  • GetTOWGS84
  • ImportFromProj4
  • SetTOWGS84
  • ImportFromProj4,
  • SetTOWGS84,
  • __str__,
  • getCPtr,
  • AutoIdentifyEPSG,
  • GetAttrValue,
  • GetAxisName,
  • GetAxisOrientation,
  • IsGeographic

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Option (scala)
  • Best IntelliJ plugins
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