EVOLUTION-MANAGER
Edit File: SpatialReference.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_161) on Sun Jan 28 09:53:34 EST 2018 --> <title>SpatialReference (GDAL/OGR 1.8.0 Java bindings API)</title> <meta name="date" content="2018-01-28"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="SpatialReference (GDAL/OGR 1.8.0 Java bindings API)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10,"i92":10,"i93":10,"i94":10,"i95":10,"i96":10,"i97":10,"i98":10,"i99":10,"i100":10,"i101":10,"i102":10,"i103":10,"i104":10,"i105":10,"i106":10,"i107":10,"i108":10,"i109":10,"i110":10,"i111":10,"i112":10,"i113":10,"i114":10,"i115":10,"i116":10,"i117":10,"i118":10,"i119":10,"i120":10,"i121":10,"i122":10,"i123":10,"i124":10,"i125":10,"i126":10,"i127":10,"i128":10,"i129":10,"i130":10,"i131":10,"i132":10,"i133":10,"i134":10,"i135":10,"i136":10,"i137":10,"i138":10,"i139":10,"i140":10,"i141":10,"i142":10,"i143":10,"i144":10,"i145":10,"i146":10,"i147":10,"i148":10,"i149":10,"i150":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/gdal/osr/osrJNI.html" title="class in org.gdal.osr"><span class="typeNameLink">Prev Class</span></a></li> <li>Next Class</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/osr/SpatialReference.html" target="_top">Frames</a></li> <li><a href="SpatialReference.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.gdal.osr</div> <h2 title="Class SpatialReference" class="title">Class SpatialReference</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>org.gdal.osr.SpatialReference</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.lang.Cloneable</dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">SpatialReference</span> extends java.lang.Object implements java.lang.Cloneable</pre> <div class="block">This class respresents a OpenGIS Spatial Reference System, and contains methods for converting between this object organization and well known text (WKT) format. This object is reference counted as one instance of the object is normally shared between many Geometry objects. <p> The SpatialReference class is a binding for the C++ <a href="http://gdal.org/ogr/classOGRSpatialReference.html">OGRSpatialReference</a> class. <p> Normally application code can fetch needed parameter values for this SRS using GetAttrValue(), but in special cases the underlying parse tree (or OGR_SRSNode objects) can be accessed more directly. <p> See <a href="http://www.gdal.org/ogr/osr_tutorial.html">the tutorial</a> for more information on how to use this class.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SpatialReference--">SpatialReference</a></span>()</code> <div class="block">Constructor.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SpatialReference-java.lang.String-">SpatialReference</a></span>(java.lang.String wkt)</code> <div class="block">Constructor.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#Z:Z__str__--">__str__</a></span>()</code> <div class="block">Convert this SRS into a pretty WKT format.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#AutoIdentifyEPSG--">AutoIdentifyEPSG</a></span>()</code> <div class="block">Set EPSG authority info if possible.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#clone--">clone</a></span>()</code> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#Clone--">Clone</a></span>()</code> <div class="block">Make a duplicate of this SpatialReference object.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#CloneGeogCS--">CloneGeogCS</a></span>()</code> <div class="block">Make a duplicate of the GEOGCS node of this SpatialReference object.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#CopyGeogCSFrom-org.gdal.osr.SpatialReference-">CopyGeogCSFrom</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> src_srs)</code> <div class="block">Copy GEOGCS from another OGRSpatialReference.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#delete--">delete</a></span>()</code> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#EPSGTreatsAsLatLong--">EPSGTreatsAsLatLong</a></span>()</code> <div class="block">This method returns TRUE if EPSG feels this geographic coordinate system should be treated as having lat/long coordinate ordering.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#EPSGTreatsAsNorthingEasting--">EPSGTreatsAsNorthingEasting</a></span>()</code> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object obj)</code> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToMICoordSys--">ExportToMICoordSys</a></span>()</code> <div class="block">Export coordinate system in Mapinfo style CoordSys format.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToMICoordSys-java.lang.String:A-">ExportToMICoordSys</a></span>(java.lang.String[] argout)</code> <div class="block">Export coordinate system in Mapinfo style CoordSys format.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPCI-java.lang.String:A-java.lang.String:A-double:A-">ExportToPCI</a></span>(java.lang.String[] proj, java.lang.String[] units, double[] parms)</code> <div class="block">Export coordinate system in PCI projection definition.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt--">ExportToPrettyWkt</a></span>()</code> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-int-">ExportToPrettyWkt</a></span>(int simplify)</code> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-java.lang.String:A-">ExportToPrettyWkt</a></span>(java.lang.String[] argout)</code> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-java.lang.String:A-int-">ExportToPrettyWkt</a></span>(java.lang.String[] argout, int simplify)</code> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToProj4--">ExportToProj4</a></span>()</code> <div class="block">Export coordinate system in PROJ.4 format.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToProj4-java.lang.String:A-">ExportToProj4</a></span>(java.lang.String[] argout)</code> <div class="block">Export coordinate system in PROJ.4 format.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToUSGS-int:A-int:A-double:A-int:A-">ExportToUSGS</a></span>(int[] projsys, int[] zone, double[] parms, int[] datum)</code> <div class="block">Export coordinate system in USGS GCTP projection definition.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToWkt--">ExportToWkt</a></span>()</code> <div class="block">Convert this SRS into WKT format.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToWkt-java.lang.String:A-">ExportToWkt</a></span>(java.lang.String[] argout)</code> <div class="block">Convert this SRS into WKT format.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML--">ExportToXML</a></span>()</code> <div class="block">Export coordinate system in XML format.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String-">ExportToXML</a></span>(java.lang.String dialect)</code> <div class="block">Export coordinate system in XML format.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String:A-">ExportToXML</a></span>(java.lang.String[] argout)</code> <div class="block">Export coordinate system in XML format.</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String:A-java.lang.String-">ExportToXML</a></span>(java.lang.String[] argout, java.lang.String dialect)</code> <div class="block">Export coordinate system in XML format.</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#Fixup--">Fixup</a></span>()</code> <div class="block">Fixup as needed.</div> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#FixupOrdering--">FixupOrdering</a></span>()</code> <div class="block">Correct parameter ordering to match CT Specification.</div> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetAngularUnits--">GetAngularUnits</a></span>()</code> <div class="block">Fetch angular geographic coordinate system units.</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetAttrValue-java.lang.String-">GetAttrValue</a></span>(java.lang.String name)</code> <div class="block">Fetch first attribute of named node.</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetAttrValue-java.lang.String-int-">GetAttrValue</a></span>(java.lang.String name, int child)</code> <div class="block">Fetch indicated attribute of named node.</div> </td> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetAuthorityCode-java.lang.String-">GetAuthorityCode</a></span>(java.lang.String target_key)</code> <div class="block">Get the authority code for a node.</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetAuthorityName-java.lang.String-">GetAuthorityName</a></span>(java.lang.String target_key)</code> <div class="block">Get the authority name for a node.</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetInvFlattening--">GetInvFlattening</a></span>()</code> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetLinearUnits--">GetLinearUnits</a></span>()</code> <div class="block">Fetch linear projection units.</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetLinearUnitsName--">GetLinearUnitsName</a></span>()</code> <div class="block">Fetch linear projection units name.</div> </td> </tr> <tr id="i36" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetNormProjParm-java.lang.String-">GetNormProjParm</a></span>(java.lang.String name)</code> <div class="block">Fetch a normalized projection parameter value.</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetNormProjParm-java.lang.String-double-">GetNormProjParm</a></span>(java.lang.String name, double default_val)</code> <div class="block">Fetch a normalized projection parameter value.</div> </td> </tr> <tr id="i38" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetProjParm-java.lang.String-">GetProjParm</a></span>(java.lang.String name)</code> <div class="block">Fetch a projection parameter value.</div> </td> </tr> <tr id="i39" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetProjParm-java.lang.String-double-">GetProjParm</a></span>(java.lang.String name, double default_val)</code> <div class="block">Fetch a projection parameter value.</div> </td> </tr> <tr id="i40" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetSemiMajor--">GetSemiMajor</a></span>()</code> </td> </tr> <tr id="i41" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetSemiMinor--">GetSemiMinor</a></span>()</code> </td> </tr> <tr id="i42" class="altColor"> <td class="colFirst"><code>double[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetTOWGS84--">GetTOWGS84</a></span>()</code> <div class="block">Fetch TOWGS84 parameters, if available.</div> </td> </tr> <tr id="i43" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetTOWGS84-double:A-">GetTOWGS84</a></span>(double[] argout)</code> <div class="block">Fetch TOWGS84 parameters, if available.</div> </td> </tr> <tr id="i44" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#GetUTMZone--">GetUTMZone</a></span>()</code> <div class="block">Get UTM zone information.</div> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#hashCode--">hashCode</a></span>()</code> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromEPSG-int-">ImportFromEPSG</a></span>(int nCode)</code> <div class="block">Initialize SRS based on EPSG GCS or PCS code.</div> </td> </tr> <tr id="i47" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromEPSGA-int-">ImportFromEPSGA</a></span>(int arg)</code> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromERM-java.lang.String-java.lang.String-java.lang.String-">ImportFromERM</a></span>(java.lang.String proj, java.lang.String datum, java.lang.String units)</code> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromESRI-java.util.Vector-">ImportFromESRI</a></span>(java.util.Vector ppszInput)</code> <div class="block">Import coordinate system from ESRI .prj format(s).</div> </td> </tr> <tr id="i50" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromMICoordSys-java.lang.String-">ImportFromMICoordSys</a></span>(java.lang.String coord_sys)</code> <div class="block">Import Mapinfo style CoordSys definition.</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromOzi-java.lang.String-java.lang.String-java.lang.String-">ImportFromOzi</a></span>(java.lang.String datum, java.lang.String proj, java.lang.String projParms)</code> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromPCI-java.lang.String-">ImportFromPCI</a></span>(java.lang.String proj)</code> <div class="block">Import coordinate system from PCI projection definition.</div> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromPCI-java.lang.String-java.lang.String-">ImportFromPCI</a></span>(java.lang.String proj, java.lang.String units)</code> <div class="block">Import coordinate system from PCI projection definition.</div> </td> </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromPCI-java.lang.String-java.lang.String-double:A-">ImportFromPCI</a></span>(java.lang.String proj, java.lang.String units, double[] prjParams)</code> <div class="block">Import coordinate system from PCI projection definition.</div> </td> </tr> <tr id="i55" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromProj4-java.lang.String-">ImportFromProj4</a></span>(java.lang.String proj4)</code> <div class="block">Import PROJ.4 coordinate string.</div> </td> </tr> <tr id="i56" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUrl-java.lang.String-">ImportFromUrl</a></span>(java.lang.String url)</code> <div class="block">Set spatial reference from a URL.</div> </td> </tr> <tr id="i57" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-">ImportFromUSGS</a></span>(int iProjSys)</code> <div class="block">Import coordinate system from USGS projection definition.</div> </td> </tr> <tr id="i58" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-">ImportFromUSGS</a></span>(int iProjSys, int iZone)</code> <div class="block">Import coordinate system from USGS projection definition.</div> </td> </tr> <tr id="i59" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-double:A-">ImportFromUSGS</a></span>(int iProjSys, int iZone, double[] padfPrjParams)</code> <div class="block">Import coordinate system from USGS projection definition.</div> </td> </tr> <tr id="i60" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-double:A-int-">ImportFromUSGS</a></span>(int iProjSys, int iZone, double[] padfPrjParams, int iDatum)</code> <div class="block">Import coordinate system from USGS projection definition.</div> </td> </tr> <tr id="i61" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromWkt-java.lang.String-">ImportFromWkt</a></span>(java.lang.String wkt)</code> <div class="block">Import from WKT string.</div> </td> </tr> <tr id="i62" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromXML-java.lang.String-">ImportFromXML</a></span>(java.lang.String xmlString)</code> <div class="block">Import coordinate system from XML format (GML only currently).</div> </td> </tr> <tr id="i63" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsCompound--">IsCompound</a></span>()</code> <div class="block">Check if coordinate system is compound.</div> </td> </tr> <tr id="i64" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsGeocentric--">IsGeocentric</a></span>()</code> <div class="block">Check if geocentric coordinate system.</div> </td> </tr> <tr id="i65" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsGeographic--">IsGeographic</a></span>()</code> <div class="block">Check if geographic coordinate system.</div> </td> </tr> <tr id="i66" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsLocal--">IsLocal</a></span>()</code> <div class="block">Check if local coordinate system.</div> </td> </tr> <tr id="i67" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsProjected--">IsProjected</a></span>()</code> <div class="block">Check if projected coordinate system.</div> </td> </tr> <tr id="i68" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsSame-org.gdal.osr.SpatialReference-">IsSame</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</code> <div class="block">Do these two spatial references describe the same system ?</div> </td> </tr> <tr id="i69" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsSameGeogCS-org.gdal.osr.SpatialReference-">IsSameGeogCS</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</code> <div class="block">Do the GeogCS'es match?</div> </td> </tr> <tr id="i70" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsSameVertCS-org.gdal.osr.SpatialReference-">IsSameVertCS</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</code> <div class="block">Do the VertCS'es match?</div> </td> </tr> <tr id="i71" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#IsVertical--">IsVertical</a></span>()</code> <div class="block">Check if vertical coordinate system.</div> </td> </tr> <tr id="i72" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#MorphFromESRI--">MorphFromESRI</a></span>()</code> <div class="block">Convert in place from ESRI WKT format.</div> </td> </tr> <tr id="i73" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#MorphToESRI--">MorphToESRI</a></span>()</code> <div class="block">Convert in place to ESRI WKT format.</div> </td> </tr> <tr id="i74" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetACEA-double-double-double-double-double-double-">SetACEA</a></span>(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i75" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetAE-double-double-double-double-">SetAE</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i76" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetAngularUnits-java.lang.String-double-">SetAngularUnits</a></span>(java.lang.String name, double to_radians)</code> <div class="block">Set the angular units for the geographic coordinate system.</div> </td> </tr> <tr id="i77" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetAttrValue-java.lang.String-java.lang.String-">SetAttrValue</a></span>(java.lang.String name, java.lang.String value)</code> <div class="block">Set attribute value in spatial reference.</div> </td> </tr> <tr id="i78" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetAuthority-java.lang.String-java.lang.String-int-">SetAuthority</a></span>(java.lang.String target_key, java.lang.String authority, int code)</code> <div class="block">Set the authority for a node.</div> </td> </tr> <tr id="i79" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetBonne-double-double-double-double-">SetBonne</a></span>(double stdp, double cm, double fe, double fn)</code> </td> </tr> <tr id="i80" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetCEA-double-double-double-double-">SetCEA</a></span>(double stdp1, double cm, double fe, double fn)</code> </td> </tr> <tr id="i81" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetCompoundCS-java.lang.String-org.gdal.osr.SpatialReference-org.gdal.osr.SpatialReference-">SetCompoundCS</a></span>(java.lang.String name, <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> horizcs, <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> vertcs)</code> </td> </tr> <tr id="i82" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetCS-double-double-double-double-">SetCS</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i83" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetEC-double-double-double-double-double-double-">SetEC</a></span>(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i84" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetEckertIV-double-double-double-">SetEckertIV</a></span>(double cm, double fe, double fn)</code> </td> </tr> <tr id="i85" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetEckertVI-double-double-double-">SetEckertVI</a></span>(double cm, double fe, double fn)</code> </td> </tr> <tr id="i86" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetEquirectangular-double-double-double-double-">SetEquirectangular</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i87" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetEquirectangular2-double-double-double-double-double-">SetEquirectangular2</a></span>(double clat, double clong, double pseudostdparallellat, double fe, double fn)</code> </td> </tr> <tr id="i88" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetFromUserInput-java.lang.String-">SetFromUserInput</a></span>(java.lang.String definition)</code> <div class="block">Set spatial reference from various text formats.</div> </td> </tr> <tr id="i89" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGaussSchreiberTMercator-double-double-double-double-double-">SetGaussSchreiberTMercator</a></span>(double clat, double clong, double sc, double fe, double fn)</code> </td> </tr> <tr id="i90" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeocCS--">SetGeocCS</a></span>()</code> <div class="block">Set the user visible GEOCCS name.</div> </td> </tr> <tr id="i91" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeocCS-java.lang.String-">SetGeocCS</a></span>(java.lang.String name)</code> <div class="block">Set the user visible GEOCCS name.</div> </td> </tr> <tr id="i92" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-">SetGeogCS</a></span>(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening)</code> <div class="block">Set geographic coordinate system.</div> </td> </tr> <tr id="i93" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-">SetGeogCS</a></span>(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName)</code> <div class="block">Set geographic coordinate system.</div> </td> </tr> <tr id="i94" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-">SetGeogCS</a></span>(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset)</code> <div class="block">Set geographic coordinate system.</div> </td> </tr> <tr id="i95" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-">SetGeogCS</a></span>(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset, java.lang.String pszAngularUnits)</code> <div class="block">Set geographic coordinate system.</div> </td> </tr> <tr id="i96" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-">SetGeogCS</a></span>(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset, java.lang.String pszAngularUnits, double dfConvertToRadians)</code> <div class="block">Set geographic coordinate system.</div> </td> </tr> <tr id="i97" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGEOS-double-double-double-double-">SetGEOS</a></span>(double cm, double satelliteheight, double fe, double fn)</code> </td> </tr> <tr id="i98" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGH-double-double-double-">SetGH</a></span>(double cm, double fe, double fn)</code> </td> </tr> <tr id="i99" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGnomonic-double-double-double-double-">SetGnomonic</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i100" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetGS-double-double-double-">SetGS</a></span>(double cm, double fe, double fn)</code> </td> </tr> <tr id="i101" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetHOM-double-double-double-double-double-double-double-">SetHOM</a></span>(double clat, double clong, double azimuth, double recttoskew, double scale, double fe, double fn)</code> </td> </tr> <tr id="i102" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetHOM2PNO-double-double-double-double-double-double-double-double-">SetHOM2PNO</a></span>(double clat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double scale, double fe, double fn)</code> </td> </tr> <tr id="i103" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetIGH--">SetIGH</a></span>()</code> </td> </tr> <tr id="i104" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetKrovak-double-double-double-double-double-double-double-">SetKrovak</a></span>(double clat, double clong, double azimuth, double pseudostdparallellat, double scale, double fe, double fn)</code> </td> </tr> <tr id="i105" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLAEA-double-double-double-double-">SetLAEA</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i106" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLCC-double-double-double-double-double-double-">SetLCC</a></span>(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i107" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLCC1SP-double-double-double-double-double-">SetLCC1SP</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i108" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLCCB-double-double-double-double-double-double-">SetLCCB</a></span>(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i109" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLinearUnits-java.lang.String-double-">SetLinearUnits</a></span>(java.lang.String name, double to_meters)</code> <div class="block">Set the linear units for the projection.</div> </td> </tr> <tr id="i110" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLinearUnitsAndUpdateParameters-java.lang.String-double-">SetLinearUnitsAndUpdateParameters</a></span>(java.lang.String name, double to_meters)</code> <div class="block">Set the linear units for the projection.</div> </td> </tr> <tr id="i111" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetLocalCS-java.lang.String-">SetLocalCS</a></span>(java.lang.String name)</code> <div class="block">Set the user visible LOCAL_CS name.</div> </td> </tr> <tr id="i112" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetMC-double-double-double-double-">SetMC</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i113" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetMercator-double-double-double-double-double-">SetMercator</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i114" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetMollweide-double-double-double-">SetMollweide</a></span>(double cm, double fe, double fn)</code> </td> </tr> <tr id="i115" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetNormProjParm-java.lang.String-double-">SetNormProjParm</a></span>(java.lang.String name, double val)</code> <div class="block">Set a projection parameter with a normalized value.</div> </td> </tr> <tr id="i116" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetNZMG-double-double-double-double-">SetNZMG</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i117" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetOrthographic-double-double-double-double-">SetOrthographic</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i118" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetOS-double-double-double-double-double-">SetOS</a></span>(double dfOriginLat, double dfCMeridian, double scale, double fe, double fn)</code> </td> </tr> <tr id="i119" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetPolyconic-double-double-double-double-">SetPolyconic</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i120" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetProjCS--">SetProjCS</a></span>()</code> <div class="block">Set the user visible PROJCS name.</div> </td> </tr> <tr id="i121" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetProjCS-java.lang.String-">SetProjCS</a></span>(java.lang.String name)</code> <div class="block">Set the user visible PROJCS name.</div> </td> </tr> <tr id="i122" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetProjection-java.lang.String-">SetProjection</a></span>(java.lang.String name)</code> <div class="block">Set a projection name.</div> </td> </tr> <tr id="i123" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetProjParm-java.lang.String-double-">SetProjParm</a></span>(java.lang.String name, double val)</code> <div class="block">Set a projection parameter value.</div> </td> </tr> <tr id="i124" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetPS-double-double-double-double-double-">SetPS</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i125" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetRobinson-double-double-double-">SetRobinson</a></span>(double clong, double fe, double fn)</code> </td> </tr> <tr id="i126" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetSinusoidal-double-double-double-">SetSinusoidal</a></span>(double clong, double fe, double fn)</code> </td> </tr> <tr id="i127" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetSOC-double-double-double-double-">SetSOC</a></span>(double latitudeoforigin, double cm, double fe, double fn)</code> </td> </tr> <tr id="i128" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-">SetStatePlane</a></span>(int zone)</code> <div class="block">Set State Plane projection definition.</div> </td> </tr> <tr id="i129" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-">SetStatePlane</a></span>(int zone, int is_nad83)</code> <div class="block">Set State Plane projection definition.</div> </td> </tr> <tr id="i130" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-java.lang.String-">SetStatePlane</a></span>(int zone, int is_nad83, java.lang.String unitsname)</code> <div class="block">Set State Plane projection definition.</div> </td> </tr> <tr id="i131" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-java.lang.String-double-">SetStatePlane</a></span>(int zone, int is_nad83, java.lang.String unitsname, double units)</code> <div class="block">Set State Plane projection definition.</div> </td> </tr> <tr id="i132" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetStereographic-double-double-double-double-double-">SetStereographic</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i133" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTargetLinearUnits-java.lang.String-java.lang.String-double-">SetTargetLinearUnits</a></span>(java.lang.String target, java.lang.String name, double to_meters)</code> <div class="block">Set the linear units for the projection.</div> </td> </tr> <tr id="i134" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTM-double-double-double-double-double-">SetTM</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i135" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTMG-double-double-double-double-">SetTMG</a></span>(double clat, double clong, double fe, double fn)</code> </td> </tr> <tr id="i136" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTMSO-double-double-double-double-double-">SetTMSO</a></span>(double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i137" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTMVariant-java.lang.String-double-double-double-double-double-">SetTMVariant</a></span>(java.lang.String pszVariantName, double clat, double clong, double scale, double fe, double fn)</code> </td> </tr> <tr id="i138" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTOWGS84-double-double-double-">SetTOWGS84</a></span>(double p1, double p2, double p3)</code> <div class="block">Set the Bursa-Wolf conversion to WGS84.</div> </td> </tr> <tr id="i139" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetTOWGS84-double-double-double-double-double-double-double-">SetTOWGS84</a></span>(double dfDX, double dfDY, double dfDZ, double dfEX, double dfEY, double dfEZ, double dfPPM)</code> <div class="block">Set the Bursa-Wolf conversion to WGS84.</div> </td> </tr> <tr id="i140" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetUTM-int-">SetUTM</a></span>(int zone)</code> <div class="block">Set UTM projection definition.</div> </td> </tr> <tr id="i141" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetUTM-int-int-">SetUTM</a></span>(int zone, int north)</code> <div class="block">Set UTM projection definition.</div> </td> </tr> <tr id="i142" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetVDG-double-double-double-">SetVDG</a></span>(double clong, double fe, double fn)</code> </td> </tr> <tr id="i143" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetVertCS--">SetVertCS</a></span>()</code> </td> </tr> <tr id="i144" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetVertCS-java.lang.String-">SetVertCS</a></span>(java.lang.String VertCSName)</code> </td> </tr> <tr id="i145" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetVertCS-java.lang.String-java.lang.String-">SetVertCS</a></span>(java.lang.String VertCSName, java.lang.String VertDatumName)</code> </td> </tr> <tr id="i146" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetVertCS-java.lang.String-java.lang.String-int-">SetVertCS</a></span>(java.lang.String VertCSName, java.lang.String VertDatumName, int VertDatumType)</code> <div class="block">Set the user visible VERT_CS name.</div> </td> </tr> <tr id="i147" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#SetWellKnownGeogCS-java.lang.String-">SetWellKnownGeogCS</a></span>(java.lang.String name)</code> <div class="block">Set a GeogCS based on well known name.</div> </td> </tr> <tr id="i148" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#StripCTParms--">StripCTParms</a></span>()</code> <div class="block">Strip OGC CT Parameters.</div> </td> </tr> <tr id="i149" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#toString--">toString</a></span>()</code> <div class="block">Convert this SRS into a pretty WKT format.</div> </td> </tr> <tr id="i150" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/osr/SpatialReference.html#Validate--">Validate</a></span>()</code> <div class="block">Validate SRS tokens.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>getClass, notify, notifyAll, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="SpatialReference-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SpatialReference</h4> <pre>public SpatialReference(java.lang.String wkt)</pre> <div class="block">Constructor. <p> This constructor takes an optional string argument which if passed should be a WKT representation of an SRS. Passing this is equivelent to not passing it, and then calling importFromWkt() with the WKT string. <p> Note that newly created objects are given a reference count of one.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wkt</code> - well known text definition to which the object should be initialized, or null (the default).</dd> </dl> </li> </ul> <a name="SpatialReference--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>SpatialReference</h4> <pre>public SpatialReference()</pre> <div class="block">Constructor. <p> Same as below with wkt == null.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SpatialReference-java.lang.String-"><code>SpatialReference(String wkt)</code></a></dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="delete--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>delete</h4> <pre>public void delete()</pre> </li> </ul> <a name="equals-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public boolean equals(java.lang.Object obj)</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>equals</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="clone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clone</h4> <pre>public java.lang.Object clone()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>clone</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="hashCode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> <pre>public int hashCode()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>hashCode</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="toString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public java.lang.String toString()</pre> <div class="block">Convert this SRS into a pretty WKT format.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>toString</code> in class <code>java.lang.Object</code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the srs</dd> </dl> </li> </ul> <a name="ExportToWkt--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToWkt</h4> <pre>public java.lang.String ExportToWkt()</pre> <div class="block">Convert this SRS into WKT format. <p> Same as below but the string is returned as a return value</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToWkt-java.lang.String:A-"><code>ExportToWkt(String[] argout)</code></a></dd> </dl> </li> </ul> <a name="ExportToPrettyWkt-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToPrettyWkt</h4> <pre>public java.lang.String ExportToPrettyWkt(int simplify)</pre> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person. <p> Same as below but the string is returned as a return value</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-java.lang.String:A-int-"><code>ExportToPrettyWkt(String[] argout, int simplify)</code></a></dd> </dl> </li> </ul> <a name="ExportToPrettyWkt--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToPrettyWkt</h4> <pre>public java.lang.String ExportToPrettyWkt()</pre> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person. <p> Same as below with simplify == 0 and the string is returned as a return value</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-java.lang.String:A-int-"><code>ExportToPrettyWkt(String[] argout, int simplify)</code></a></dd> </dl> </li> </ul> <a name="ExportToProj4--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToProj4</h4> <pre>public java.lang.String ExportToProj4()</pre> <div class="block">Export coordinate system in PROJ.4 format. <p> Same as below but the string is returned as a return value</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToProj4-java.lang.String:A-"><code>ExportToProj4(String[] argout)</code></a></dd> </dl> </li> </ul> <a name="ExportToXML-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToXML</h4> <pre>public java.lang.String ExportToXML(java.lang.String dialect)</pre> <div class="block">Export coordinate system in XML format.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String:A-java.lang.String-"><code>ExportToXML(String[] argout, String dialect)</code></a></dd> </dl> </li> </ul> <a name="ExportToXML--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToXML</h4> <pre>public java.lang.String ExportToXML()</pre> <div class="block">Export coordinate system in XML format.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String:A-java.lang.String-"><code>ExportToXML(String[] argout, String dialect)</code></a></dd> </dl> </li> </ul> <a name="ExportToMICoordSys--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToMICoordSys</h4> <pre>public java.lang.String ExportToMICoordSys()</pre> <div class="block">Export coordinate system in Mapinfo style CoordSys format.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the coordinate system in Mapinfo style CoordSys format.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetTOWGS84--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetTOWGS84</h4> <pre>public double[] GetTOWGS84()</pre> <div class="block">Fetch TOWGS84 parameters, if available.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>an array of doubles into which up to 7 coefficients are placed.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="SetTOWGS84-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTOWGS84</h4> <pre>public int SetTOWGS84(double p1, double p2, double p3)</pre> <div class="block">Set the Bursa-Wolf conversion to WGS84. <p> Same as below with dfEX == dfEY == dfEZ == dfPPM == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetTOWGS84-double-double-double-double-double-double-double-"><code>SetTOWGS84(double dfDX, double dfDY, double dfDZ, double dfEX, double dfEY, double dfEZ, double dfPPM)</code></a></dd> </dl> </li> </ul> <a name="Z:Z__str__--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>__str__</h4> <pre>public java.lang.String __str__()</pre> <div class="block">Convert this SRS into a pretty WKT format.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the srs</dd> </dl> </li> </ul> <a name="IsSame-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsSame</h4> <pre>public int IsSame(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</pre> <div class="block">Do these two spatial references describe the same system ?</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the SRS being compared to.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if equivalent or 0 otherwise.</dd> </dl> </li> </ul> <a name="IsSameGeogCS-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsSameGeogCS</h4> <pre>public int IsSameGeogCS(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</pre> <div class="block">Do the GeogCS'es match?</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the SRS being compared against.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if they are the same or 0 otherwise.</dd> </dl> </li> </ul> <a name="IsSameVertCS-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsSameVertCS</h4> <pre>public int IsSameVertCS(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> other)</pre> <div class="block">Do the VertCS'es match?</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the SRS being compared against.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if they are the same or 0 otherwise.</dd> </dl> </li> </ul> <a name="IsGeographic--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsGeographic</h4> <pre>public int IsGeographic()</pre> <div class="block">Check if geographic coordinate system.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this spatial reference is geographic ... that is the root is a GEOGCS node.</dd> </dl> </li> </ul> <a name="IsProjected--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsProjected</h4> <pre>public int IsProjected()</pre> <div class="block">Check if projected coordinate system.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this contains a PROJCS node indicating a it is a projected coordinate system.</dd> </dl> </li> </ul> <a name="IsCompound--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsCompound</h4> <pre>public int IsCompound()</pre> <div class="block">Check if coordinate system is compound.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this is rooted with a COMPD_CS node.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>GDAL 1.9.0</dd> </dl> </li> </ul> <a name="IsGeocentric--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsGeocentric</h4> <pre>public int IsGeocentric()</pre> <div class="block">Check if geocentric coordinate system.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this contains a GEOCCS node indicating a it is a geocentric coordinate system.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>GDAL 1.9.0</dd> </dl> </li> </ul> <a name="IsLocal--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsLocal</h4> <pre>public int IsLocal()</pre> <div class="block">Check if local coordinate system.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this spatial reference is local ... that is the root is a LOCAL_CS node.</dd> </dl> </li> </ul> <a name="IsVertical--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsVertical</h4> <pre>public int IsVertical()</pre> <div class="block">Check if vertical coordinate system.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>1 if this contains a VERT_CS node indicating a it is a vertical coordinate system.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="EPSGTreatsAsLatLong--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>EPSGTreatsAsLatLong</h4> <pre>public int EPSGTreatsAsLatLong()</pre> <div class="block">This method returns TRUE if EPSG feels this geographic coordinate system should be treated as having lat/long coordinate ordering. <p> Currently this returns TRUE for all geographic coordinate systems with an EPSG code set, and AXIS values set defining it as lat, long. Note that coordinate systems with an EPSG code and no axis settings will be assumed to not be lat/long. <p> FALSE will be returned for all coordinate systems that are not geographic, or that do not have an EPSG code set.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>TRUE or FALSE.</dd> </dl> </li> </ul> <a name="EPSGTreatsAsNorthingEasting--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>EPSGTreatsAsNorthingEasting</h4> <pre>public int EPSGTreatsAsNorthingEasting()</pre> </li> </ul> <a name="SetAuthority-java.lang.String-java.lang.String-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetAuthority</h4> <pre>public int SetAuthority(java.lang.String target_key, java.lang.String authority, int code)</pre> <div class="block">Set the authority for a node.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>target_key</code> - the partial or complete path to the node to set an authority on. ie. "PROJCS", "GEOGCS" or "GEOGCS|UNIT".</dd> <dd><code>authority</code> - authority name, such as "EPSG".</dd> <dd><code>code</code> - code for value with this authority.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetAttrValue-java.lang.String-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetAttrValue</h4> <pre>public java.lang.String GetAttrValue(java.lang.String name, int child)</pre> <div class="block">Fetch indicated attribute of named node. <p> This method uses GetAttrNode() to find the named node, and then extracts the value of the indicated child. Thus a call to GetAttrValue("UNIT",1) would return the second child of the UNIT node, which is normally the length of the linear unit in meters.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the tree node to look for (case insensitive).</dd> <dd><code>child</code> - the child of the node to fetch (zero based).</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the requested value, or null if it fails for any reason.</dd> </dl> </li> </ul> <a name="GetAttrValue-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetAttrValue</h4> <pre>public java.lang.String GetAttrValue(java.lang.String name)</pre> <div class="block">Fetch first attribute of named node. <p> This method uses GetAttrNode() to find the named node, and then extracts the value of the first child.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the tree node to look for (case insensitive).</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the requested value, or null if it fails for any reason.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="SetAttrValue-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetAttrValue</h4> <pre>public int SetAttrValue(java.lang.String name, java.lang.String value)</pre> <div class="block">Set attribute value in spatial reference. <p> Missing intermediate nodes in the path will be created if not already in existance. If the attribute has no children one will be created and assigned the value otherwise the zeroth child will be assigned the value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - full path to attribute to be set. For instance "PROJCS|GEOGCS|UNITS".</dd> <dd><code>value</code> - value to be assigned to node, such as "meter". This may be null if you just want to force creation of the intermediate path.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetAngularUnits-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetAngularUnits</h4> <pre>public int SetAngularUnits(java.lang.String name, double to_radians)</pre> <div class="block">Set the angular units for the geographic coordinate system. <p> This method creates a UNITS subnode with the specified values as a child of the GEOGCS node.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the units name to be used. Some preferred units names can be found in ogr_srs_api.h such as SRS_UA_DEGREE.</dd> <dd><code>to_radians</code> - the value to multiple by an angle in the indicated units to transform to radians. Some standard conversion factors can be found in ogr_srs_api.h.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetAngularUnits--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetAngularUnits</h4> <pre>public double GetAngularUnits()</pre> <div class="block">Fetch angular geographic coordinate system units. <p> If no units are available, a value of "degree" and SRS_UA_DEGREE_CONV will be assumed. This method only checks directly under the GEOGCS node for units.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the value to multiply by angular distances to transform them to radians.</dd> </dl> </li> </ul> <a name="SetTargetLinearUnits-java.lang.String-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTargetLinearUnits</h4> <pre>public int SetTargetLinearUnits(java.lang.String target, java.lang.String name, double to_meters)</pre> <div class="block">Set the linear units for the projection. <p> This method creates a UNIT subnode with the specified values as a child of the target node.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>target</code> - the keyword to set the linear units for. ie. "PROJCS" or "VERT_CS"</dd> <dd><code>name</code> - the units name to be used. Some preferred units names can be found in ogr_srs_api.h such as SRS_UL_METER, SRS_UL_FOOT and SRS_UL_US_FOOT.</dd> <dd><code>to_meters</code> - the value to multiple by a length in the indicated units to transform to meters. Some standard conversion factors can be found in ogr_srs_api.h.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>OGRERR_NONE on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="SetLinearUnits-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLinearUnits</h4> <pre>public int SetLinearUnits(java.lang.String name, double to_meters)</pre> <div class="block">Set the linear units for the projection. <p> This method creates a UNITS subnode with the specified values as a child of the PROJCS or LOCAL_CS node.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the units name to be used. Some preferred units names can be found in ogr_srs_api.h such as SRS_UL_METER, SRS_UL_FOOT and SRS_UL_US_FOOT.</dd> <dd><code>to_meters</code> - the value to multiple by a length in the indicated units to transform to meters. Some standard conversion factors can be found in ogr_srs_api.h.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetLinearUnitsAndUpdateParameters-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLinearUnitsAndUpdateParameters</h4> <pre>public int SetLinearUnitsAndUpdateParameters(java.lang.String name, double to_meters)</pre> <div class="block">Set the linear units for the projection. <p> This method creates a UNITS subnode with the specified values as a child of the PROJCS or LOCAL_CS node. It works the same as the SetLinearUnits() method, but it also updates all existing linear projection parameter values from the old units to the new units.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the units name to be used. Some preferred units names can be found in ogr_srs_api.h such as SRS_UL_METER, SRS_UL_FOOT and SRS_UL_US_FOOT.</dd> <dd><code>to_meters</code> - the value to multiple by a length in the indicated units to transform to meters. Some standard conversion factors can be found in ogr_srs_api.h.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetLinearUnits--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetLinearUnits</h4> <pre>public double GetLinearUnits()</pre> <div class="block">Fetch linear projection units. <p> If no units are available, a value of "Meters" and 1.0 will be assumed. This method only checks directly under the PROJCS or LOCAL_CS node for units.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the value to multiply by linear distances to transform them to meters.</dd> </dl> </li> </ul> <a name="GetLinearUnitsName--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetLinearUnitsName</h4> <pre>public java.lang.String GetLinearUnitsName()</pre> <div class="block">Fetch linear projection units name. <p> If no units are available, a value of "Meters" will be assumed. This method only checks directly under the PROJCS or LOCAL_CS node for units.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the units name</dd> </dl> </li> </ul> <a name="GetAuthorityCode-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetAuthorityCode</h4> <pre>public java.lang.String GetAuthorityCode(java.lang.String target_key)</pre> <div class="block">Get the authority code for a node. <p> This method is used to query an AUTHORITY[] node from within the WKT tree, and fetch the code value. <p> While in theory values may be non-numeric, for the EPSG authority all code values should be integral.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>target_key</code> - the partial or complete path to the node to get an authority from. ie. "PROJCS", "GEOGCS", "GEOGCS|UNIT" or null to search for an authority node on the root element.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>value code from authority node, or null on failure.</dd> </dl> </li> </ul> <a name="GetAuthorityName-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetAuthorityName</h4> <pre>public java.lang.String GetAuthorityName(java.lang.String target_key)</pre> <div class="block">Get the authority name for a node. <p> This method is used to query an AUTHORITY[] node from within the WKT tree, and fetch the authority name value. <p> The most common authority is "EPSG".</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>target_key</code> - the partial or complete path to the node to get an authority from. ie. "PROJCS", "GEOGCS", "GEOGCS|UNIT" or null to search for an authority node on the root element.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>value code from authority node, or null on failure.</dd> </dl> </li> </ul> <a name="SetUTM-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetUTM</h4> <pre>public int SetUTM(int zone, int north)</pre> <div class="block">Set UTM projection definition. <p> This will generate a projection definition with the full set of transverse mercator projection parameters for the given UTM zone. If no PROJCS[] description is set yet, one will be set to look like "UTM Zone %d, {Northern, Southern} Hemisphere".</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>zone</code> - UTM zone.</dd> <dd><code>north</code> - 1 for northern hemisphere, or 0 for southern hemisphere.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetUTM-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetUTM</h4> <pre>public int SetUTM(int zone)</pre> <div class="block">Set UTM projection definition. <p> Same as below with north == 1</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetUTM-int-int-"><code>SetUTM(int zone, int north)</code></a></dd> </dl> </li> </ul> <a name="GetUTMZone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetUTMZone</h4> <pre>public int GetUTMZone()</pre> <div class="block">Get UTM zone information.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the UTM zone. As a positive value for the northern hemisphere and as a negative value for the southern hemisphere.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.8.0</dd> </dl> </li> </ul> <a name="SetStatePlane-int-int-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStatePlane</h4> <pre>public int SetStatePlane(int zone, int is_nad83, java.lang.String unitsname, double units)</pre> <div class="block">Set State Plane projection definition. <p> This will attempt to generate a complete definition of a state plane zone based on generating the entire SRS from the EPSG tables. If the EPSG tables are unavailable, it will produce a stubbed LOCAL_CS definition and return OGRERR_FAILURE.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>zone</code> - State plane zone number, in the USGS numbering scheme (as dinstinct from the Arc/Info and Erdas numbering scheme.</dd> <dd><code>is_nad83</code> - 1 if the NAD83 zone definition should be used or 0 if the NAD27 zone definition should be used.</dd> <dd><code>unitsname</code> - Linear unit name to apply overriding the legal definition for this zone.</dd> <dd><code>units</code> - Linear unit conversion factor to apply overriding the legal definition for this zone.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetStatePlane-int-int-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStatePlane</h4> <pre>public int SetStatePlane(int zone, int is_nad83, java.lang.String unitsname)</pre> <div class="block">Set State Plane projection definition. <p> Same as below with units == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-java.lang.String-double-"><code>SetStatePlane(int zone, int is_nad83, String unitsname, double units)</code></a></dd> </dl> </li> </ul> <a name="SetStatePlane-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStatePlane</h4> <pre>public int SetStatePlane(int zone, int is_nad83)</pre> <div class="block">Set State Plane projection definition. <p> Same as below with unitsname == "" and units == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-java.lang.String-double-"><code>SetStatePlane(int zone, int is_nad83, String unitsname, double units)</code></a></dd> </dl> </li> </ul> <a name="SetStatePlane-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStatePlane</h4> <pre>public int SetStatePlane(int zone)</pre> <div class="block">Set State Plane projection definition. <p> Same as below with is_nad83 == 1, unitsname == "" and units == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetStatePlane-int-int-java.lang.String-double-"><code>SetStatePlane(int zone, int is_nad83, String unitsname, double units)</code></a></dd> </dl> </li> </ul> <a name="AutoIdentifyEPSG--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AutoIdentifyEPSG</h4> <pre>public int AutoIdentifyEPSG()</pre> <div class="block">Set EPSG authority info if possible. <p> This method inspects a WKT definition, and adds EPSG authority nodes where an aspect of the coordinate system can be easily and safely corresponded with an EPSG identifier. In practice, this method will evolve over time. In theory it can add authority nodes for any object (ie. spheroid, datum, GEOGCS, units, and PROJCS) that could have an authority node. Mostly this is useful to inserting appropriate PROJCS codes for common formulations (like UTM n WGS84). <p> If it success the OGRSpatialReference is updated in place, and the method return 0. If the method fails to identify the general coordinate system, a RuntimeException() will be throwned</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetProjection-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetProjection</h4> <pre>public int SetProjection(java.lang.String name)</pre> <div class="block">Set a projection name.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the projection name, which should be selected from the macros in ogr_srs_api.h, such as SRS_PT_TRANSVERSE_MERCATOR.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetProjParm-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetProjParm</h4> <pre>public int SetProjParm(java.lang.String name, double val)</pre> <div class="block">Set a projection parameter value. <p> Adds a new PARAMETER under the PROJCS with the indicated name and value. <p> Please check <a href="http://www.remotesensing.org/geotiff/proj_list">http://www.remotesensing.org/geotiff/proj_list</a> pages for legal parameter names for specific projections.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the parameter name, which should be selected from the macros in ogr_srs_api.h, such as SRS_PP_CENTRAL_MERIDIAN.</dd> <dd><code>val</code> - value to assign.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetProjParm-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetProjParm</h4> <pre>public double GetProjParm(java.lang.String name, double default_val)</pre> <div class="block">Fetch a projection parameter value. <p> NOTE: This code should be modified to translate non degree angles into degrees based on the GEOGCS unit. This has not yet been done.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the parameter to fetch, from the set of SRS_PP codes in ogr_srs_api.h.</dd> <dd><code>default_val</code> - the value to return if this parameter doesn't exist.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>value of parameter.</dd> </dl> </li> </ul> <a name="GetProjParm-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetProjParm</h4> <pre>public double GetProjParm(java.lang.String name)</pre> <div class="block">Fetch a projection parameter value. <p> Same as below with default_val == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#GetProjParm-java.lang.String-double-"><code>GetProjParm(String name, double default_val)</code></a></dd> </dl> </li> </ul> <a name="SetNormProjParm-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetNormProjParm</h4> <pre>public int SetNormProjParm(java.lang.String name, double val)</pre> <div class="block">Set a projection parameter with a normalized value. <p> This method is the same as SetProjParm() except that the value of the parameter passed in is assumed to be in "normalized" form (decimal degrees for angular values, meters for linear values. The values are converted in a form suitable for the GEOGCS and linear units in effect.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the parameter name, which should be selected from the macros in ogr_srs_api.h, such as SRS_PP_CENTRAL_MERIDIAN.</dd> <dd><code>val</code> - value to assign.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetNormProjParm-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetNormProjParm</h4> <pre>public double GetNormProjParm(java.lang.String name, double default_val)</pre> <div class="block">Fetch a normalized projection parameter value. <p> This method is the same as GetProjParm() except that the value of the parameter is "normalized" into degrees or meters depending on whether it is linear or angular.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the name of the parameter to fetch, from the set of SRS_PP codes in ogr_srs_api.h.</dd> <dd><code>default_val</code> - the value to return if this parameter doesn't exist.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>value of parameter.</dd> </dl> </li> </ul> <a name="GetNormProjParm-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetNormProjParm</h4> <pre>public double GetNormProjParm(java.lang.String name)</pre> <div class="block">Fetch a normalized projection parameter value. <p> Same as below with default_val == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#GetNormProjParm-java.lang.String-double-"><code>GetNormProjParm(String name, double default_val)</code></a></dd> </dl> </li> </ul> <a name="GetSemiMajor--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetSemiMajor</h4> <pre>public double GetSemiMajor()</pre> </li> </ul> <a name="GetSemiMinor--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetSemiMinor</h4> <pre>public double GetSemiMinor()</pre> </li> </ul> <a name="GetInvFlattening--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetInvFlattening</h4> <pre>public double GetInvFlattening()</pre> </li> </ul> <a name="SetACEA-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetACEA</h4> <pre>public int SetACEA(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetAE-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetAE</h4> <pre>public int SetAE(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetBonne-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetBonne</h4> <pre>public int SetBonne(double stdp, double cm, double fe, double fn)</pre> </li> </ul> <a name="SetCEA-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetCEA</h4> <pre>public int SetCEA(double stdp1, double cm, double fe, double fn)</pre> </li> </ul> <a name="SetCS-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetCS</h4> <pre>public int SetCS(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetEC-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetEC</h4> <pre>public int SetEC(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetEckertIV-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetEckertIV</h4> <pre>public int SetEckertIV(double cm, double fe, double fn)</pre> </li> </ul> <a name="SetEckertVI-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetEckertVI</h4> <pre>public int SetEckertVI(double cm, double fe, double fn)</pre> </li> </ul> <a name="SetEquirectangular-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetEquirectangular</h4> <pre>public int SetEquirectangular(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetEquirectangular2-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetEquirectangular2</h4> <pre>public int SetEquirectangular2(double clat, double clong, double pseudostdparallellat, double fe, double fn)</pre> </li> </ul> <a name="SetGaussSchreiberTMercator-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGaussSchreiberTMercator</h4> <pre>public int SetGaussSchreiberTMercator(double clat, double clong, double sc, double fe, double fn)</pre> </li> </ul> <a name="SetGS-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGS</h4> <pre>public int SetGS(double cm, double fe, double fn)</pre> </li> </ul> <a name="SetGH-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGH</h4> <pre>public int SetGH(double cm, double fe, double fn)</pre> </li> </ul> <a name="SetIGH--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetIGH</h4> <pre>public int SetIGH()</pre> </li> </ul> <a name="SetGEOS-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGEOS</h4> <pre>public int SetGEOS(double cm, double satelliteheight, double fe, double fn)</pre> </li> </ul> <a name="SetGnomonic-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGnomonic</h4> <pre>public int SetGnomonic(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetHOM-double-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetHOM</h4> <pre>public int SetHOM(double clat, double clong, double azimuth, double recttoskew, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetHOM2PNO-double-double-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetHOM2PNO</h4> <pre>public int SetHOM2PNO(double clat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetKrovak-double-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetKrovak</h4> <pre>public int SetKrovak(double clat, double clong, double azimuth, double pseudostdparallellat, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetLAEA-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLAEA</h4> <pre>public int SetLAEA(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetLCC-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLCC</h4> <pre>public int SetLCC(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetLCC1SP-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLCC1SP</h4> <pre>public int SetLCC1SP(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetLCCB-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLCCB</h4> <pre>public int SetLCCB(double stdp1, double stdp2, double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetMC-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetMC</h4> <pre>public int SetMC(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetMercator-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetMercator</h4> <pre>public int SetMercator(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetMollweide-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetMollweide</h4> <pre>public int SetMollweide(double cm, double fe, double fn)</pre> </li> </ul> <a name="SetNZMG-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetNZMG</h4> <pre>public int SetNZMG(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetOS-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetOS</h4> <pre>public int SetOS(double dfOriginLat, double dfCMeridian, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetOrthographic-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetOrthographic</h4> <pre>public int SetOrthographic(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetPolyconic-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetPolyconic</h4> <pre>public int SetPolyconic(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetPS-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetPS</h4> <pre>public int SetPS(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetRobinson-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetRobinson</h4> <pre>public int SetRobinson(double clong, double fe, double fn)</pre> </li> </ul> <a name="SetSinusoidal-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetSinusoidal</h4> <pre>public int SetSinusoidal(double clong, double fe, double fn)</pre> </li> </ul> <a name="SetStereographic-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetStereographic</h4> <pre>public int SetStereographic(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetSOC-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetSOC</h4> <pre>public int SetSOC(double latitudeoforigin, double cm, double fe, double fn)</pre> </li> </ul> <a name="SetTM-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTM</h4> <pre>public int SetTM(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetTMVariant-java.lang.String-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTMVariant</h4> <pre>public int SetTMVariant(java.lang.String pszVariantName, double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetTMG-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTMG</h4> <pre>public int SetTMG(double clat, double clong, double fe, double fn)</pre> </li> </ul> <a name="SetTMSO-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTMSO</h4> <pre>public int SetTMSO(double clat, double clong, double scale, double fe, double fn)</pre> </li> </ul> <a name="SetVDG-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetVDG</h4> <pre>public int SetVDG(double clong, double fe, double fn)</pre> </li> </ul> <a name="SetWellKnownGeogCS-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetWellKnownGeogCS</h4> <pre>public int SetWellKnownGeogCS(java.lang.String name)</pre> <div class="block">Set a GeogCS based on well known name. <p> This may be called on an empty OGRSpatialReference to make a geographic coordinate system, or on something with an existing PROJCS node to set the underlying geographic coordinate system of a projected coordinate system. <p> The following well known text values are currently supported: <ul> <li> "WGS84": same as "EPSG:4326" but has no dependence on EPSG data files. <li> "WGS72": same as "EPSG:4322" but has no dependence on EPSG data files. <li> "NAD27": same as "EPSG:4267" but has no dependence on EPSG data files. <li> "NAD83": same as "EPSG:4269" but has no dependence on EPSG data files. <li> "EPSG:n": same as doing an ImportFromEPSG(n). </ul></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - name of well known geographic coordinate system.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetFromUserInput-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetFromUserInput</h4> <pre>public int SetFromUserInput(java.lang.String definition)</pre> <div class="block">Set spatial reference from various text formats. <p> This method will examine the provided input, and try to deduce the format, and then use it to initialize the spatial reference system. It may take the following forms: <ol> <li> Well Known Text definition - passed on to importFromWkt(). <li> "EPSG:n" - number passed on to importFromEPSG(). <li> "EPSGA:n" - number passed on to importFromEPSGA(). <li> "AUTO:proj_id,unit_id,lon0,lat0" - WMS auto projections. <li> "urn:ogc:def:crs:EPSG::n" - ogc urns <li> PROJ.4 definitions - passed on to importFromProj4(). <li> filename - file read for WKT, XML or PROJ.4 definition. <li> well known name accepted by SetWellKnownGeogCS(), such as NAD27, NAD83, WGS84 or WGS72. <li> WKT (directly or in a file) in ESRI format should be prefixed with ESRI:: to trigger an automatic morphFromESRI(). </ol> It is expected that this method will be extended in the future to support XML and perhaps a simplified "minilanguage" for indicating common UTM and State Plane definitions. <p> This method is intended to be flexible, but by it's nature it is imprecise as it must guess information about the format intended. When possible applications should call the specific method appropriate if the input is known to be in a particular format.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>definition</code> - text definition to try to deduce SRS from.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="CopyGeogCSFrom-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CopyGeogCSFrom</h4> <pre>public int CopyGeogCSFrom(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> src_srs)</pre> <div class="block">Copy GEOGCS from another OGRSpatialReference. <p> The GEOGCS information is copied into this SpatialReference from another. If this object has a PROJCS root already, the GEOGCS is installed within it, otherwise it is installed as the root.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>src_srs</code> - the spatial reference to copy the GEOGCS information from.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetTOWGS84-double-double-double-double-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetTOWGS84</h4> <pre>public int SetTOWGS84(double dfDX, double dfDY, double dfDZ, double dfEX, double dfEY, double dfEZ, double dfPPM)</pre> <div class="block">Set the Bursa-Wolf conversion to WGS84. <p> This will create the TOWGS84 node as a child of the DATUM. It will fail if there is no existing DATUM node. Unlike most OGRSpatialReference methods it will insert itself in the appropriate order, and will replace an existing TOWGS84 node if there is one. <p> The parameters have the same meaning as EPSG transformation 9606 (Position Vector 7-param. transformation).</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dfDX</code> - X child in meters.</dd> <dd><code>dfDY</code> - Y child in meters.</dd> <dd><code>dfDZ</code> - Z child in meters.</dd> <dd><code>dfEX</code> - X rotation in arc seconds (optional, defaults to zero).</dd> <dd><code>dfEY</code> - Y rotation in arc seconds (optional, defaults to zero).</dd> <dd><code>dfEZ</code> - Z rotation in arc seconds (optional, defaults to zero).</dd> <dd><code>dfPPM</code> - scaling factor (parts per million).</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="GetTOWGS84-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetTOWGS84</h4> <pre>public int GetTOWGS84(double[] argout)</pre> <div class="block">Fetch TOWGS84 parameters, if available.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - allocated array of 7 doubles into which up to 7 coefficients are placed.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetLocalCS-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetLocalCS</h4> <pre>public int SetLocalCS(java.lang.String name)</pre> <div class="block">Set the user visible LOCAL_CS name. <p> This method is will ensure a LOCAL_CS node is created as the root, and set the provided name on it. It must be used before SetLinearUnits().</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the user visible name to assign. Not used as a key.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeogCS</h4> <pre>public int SetGeogCS(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset, java.lang.String pszAngularUnits, double dfConvertToRadians)</pre> <div class="block">Set geographic coordinate system. <p> This method is used to set the datum, ellipsoid, prime meridian and angular units for a geographic coordinate system. It can be used on it's own to establish a geographic spatial reference, or applied to a projected coordinate system to establish the underlying geographic coordinate system.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>pszGeogName</code> - user visible name for the geographic coordinate system (not to serve as a key).</dd> <dd><code>pszDatumName</code> - key name for this datum. The OpenGIS specification lists some known values, and otherwise EPSG datum names with a standard transformation are considered legal keys.</dd> <dd><code>pszSpheroidName</code> - user visible spheroid name (not to serve as a key)</dd> <dd><code>dfSemiMajor</code> - the semi major axis of the spheroid.</dd> <dd><code>dfInvFlattening</code> - the inverse flattening for the spheroid. This can be computed from the semi minor axis as 1/f = 1.0 / (1.0 - semiminor/semimajor).</dd> <dd><code>pszPMName</code> - the name of the prime merdidian (not to serve as a key) If this is null a default value of "Greenwich" will be used.</dd> <dd><code>dfPMOffset</code> - the longitude of greenwich relative to this prime meridian.</dd> <dd><code>pszAngularUnits</code> - the angular units name (see ogr_srs_api.h for some standard names). If null a value of "degrees" will be assumed.</dd> <dd><code>dfConvertToRadians</code> - value to multiply angular units by to transform them to radians. A value of SRS_UL_DEGREE_CONV will be used if pszAngularUnits is null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeogCS</h4> <pre>public int SetGeogCS(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset, java.lang.String pszAngularUnits)</pre> <div class="block">Set geographic coordinate system. <p> Same as below with dfConvertToRadians = 0.0174532925199433</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-"><code>SetGeogCS(String pszGeogName, String pszDatumName, String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, String pszPMName, double dfPMOffset, String pszUnits, double dfConvertToRadians)</code></a></dd> </dl> </li> </ul> <a name="SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeogCS</h4> <pre>public int SetGeogCS(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName, double dfPMOffset)</pre> <div class="block">Set geographic coordinate system. <p> Same as below with pszAngularUnits = "degree" and dfConvertToRadians = 0.0174532925199433</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-"><code>SetGeogCS(String pszGeogName, String pszDatumName, String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, String pszPMName, double dfPMOffset, String pszAngularUnits, double dfConvertToRadians)</code></a></dd> </dl> </li> </ul> <a name="SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeogCS</h4> <pre>public int SetGeogCS(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, java.lang.String pszPMName)</pre> <div class="block">Set geographic coordinate system. <p> Same as below with dfPMOffset = 0.0, pszAngularUnits = "degree" and dfConvertToRadians = 0.0174532925199433</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-"><code>SetGeogCS(String pszGeogName, String pszDatumName, String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, String pszPMName, double dfPMOffset, String pszAngularUnits, double dfConvertToRadians)</code></a></dd> </dl> </li> </ul> <a name="SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeogCS</h4> <pre>public int SetGeogCS(java.lang.String pszGeogName, java.lang.String pszDatumName, java.lang.String pszSpheroidName, double dfSemiMajor, double dfInvFlattening)</pre> <div class="block">Set geographic coordinate system. <p> Same as below with pszPMName = "Greenwich", dfPMOffset = 0.0, pszAngularUnits = "degree" and dfConvertToRadians = 0.0174532925199433</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetGeogCS-java.lang.String-java.lang.String-java.lang.String-double-double-java.lang.String-double-java.lang.String-double-"><code>SetGeogCS(String pszGeogName, String pszDatumName, String pszSpheroidName, double dfSemiMajor, double dfInvFlattening, String pszPMName, double dfPMOffset, String pszAngularUnits, double dfConvertToRadians)</code></a></dd> </dl> </li> </ul> <a name="SetProjCS-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetProjCS</h4> <pre>public int SetProjCS(java.lang.String name)</pre> <div class="block">Set the user visible PROJCS name. <p> This method is will ensure a PROJCS node is created as the root, and set the provided name on it. If used on a GEOGCS coordinate system, the GEOGCS node will be demoted to be a child of the new PROJCS root.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the user visible name to assign. May be null</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="SetProjCS--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetProjCS</h4> <pre>public int SetProjCS()</pre> <div class="block">Set the user visible PROJCS name. <p> Same as below with name == null</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetProjCS-java.lang.String-"><code>SetProjCS(String name)</code></a></dd> </dl> </li> </ul> <a name="SetGeocCS-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeocCS</h4> <pre>public int SetGeocCS(java.lang.String name)</pre> <div class="block">Set the user visible GEOCCS name. <p> This method is will ensure a GEOCCS node is created as the root, and set the provided name on it. If used on a GEOGCS coordinate system, the DATUM and PRIMEM nodes from the GEOGCS will be tarnsferred over to the GEOGCS.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>name</code> - the user visible name to assign. Not used as a key. May be null</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="SetGeocCS--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeocCS</h4> <pre>public int SetGeocCS()</pre> <div class="block">Set the user visible GEOCCS name. <p> Same as below with name == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#SetGeocCS-java.lang.String-"><code>SetGeocCS(String name)</code></a></dd> </dl> </li> </ul> <a name="SetVertCS-java.lang.String-java.lang.String-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetVertCS</h4> <pre>public int SetVertCS(java.lang.String VertCSName, java.lang.String VertDatumName, int VertDatumType)</pre> <div class="block">Set the user visible VERT_CS name. <p> This method is will ensure a VERT_CS node is created if needed. If the existing coordinate system is GEOGCS or PROJCS rooted, then it will be turned into a COMPD_CS.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>VertCSName</code> - the user visible name of the vertical coordinate system. Not used as a key.</dd> <dd><code>VertDatumName</code> - the user visible name of the vertical datum. It is helpful if this matches the EPSG name.</dd> <dd><code>VertDatumType</code> - the OGC vertical datum type, usually 2005.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="SetVertCS-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetVertCS</h4> <pre>public int SetVertCS(java.lang.String VertCSName, java.lang.String VertDatumName)</pre> </li> </ul> <a name="SetVertCS-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetVertCS</h4> <pre>public int SetVertCS(java.lang.String VertCSName)</pre> </li> </ul> <a name="SetVertCS--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetVertCS</h4> <pre>public int SetVertCS()</pre> </li> </ul> <a name="SetCompoundCS-java.lang.String-org.gdal.osr.SpatialReference-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetCompoundCS</h4> <pre>public int SetCompoundCS(java.lang.String name, <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> horizcs, <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> vertcs)</pre> </li> </ul> <a name="ImportFromWkt-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromWkt</h4> <pre>public int ImportFromWkt(java.lang.String wkt)</pre> <div class="block">Import from WKT string. <p> This method will wipe the existing SRS definition, and reassign it based on the contents of the passed WKT string. Only as much of the input string as needed to construct this SRS is consumed from the input string.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wkt</code> - WKT string</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromProj4-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromProj4</h4> <pre>public int ImportFromProj4(java.lang.String proj4)</pre> <div class="block">Import PROJ.4 coordinate string. <p> The OGRSpatialReference is initialized from the passed PROJ.4 style coordinate system string. In addition to many +proj formulations which have OGC equivelents, it is also possible to import "+init=epsg:n" style definitions. These are passed to importFromEPSG(). Other init strings (such as the state plane zones) are not currently supported. <p><pre> Example: pszProj4 = "+proj=utm +zone=11 +datum=WGS84" </pre><p> Some parameters, such as grids, recognised by PROJ.4 may not be well understood and translated into the OGRSpatialReference model. It is possible to add the +wktext parameter which is a special keyword that OGR recognises as meaning "embed the entire PROJ.4 string in the WKT and use it literally when converting back to PROJ.4 format". <p><pre> For example: "+proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=intl +units=m +nadgrids=nzgd2kgrid0005.gsb +wktext" </pre><p> will be translated as : <pre> PROJCS["unnamed", GEOGCS["International 1909 (Hayford)", DATUM["unknown", SPHEROID["intl",6378388,297]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["New_Zealand_Map_Grid"], PARAMETER["latitude_of_origin",-41], PARAMETER["central_meridian",173], PARAMETER["false_easting",2510000], PARAMETER["false_northing",6023150], UNIT["Meter",1], EXTENSION["PROJ4","+proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=intl +units=m +nadgrids=nzgd2kgrid0005.gsb +wktext"]] </pre></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>proj4</code> - the PROJ.4 style string.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromUrl-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromUrl</h4> <pre>public int ImportFromUrl(java.lang.String url)</pre> <div class="block">Set spatial reference from a URL. <p> This method will download the spatial reference at a given URL and feed it into SetFromUserInput for you.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>url</code> - text definition to try to deduce SRS from.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromESRI-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromESRI</h4> <pre>public int ImportFromESRI(java.util.Vector ppszInput)</pre> <div class="block">Import coordinate system from ESRI .prj format(s). <p> This function will read the text loaded from an ESRI .prj file, and translate it into an OGRSpatialReference definition. This should support many (but by no means all) old style (Arc/Info 7.x) .prj files, as well as the newer pseudo-OGC WKT .prj files. Note that new style .prj files are in OGC WKT format, but require some manipulation to correct datum names, and units on some projection parameters. This is addressed within importFromESRI() by an automatical call to morphFromESRI(). <p> Currently only GEOGRAPHIC, UTM, STATEPLANE, GREATBRITIAN_GRID, ALBERS, EQUIDISTANT_CONIC, and TRANSVERSE (mercator) projections are supported from old style files. <p> At this time there is no equivelent exportToESRI() method. Writing old style .prj files is not supported by OGRSpatialReference. However the morphToESRI() and exportToWkt() methods can be used to generate output suitable to write to new style (Arc 8) .prj files.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ppszInput</code> - vector of strings containing the definition.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromEPSG-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromEPSG</h4> <pre>public int ImportFromEPSG(int nCode)</pre> <div class="block">Initialize SRS based on EPSG GCS or PCS code. <p> This method will initialize the spatial reference based on the passed in EPSG GCS or PCS code. The coordinate system definitions are normally read from the EPSG derived support files such as pcs.csv, gcs.csv, pcs.override.csv, gcs.override.csv and falling back to search for a PROJ.4 epsg init file or a definition in epsg.wkt. <p> These support files are normally searched for in /usr/local/share/gdal or in the directory identified by the GDAL_DATA configuration option. See CPLFindFile() for details. <p> This method is relatively expensive, and generally involves quite a bit of text file scanning. Reasonable efforts should be made to avoid calling it many times for the same coordinate system. <p> This method is similar to importFromEPSGA() except that EPSG preferred axis ordering will *not* be applied for geographic coordinate systems. EPSG normally defines geographic coordinate systems to use lat/long contrary to typical GIS use).</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>nCode</code> - a GCS or PCS code from the horizontal coordinate system table.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromEPSGA-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromEPSGA</h4> <pre>public int ImportFromEPSGA(int arg)</pre> </li> </ul> <a name="ImportFromPCI-java.lang.String-java.lang.String-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromPCI</h4> <pre>public int ImportFromPCI(java.lang.String proj, java.lang.String units, double[] prjParams)</pre> <div class="block">Import coordinate system from PCI projection definition. <p> PCI software uses 16-character string to specify coordinate system and datum/ellipsoid. You should supply at least this string to the importFromPCI() function.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>proj</code> - string containing the definition. Looks like "pppppppppppp Ennn" or "pppppppppppp Dnnn", where "pppppppppppp" is a projection code, "Ennn" is an ellipsoid code, "Dnnn" --- a datum code.</dd> <dd><code>units</code> - Grid units code ("DEGREE" or "METRE"). If null, "METRE" will be used.</dd> <dd><code>prjParams</code> - Array of 17 coordinate system parameters: <pre> [0] Spheroid semi major axis [1] Spheroid semi minor axis [2] Reference Longitude [3] Reference Latitude [4] First Standard Parallel [5] Second Standard Parallel [6] False Easting [7] False Northing [8] Scale Factor [9] Height above sphere surface [10] Longitude of 1st point on center line [11] Latitude of 1st point on center line [12] Longitude of 2nd point on center line [13] Latitude of 2nd point on center line [14] Azimuth east of north for center line [15] Landsat satellite number [16] Landsat path number </pre> Particular projection uses different parameters, unused ones may be set to zero. If null supplied instead of array pointer default values will be used (i.e., zeroes).</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromPCI-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromPCI</h4> <pre>public int ImportFromPCI(java.lang.String proj, java.lang.String units)</pre> <div class="block">Import coordinate system from PCI projection definition. <p> Same as below with prjParams == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromPCI-java.lang.String-java.lang.String-double:A-"><code>ImportFromPCI(String proj, String units, double[] prjParams)</code></a></dd> </dl> </li> </ul> <a name="ImportFromPCI-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromPCI</h4> <pre>public int ImportFromPCI(java.lang.String proj)</pre> <div class="block">Import coordinate system from PCI projection definition. <p> Same as below with units == null and prjParams == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromPCI-java.lang.String-java.lang.String-double:A-"><code>ImportFromPCI(String proj, String units, double[] prjParams)</code></a></dd> </dl> </li> </ul> <a name="ImportFromUSGS-int-int-double:A-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromUSGS</h4> <pre>public int ImportFromUSGS(int iProjSys, int iZone, double[] padfPrjParams, int iDatum)</pre> <div class="block">Import coordinate system from USGS projection definition. <p> This method will import projection definition in style, used by USGS GCTP software. GCTP operates on angles in packed DMS format (see CPLDecToPackedDMS() function for details), so all angle values (latitudes, longitudes, azimuths, etc.) specified in the padfPrjParams array should be in the packed DMS format. Projection Transformation Package Projection Parameters: <pre> ---------------------------------------------------------------------------- | Array Element Code & Projection Id |--------------------------------------------------- | 0 | 1 | 2 | 3 | 4 | 5 |6 | 7 ---------------------------------------------------------------------------- 0 Geographic | | | | | | | | 1 U T M |Lon/Z |Lat/Z | | | | | | 2 State Plane | | | | | | | | 3 Albers Equal Area |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 4 Lambert Conformal C |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 5 Mercator |SMajor|SMinor| | |CentMer|TrueScale|FE|FN 6 Polar Stereographic |SMajor|SMinor| | |LongPol|TrueScale|FE|FN 7 Polyconic |SMajor|SMinor| | |CentMer|OriginLat|FE|FN 8 Equid. Conic A |SMajor|SMinor|STDPAR| |CentMer|OriginLat|FE|FN Equid. Conic B |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 9 Transverse Mercator |SMajor|SMinor|Factor| |CentMer|OriginLat|FE|FN 10 Stereographic |Sphere| | | |CentLon|CenterLat|FE|FN 11 Lambert Azimuthal |Sphere| | | |CentLon|CenterLat|FE|FN 12 Azimuthal |Sphere| | | |CentLon|CenterLat|FE|FN 13 Gnomonic |Sphere| | | |CentLon|CenterLat|FE|FN 14 Orthographic |Sphere| | | |CentLon|CenterLat|FE|FN 15 Gen. Vert. Near Per |Sphere| |Height| |CentLon|CenterLat|FE|FN 16 Sinusoidal |Sphere| | | |CentMer| |FE|FN 17 Equirectangular |Sphere| | | |CentMer|TrueScale|FE|FN 18 Miller Cylindrical |Sphere| | | |CentMer| |FE|FN 19 Van der Grinten |Sphere| | | |CentMer|OriginLat|FE|FN 20 Hotin Oblique Merc A |SMajor|SMinor|Factor| | |OriginLat|FE|FN Hotin Oblique Merc B |SMajor|SMinor|Factor|AziAng|AzmthPt|OriginLat|FE|FN 21 Robinson |Sphere| | | |CentMer| |FE|FN 22 Space Oblique Merc A |SMajor|SMinor| |IncAng|AscLong| |FE|FN Space Oblique Merc B |SMajor|SMinor|Satnum|Path | | |FE|FN 23 Alaska Conformal |SMajor|SMinor| | | | |FE|FN 24 Interrupted Goode |Sphere| | | | | | | 25 Mollweide |Sphere| | | |CentMer| |FE|FN 26 Interrupt Mollweide |Sphere| | | | | | | 27 Hammer |Sphere| | | |CentMer| |FE|FN 28 Wagner IV |Sphere| | | |CentMer| |FE|FN 29 Wagner VII |Sphere| | | |CentMer| |FE|FN 30 Oblated Equal Area |Sphere| |Shapem|Shapen|CentLon|CenterLat|FE|FN ---------------------------------------------------------------------------- ---------------------------------------------------- | Array Element | Code & Projection Id |--------------------------- | 8 | 9 | 10 | 11 | 12 | ---------------------------------------------------- 0 Geographic | | | | | | 1 U T M | | | | | | 2 State Plane | | | | | | 3 Albers Equal Area | | | | | | 4 Lambert Conformal C | | | | | | 5 Mercator | | | | | | 6 Polar Stereographic | | | | | | 7 Polyconic | | | | | | 8 Equid. Conic A |zero | | | | | Equid. Conic B |one | | | | | 9 Transverse Mercator | | | | | | 10 Stereographic | | | | | | 11 Lambert Azimuthal | | | | | | 12 Azimuthal | | | | | | 13 Gnomonic | | | | | | 14 Orthographic | | | | | | 15 Gen. Vert. Near Per | | | | | | 16 Sinusoidal | | | | | | 17 Equirectangular | | | | | | 18 Miller Cylindrical | | | | | | 19 Van der Grinten | | | | | | 20 Hotin Oblique Merc A |Long1|Lat1|Long2|Lat2|zero| Hotin Oblique Merc B | | | | |one | 21 Robinson | | | | | | 22 Space Oblique Merc A |PSRev|LRat|PFlag| |zero| Space Oblique Merc B | | | | |one | 23 Alaska Conformal | | | | | | 24 Interrupted Goode | | | | | | 25 Mollweide | | | | | | 26 Interrupt Mollweide | | | | | | 27 Hammer | | | | | | 28 Wagner IV | | | | | | 29 Wagner VII | | | | | | 30 Oblated Equal Area |Angle| | | | | ---------------------------------------------------- where Lon/Z Longitude of any point in the UTM zone or zero. If zero, a zone code must be specified. Lat/Z Latitude of any point in the UTM zone or zero. If zero, a zone code must be specified. SMajor Semi-major axis of ellipsoid. If zero, Clarke 1866 in meters is assumed. SMinor Eccentricity squared of the ellipsoid if less than zero, if zero, a spherical form is assumed, or if greater than zero, the semi-minor axis of ellipsoid. Sphere Radius of reference sphere. If zero, 6370997 meters is used. STDPAR Latitude of the standard parallel STDPR1 Latitude of the first standard parallel STDPR2 Latitude of the second standard parallel CentMer Longitude of the central meridian OriginLat Latitude of the projection origin FE False easting in the same units as the semi-major axis FN False northing in the same units as the semi-major axis TrueScale Latitude of true scale LongPol Longitude down below pole of map Factor Scale factor at central meridian (Transverse Mercator) or center of projection (Hotine Oblique Mercator) CentLon Longitude of center of projection CenterLat Latitude of center of projection Height Height of perspective point Long1 Longitude of first point on center line (Hotine Oblique Mercator, format A) Long2 Longitude of second point on center line (Hotine Oblique Mercator, format A) Lat1 Latitude of first point on center line (Hotine Oblique Mercator, format A) Lat2 Latitude of second point on center line (Hotine Oblique Mercator, format A) AziAng Azimuth angle east of north of center line (Hotine Oblique Mercator, format B) AzmthPt Longitude of point on central meridian where azimuth occurs (Hotine Oblique Mercator, format B) IncAng Inclination of orbit at ascending node, counter-clockwise from equator (SOM, format A) AscLong Longitude of ascending orbit at equator (SOM, format A) PSRev Period of satellite revolution in minutes (SOM, format A) LRat Landsat ratio to compensate for confusion at northern end of orbit (SOM, format A -- use 0.5201613) PFlag End of path flag for Landsat: 0 = start of path, 1 = end of path (SOM, format A) Satnum Landsat Satellite Number (SOM, format B) Path Landsat Path Number (Use WRS-1 for Landsat 1, 2 and 3 and WRS-2 for Landsat 4, 5 and 6.) (SOM, format B) Shapem Oblated Equal Area oval shape parameter m Shapen Oblated Equal Area oval shape parameter n Angle Oblated Equal Area oval rotation angle Array elements 13 and 14 are set to zero. All array elements with blank fields are set to zero too. </pre> If the datum code is negative, the first two values in the parameter array (parm) are used to define the values as follows: <ul> <li> If padfPrjParams[0] is a non-zero value and padfPrjParams[1] is greater than one, the semimajor axis is set to padfPrjParams[0] and the semiminor axis is set to padfPrjParams[1]. <li> If padfPrjParams[0] is nonzero and padfPrjParams[1] is greater than zero but less than or equal to one, the semimajor axis is set to padfPrjParams[0] and the semiminor axis is computed from the eccentricity squared value padfPrjParams[1]:<p> semiminor = sqrt(1.0 - ES) * semimajor<p> where<p> ES = eccentricity squared <li> If padfPrjParams[0] is nonzero and padfPrjParams[1] is equal to zero, the semimajor axis and semiminor axis are set to padfPrjParams[0]. <li> If padfPrjParams[0] equals zero and padfPrjParams[1] is greater than zero, the default Clarke 1866 is used to assign values to the semimajor axis and semiminor axis. <li> If padfPrjParams[0] and padfPrjParams[1] equals zero, the semimajor axis is set to 6370997.0 and the semiminor axis is set to zero. </ul> If a datum code is zero or greater, the semimajor and semiminor axis are defined by the datum code as found in the following table: Supported Datums: <pre> 0: Clarke 1866 (default) 1: Clarke 1880 2: Bessel 3: International 1967 4: International 1909 5: WGS 72 6: Everest 7: WGS 66 8: GRS 1980/WGS 84 9: Airy 10: Modified Everest 11: Modified Airy 12: Walbeck 13: Southeast Asia 14: Australian National 15: Krassovsky 16: Hough 17: Mercury 1960 18: Modified Mercury 1968 19: Sphere of Radius 6370997 meters </pre></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iProjSys</code> - Input projection system code, used in GCTP.</dd> <dd><code>iZone</code> - Input zone for UTM and State Plane projection systems. For Southern Hemisphere UTM use a negative zone code. iZone ignored for all other projections.</dd> <dd><code>padfPrjParams</code> - Array of 15 coordinate system parameters. These parameters differs for different projections.</dd> <dd><code>iDatum</code> - Input spheroid.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromUSGS-int-int-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromUSGS</h4> <pre>public int ImportFromUSGS(int iProjSys, int iZone, double[] padfPrjParams)</pre> <div class="block">Import coordinate system from USGS projection definition. <p> Same as below with iDatum == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-double:A-int-"><code>ImportFromUSGS(int iProjSys, int iZone, double[] padfPrjParams, int iDatum)</code></a></dd> </dl> </li> </ul> <a name="ImportFromUSGS-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromUSGS</h4> <pre>public int ImportFromUSGS(int iProjSys, int iZone)</pre> <div class="block">Import coordinate system from USGS projection definition. <p> Same as below with padfPrjParams == null and iDatum == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-double:A-int-"><code>ImportFromUSGS(int iProjSys, int iZone, double[] padfPrjParams, int iDatum)</code></a></dd> </dl> </li> </ul> <a name="ImportFromUSGS-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromUSGS</h4> <pre>public int ImportFromUSGS(int iProjSys)</pre> <div class="block">Import coordinate system from USGS projection definition. <p> Same as below with iZone == 0, padfPrjParams == null and iDatum == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ImportFromUSGS-int-int-double:A-int-"><code>ImportFromUSGS(int iProjSys, int iZone, double[] padfPrjParams, int iDatum)</code></a></dd> </dl> </li> </ul> <a name="ImportFromXML-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromXML</h4> <pre>public int ImportFromXML(java.lang.String xmlString)</pre> <div class="block">Import coordinate system from XML format (GML only currently).</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>xmlString</code> - XML string to import</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromERM-java.lang.String-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromERM</h4> <pre>public int ImportFromERM(java.lang.String proj, java.lang.String datum, java.lang.String units)</pre> </li> </ul> <a name="ImportFromMICoordSys-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromMICoordSys</h4> <pre>public int ImportFromMICoordSys(java.lang.String coord_sys)</pre> <div class="block">Import Mapinfo style CoordSys definition. <p> The SpatialReference is initialized from the passed Mapinfo style CoordSys definition string.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>coord_sys</code> - Mapinfo style CoordSys definition string.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ImportFromOzi-java.lang.String-java.lang.String-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ImportFromOzi</h4> <pre>public int ImportFromOzi(java.lang.String datum, java.lang.String proj, java.lang.String projParms)</pre> </li> </ul> <a name="ExportToWkt-java.lang.String:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToWkt</h4> <pre>public int ExportToWkt(java.lang.String[] argout)</pre> <div class="block">Convert this SRS into WKT format.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an already allocated array of 1 string to receive the output</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0.</dd> </dl> </li> </ul> <a name="ExportToPrettyWkt-java.lang.String:A-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToPrettyWkt</h4> <pre>public int ExportToPrettyWkt(java.lang.String[] argout, int simplify)</pre> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an already allocated array of 1 string to receive the output</dd> <dd><code>simplify</code> - 1 if the AXIS, AUTHORITY and EXTENSION nodes should be stripped off</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0.</dd> </dl> </li> </ul> <a name="ExportToPrettyWkt-java.lang.String:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToPrettyWkt</h4> <pre>public int ExportToPrettyWkt(java.lang.String[] argout)</pre> <div class="block">Convert this SRS into a a nicely formatted WKT string for display to a person. <p> Same as below with simplify == 0.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToPrettyWkt-java.lang.String:A-int-"><code>ExportToPrettyWkt(String[] argout, int simplify)</code></a></dd> </dl> </li> </ul> <a name="ExportToProj4-java.lang.String:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToProj4</h4> <pre>public int ExportToProj4(java.lang.String[] argout)</pre> <div class="block">Export coordinate system in PROJ.4 format. <p> Converts the loaded coordinate reference system into PROJ.4 format to the extent possible. <p> LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with 0.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an already allocated array of 1 string to receive the PROJ.4 definition</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ExportToPCI-java.lang.String:A-java.lang.String:A-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToPCI</h4> <pre>public int ExportToPCI(java.lang.String[] proj, java.lang.String[] units, double[] parms)</pre> <div class="block">Export coordinate system in PCI projection definition. <p> Converts the loaded coordinate reference system into PCI projection definition to the extent possible. <p> LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with 0.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>proj</code> - an already allocated array of 1 string to receive the PCI projection definition</dd> <dd><code>units</code> - an already allocated array of 1 string to receive units definition</dd> <dd><code>parms</code> - an already allocated array of 17 doubles to receive the 17 projection parameters will be assigned. See importFromPCI() for the list of parameters.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ExportToUSGS-int:A-int:A-double:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToUSGS</h4> <pre>public int ExportToUSGS(int[] projsys, int[] zone, double[] parms, int[] datum)</pre> <div class="block">Export coordinate system in USGS GCTP projection definition.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>projsys</code> - an already allocated array of 1 integer to receive the projection system code.</dd> <dd><code>zone</code> - an already allocated array of 1 integer to receive the zone for UTM and State Plane projection.</dd> <dd><code>parms</code> - n already allocated array of 15 doubles to receive 15 projection parameters. See importFromUSGS() for the list of parameters.</dd> <dd><code>datum</code> - an already allocated array of 1 integer to receive the datum code.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ExportToXML-java.lang.String:A-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToXML</h4> <pre>public int ExportToXML(java.lang.String[] argout, java.lang.String dialect)</pre> <div class="block">Export coordinate system in XML format. <p> Converts the loaded coordinate reference system into XML format to the extent possible. <p> LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with 0.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an already allocated array of 1 string to receive the XML definition.</dd> <dd><code>dialect</code> - currently ignored. The dialect used is GML based.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="ExportToXML-java.lang.String:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToXML</h4> <pre>public int ExportToXML(java.lang.String[] argout)</pre> <div class="block">Export coordinate system in XML format.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/osr/SpatialReference.html#ExportToXML-java.lang.String:A-java.lang.String-"><code>ExportToXML(String[] argout, String dialect)</code></a></dd> </dl> </li> </ul> <a name="ExportToMICoordSys-java.lang.String:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToMICoordSys</h4> <pre>public int ExportToMICoordSys(java.lang.String[] argout)</pre> <div class="block">Export coordinate system in Mapinfo style CoordSys format.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an already allocated array of 1 string to receive the output</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="CloneGeogCS--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CloneGeogCS</h4> <pre>public <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> CloneGeogCS()</pre> <div class="block">Make a duplicate of the GEOGCS node of this SpatialReference object.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new SRS, which becomes the responsibility of the caller.</dd> </dl> </li> </ul> <a name="Clone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Clone</h4> <pre>public <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> Clone()</pre> <div class="block">Make a duplicate of this SpatialReference object.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new SRS, which becomes the responsibility of the caller.</dd> </dl> </li> </ul> <a name="Validate--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Validate</h4> <pre>public int Validate()</pre> <div class="block">Validate SRS tokens. <p> This method attempts to verify that the spatial reference system is well formed, and consists of known tokens. The validation is not comprehensive.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="StripCTParms--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>StripCTParms</h4> <pre>public int StripCTParms()</pre> <div class="block">Strip OGC CT Parameters. <p> This method will remove all components of the coordinate system that are specific to the OGC CT Specification. That is it will attempt to strip it down to being compatible with the Simple Features 1.0 specification.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="FixupOrdering--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>FixupOrdering</h4> <pre>public int FixupOrdering()</pre> <div class="block">Correct parameter ordering to match CT Specification. <p> Some mechanisms to create WKT using OGRSpatialReference, and some imported WKT fail to maintain the order of parameters required according to the BNF definitions in the OpenGIS SF-SQL and CT Specifications. This method attempts to massage things back into the required order.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="Fixup--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Fixup</h4> <pre>public int Fixup()</pre> <div class="block">Fixup as needed. <p> Some mechanisms to create WKT using OGRSpatialReference, and some imported WKT, are not valid according to the OGC CT specification. This method attempts to fill in any missing defaults that are required, and fixup ordering problems (using OSRFixupOrdering()) so that the resulting WKT is valid. <p> This method should be expected to evolve over time to as problems are discovered. The following are amoung the fixup actions this method will take: <ul> <li>Fixup the ordering of nodes to match the BNF WKT ordering, using the FixupOrdering() method.</li> <li>Add missing linear or angular units nodes.</li></div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="MorphToESRI--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>MorphToESRI</h4> <pre>public int MorphToESRI()</pre> <div class="block">Convert in place to ESRI WKT format. <p> The value nodes of this coordinate system are modified in various manners more closely map onto the ESRI concept of WKT format. This includes renaming a variety of projections and arguments, and stripping out nodes note recognised by ESRI (like AUTHORITY and AXIS).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> <a name="MorphFromESRI--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>MorphFromESRI</h4> <pre>public int MorphFromESRI()</pre> <div class="block">Convert in place from ESRI WKT format. <p> The value notes of this coordinate system are modified in various manners to adhere more closely to the WKT standard. This mostly involves translating a variety of ESRI names for projections, arguments and datums to "standard" names, as defined by Adam Gawne-Cain's reference translation of EPSG to WKT for the CT specification.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 on success. Otherwise throws a RuntimeException() (or an error code if DontUseExceptions() has been called).</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/gdal/osr/osrJNI.html" title="class in org.gdal.osr"><span class="typeNameLink">Prev Class</span></a></li> <li>Next Class</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/osr/SpatialReference.html" target="_top">Frames</a></li> <li><a href="SpatialReference.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>