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

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

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

origin: org.geotools/gt-ogr-jni

@Override
public void SpatialRefRelease(Object spatialRef) {
  ((SpatialReference) spatialRef).delete();
}
origin: com.revolsys.open/com.revolsys.open.gdal

@Override
protected void finalize() {
 delete();
}
origin: org.gdal/gdal

protected void finalize() {
 delete();
}
origin: opengeospatial/geoapi

/**
 * Creates a new coordinate reference system.
 *
 * @param  srs  the GDAL spatial reference system information.
 * @return the Well Known Text (WKT) given by GDAL, or {@code null} if unsupported.
 */
static CRS create(final String wkt) {
  if (wkt != null && !wkt.isEmpty()) {
    final SpatialReference srs = new SpatialReference(wkt);
    try {
      if (srs.IsGeographic() != 0) {
        return new Geographic(wkt, srs);
      } else if (srs.IsProjected() != 0) {
        return new Projected(wkt, srs);
      } else {
        // TODO: we could also check IsGeocentric(), IsLocal() and IsCompound().
      }
    } finally {
      srs.delete();
    }
  }
  return null;
}
org.gdal.osrSpatialReferencedelete

Popular methods of SpatialReference

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

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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