EVOLUTION-MANAGER
Edit File: Geometry.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:32 EST 2018 --> <title>Geometry (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="Geometry (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":9,"i17":9,"i18":9,"i19":9,"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":42,"i42":42,"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":42,"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":42,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated 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/ogr/FieldDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/ogr/Geometry.html" target="_top">Frames</a></li> <li><a href="Geometry.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.ogr</div> <h2 title="Class Geometry" class="title">Class Geometry</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>org.gdal.ogr.Geometry</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">Geometry</span> extends java.lang.Object implements java.lang.Cloneable</pre> <div class="block">Abstract base class for all geometry classes. <p> The Geometry class is a binding for the C++ <a href="http://gdal.org/ogr/classOGRGeometry.html">OGRGeometry</a> class. <p> Some spatial analysis methods require that OGR is built on the GEOS library to work properly. The precise meaning of methods that describe spatial relationships between geometries is described in the SFCOM, or other simple features interface specifications, like "OpenGIS(R) Implementation Specification for Geographic information - Simple feature access - Part 1: Common architecture" (<a href="http://www.opengeospatial.org/standards/sfa">OGC 06-103r3</a>)</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/ogr/Geometry.html#Geometry-int-">Geometry</a></span>(int eGeometryType)</code> <div class="block">Create an empty geometry of desired type.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Geometry-int-java.lang.String-byte:A-java.lang.String-">Geometry</a></span>(int eGeometryType, java.lang.String wkt, byte[] wkb, java.lang.String gml)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <div class="block"><span class="deprecationComment">Use referenced methods instead.</span></div> </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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated 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>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#AddGeometry-org.gdal.ogr.Geometry-">AddGeometry</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Add a geometry to the container.</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/ogr/Geometry.html#AddGeometryDirectly-org.gdal.ogr.Geometry-">AddGeometryDirectly</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Add a geometry directly to the container.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#AddPoint_2D-double-double-">AddPoint_2D</a></span>(double x, double y)</code> <div class="block">Add a point to a geometry (line string or point).</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#AddPoint-double-double-">AddPoint</a></span>(double x, double y)</code> <div class="block">Add a point to a geometry (line string or point).</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#AddPoint-double-double-double-">AddPoint</a></span>(double x, double y, double z)</code> <div class="block">Add a point to a geometry (line string or point).</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Area--">Area</a></span>()</code> <div class="block">Compute geometry area.</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/ogr/Geometry.html#AssignSpatialReference-org.gdal.osr.SpatialReference-">AssignSpatialReference</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> srs)</code> <div class="block">Assign spatial reference to this object.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Boundary--">Boundary</a></span>()</code> <div class="block">Compute boundary.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Buffer-double-">Buffer</a></span>(double distance)</code> <div class="block">Compute buffer of geometry.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Buffer-double-int-">Buffer</a></span>(double distance, int quadsecs)</code> <div class="block">Compute buffer of geometry.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Centroid--">Centroid</a></span>()</code> <div class="block">Compute the geometry centroid.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#clone--">clone</a></span>()</code> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Clone--">Clone</a></span>()</code> <div class="block">Make a copy of this object.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#CloseRings--">CloseRings</a></span>()</code> <div class="block">Force rings to be closed.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Contains-org.gdal.ogr.Geometry-">Contains</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for containment.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ConvexHull--">ConvexHull</a></span>()</code> <div class="block">Compute convex hull.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#CreateFromGML-java.lang.String-">CreateFromGML</a></span>(java.lang.String gml)</code> <div class="block">Create geometry from GML.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#CreateFromJson-java.lang.String-">CreateFromJson</a></span>(java.lang.String json)</code> <div class="block">Create geometry from GeoJSON.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#CreateFromWkb-byte:A-">CreateFromWkb</a></span>(byte[] wkb)</code> <div class="block">Create a geometry object of the appropriate type from it's well known binary representation.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#CreateFromWkt-java.lang.String-">CreateFromWkt</a></span>(java.lang.String wkt)</code> <div class="block">Create a geometry object of the appropriate type from it's well known text representation.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Crosses-org.gdal.ogr.Geometry-">Crosses</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for crossing.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#delete--">delete</a></span>()</code> <div class="block">Delete a geometry.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Difference-org.gdal.ogr.Geometry-">Difference</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Compute difference.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Disjoint-org.gdal.ogr.Geometry-">Disjoint</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for disjointness.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Distance-org.gdal.ogr.Geometry-">Distance</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Compute distance between two geometries.</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Empty--">Empty</a></span>()</code> <div class="block">Clear geometry information.</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Equal-org.gdal.ogr.Geometry-">Equal</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Returns two if two geometries are equivalent.</div> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Equals-org.gdal.ogr.Geometry-">Equals</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object obj)</code> </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/ogr/Geometry.html#ExportToGML--">ExportToGML</a></span>()</code> <div class="block">Convert a geometry into GML format.</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/ogr/Geometry.html#ExportToGML-java.util.Vector-">ExportToGML</a></span>(java.util.Vector options)</code> <div class="block">Convert a geometry into GML format.</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/ogr/Geometry.html#ExportToJson--">ExportToJson</a></span>()</code> <div class="block">Convert a geometry into GeoJSON format.</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/ogr/Geometry.html#ExportToJson-java.util.Vector-">ExportToJson</a></span>(java.util.Vector options)</code> <div class="block">Convert a geometry into GeoJSON format.</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToKML--">ExportToKML</a></span>()</code> <div class="block">Convert a geometry into KML format.</div> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToKML-java.lang.String-">ExportToKML</a></span>(java.lang.String altitude_mode)</code> <div class="block">Convert a geometry into KML format.</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code>byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToWkb--">ExportToWkb</a></span>()</code> <div class="block">Convert a geometry into well known binary format.</div> </td> </tr> <tr id="i36" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToWkb-byte:A-int-">ExportToWkb</a></span>(byte[] wkbArray, int byte_order)</code> <div class="block">Convert a geometry into well known binary format.</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToWkb-int-">ExportToWkb</a></span>(int byte_order)</code> <div class="block">Convert a geometry into well known binary format.</div> </td> </tr> <tr id="i38" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToWkt--">ExportToWkt</a></span>()</code> <div class="block">Convert a geometry into well known text format.</div> </td> </tr> <tr id="i39" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#ExportToWkt-java.lang.String:A-">ExportToWkt</a></span>(java.lang.String[] argout)</code> <div class="block">Convert a geometry into well known text format.</div> </td> </tr> <tr id="i40" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#FlattenTo2D--">FlattenTo2D</a></span>()</code> <div class="block">Convert geometry to strictly 2D.</div> </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/ogr/Geometry.html#GetArea--">GetArea</a></span>()</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> </td> </tr> <tr id="i42" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetBoundary--">GetBoundary</a></span>()</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </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/ogr/Geometry.html#GetCoordinateDimension--">GetCoordinateDimension</a></span>()</code> <div class="block">Get the dimension of the coordinates in this object.</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/ogr/Geometry.html#GetDimension--">GetDimension</a></span>()</code> <div class="block">Get the dimension of this object.</div> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetEnvelope-double:A-">GetEnvelope</a></span>(double[] argout)</code> <div class="block">Computes and returns the bounding envelope for this geometry.</div> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetEnvelope3D-double:A-">GetEnvelope3D</a></span>(double[] argout)</code> <div class="block">Computes and returns the 3D bounding envelope for this geometry.</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/ogr/Geometry.html#GetGeometryCount--">GetGeometryCount</a></span>()</code> <div class="block">Fetch the number of elements in a geometry or number of geometries in container.</div> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetGeometryName--">GetGeometryName</a></span>()</code> <div class="block">Fetch WKT name for geometry type.</div> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetGeometryRef-int-">GetGeometryRef</a></span>(int iSubGeom)</code> <div class="block">Fetch geometry from a geometry container.</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/ogr/Geometry.html#GetGeometryType--">GetGeometryType</a></span>()</code> <div class="block">Fetch geometry type.</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code>double[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoint_2D-int-">GetPoint_2D</a></span>(int iPoint)</code> <div class="block">Fetch a point in line string or a point geometry.</div> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoint_2D-int-double:A-">GetPoint_2D</a></span>(int iPoint, double[] argout)</code> <div class="block">Fetch a point in line string or a point geometry.</div> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code>double[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoint-int-">GetPoint</a></span>(int iPoint)</code> <div class="block">Fetch a point in line string or a point geometry.</div> </td> </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoint-int-double:A-">GetPoint</a></span>(int iPoint, double[] argout)</code> <div class="block">Fetch a point in line string or a point geometry.</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/ogr/Geometry.html#GetPointCount--">GetPointCount</a></span>()</code> <div class="block">Fetch number of points from a geometry.</div> </td> </tr> <tr id="i56" class="altColor"> <td class="colFirst"><code>double[][]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoints--">GetPoints</a></span>()</code> <div class="block">Returns all points of a point or a line string.</div> </td> </tr> <tr id="i57" class="rowColor"> <td class="colFirst"><code>double[][]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetPoints-int-">GetPoints</a></span>(int nCoordinateDimension)</code> <div class="block">Returns all points of a point or a line string.</div> </td> </tr> <tr id="i58" 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/ogr/Geometry.html#GetSpatialReference--">GetSpatialReference</a></span>()</code> <div class="block">Returns spatial reference system for object.</div> </td> </tr> <tr id="i59" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetX--">GetX</a></span>()</code> <div class="block">Fetch the x coordinate of the first point from a geometry.</div> </td> </tr> <tr id="i60" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetX-int-">GetX</a></span>(int ipoint)</code> <div class="block">Fetch the x coordinate of a point from a geometry.</div> </td> </tr> <tr id="i61" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetY--">GetY</a></span>()</code> <div class="block">Fetch the y coordinate of the first point from a geometry.</div> </td> </tr> <tr id="i62" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetY-int-">GetY</a></span>(int ipoint)</code> <div class="block">Fetch the y coordinate of a point from a geometry.</div> </td> </tr> <tr id="i63" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetZ--">GetZ</a></span>()</code> <div class="block">Fetch the z coordinate of the first point from a geometry.</div> </td> </tr> <tr id="i64" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#GetZ-int-">GetZ</a></span>(int ipoint)</code> <div class="block">Fetch the z coordinate of a point from a geometry.</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/ogr/Geometry.html#hashCode--">hashCode</a></span>()</code> </td> </tr> <tr id="i66" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Intersect-org.gdal.ogr.Geometry-">Intersect</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> </td> </tr> <tr id="i67" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Intersection-org.gdal.ogr.Geometry-">Intersection</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Compute intersection.</div> </td> </tr> <tr id="i68" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Intersects-org.gdal.ogr.Geometry-">Intersects</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Do these features intersect?</div> </td> </tr> <tr id="i69" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#IsEmpty--">IsEmpty</a></span>()</code> <div class="block">Returns true (non-zero) if the object has no points.</div> </td> </tr> <tr id="i70" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#IsRing--">IsRing</a></span>()</code> <div class="block">Test if the geometry is a ring.</div> </td> </tr> <tr id="i71" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#IsSimple--">IsSimple</a></span>()</code> <div class="block">Test if the geometry is simple.</div> </td> </tr> <tr id="i72" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#IsValid--">IsValid</a></span>()</code> <div class="block">Test if the geometry is valid.</div> </td> </tr> <tr id="i73" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Length--">Length</a></span>()</code> <div class="block">Returns the length of the geometry</div> </td> </tr> <tr id="i74" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Overlaps-org.gdal.ogr.Geometry-">Overlaps</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for overlap.</div> </td> </tr> <tr id="i75" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#PointOnSurface--">PointOnSurface</a></span>()</code> </td> </tr> <tr id="i76" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Segmentize-double-">Segmentize</a></span>(double max_length)</code> <div class="block">Modify the geometry such it has no segment longer then the given distance.</div> </td> </tr> <tr id="i77" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SetCoordinateDimension-int-">SetCoordinateDimension</a></span>(int dimension)</code> <div class="block">Set the coordinate dimension.</div> </td> </tr> <tr id="i78" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SetPoint_2D-int-double-double-">SetPoint_2D</a></span>(int ipoint, double x, double y)</code> <div class="block">Set the location of a vertex in a point or linestring geometry.</div> </td> </tr> <tr id="i79" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SetPoint-int-double-double-">SetPoint</a></span>(int ipoint, double x, double y)</code> <div class="block">Set the location of a vertex in a point or linestring geometry.</div> </td> </tr> <tr id="i80" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SetPoint-int-double-double-double-">SetPoint</a></span>(int ipoint, double x, double y, double z)</code> <div class="block">Set the location of a vertex in a point or linestring geometry.</div> </td> </tr> <tr id="i81" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Simplify-double-">Simplify</a></span>(double dTolerance)</code> <div class="block">Simplify the geometry.</div> </td> </tr> <tr id="i82" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SimplifyPreserveTopology-double-">SimplifyPreserveTopology</a></span>(double dTolerance)</code> <div class="block">Simplify the geometry while preserving topology.</div> </td> </tr> <tr id="i83" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SymDifference-org.gdal.ogr.Geometry-">SymDifference</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Compute symmetric difference.</div> </td> </tr> <tr id="i84" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#SymmetricDifference-org.gdal.ogr.Geometry-">SymmetricDifference</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> </td> </tr> <tr id="i85" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Touches-org.gdal.ogr.Geometry-">Touches</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for touching.</div> </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/ogr/Geometry.html#Transform-org.gdal.osr.CoordinateTransformation-">Transform</a></span>(<a href="../../../org/gdal/osr/CoordinateTransformation.html" title="class in org.gdal.osr">CoordinateTransformation</a> ct)</code> <div class="block">Apply arbitrary coordinate transformation to geometry.</div> </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/ogr/Geometry.html#TransformTo-org.gdal.osr.SpatialReference-">TransformTo</a></span>(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> srs)</code> <div class="block">Transform geometry to new spatial reference system.</div> </td> </tr> <tr id="i88" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Union-org.gdal.ogr.Geometry-">Union</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Compute union.</div> </td> </tr> <tr id="i89" class="rowColor"> <td class="colFirst"><code><a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#UnionCascaded--">UnionCascaded</a></span>()</code> <div class="block">Compute union using cascading.</div> </td> </tr> <tr id="i90" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/ogr/Geometry.html#Within-org.gdal.ogr.Geometry-">Within</a></span>(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</code> <div class="block">Test for containment.</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/ogr/Geometry.html#WkbSize--">WkbSize</a></span>()</code> <div class="block">Returns size of related binary representation.</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, toString, 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="Geometry-int-java.lang.String-byte:A-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Geometry</h4> <pre>public Geometry(int eGeometryType, java.lang.String wkt, byte[] wkb, java.lang.String gml)</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use referenced methods instead.</span></div> <div class="block">Create a new geometry. <p> The geometry can be instanciated by 4 different and exclusive way : <ul> <li> By specifying the geometry type (ogr.wkbPoint, etc..)</li> <li> By specifying the well known text representation (wkt)</li> <li> By specifying the well known binary representation (wkb)</li> <li> By specifying the GML representation</li> </ul> <p> You should rather use either the Geometry(int) constructor, or the static methods like Geometry.CreateFromWkt(), Geometry.CreateFromWbt() or Geometry.CreateFromGML().</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eGeometryType</code> - the type code of the geometry class to be instantiated.</dd> <dd><code>wkt</code> - the well known text representation</dd> <dd><code>wkb</code> - the well known binary representation</dd> <dd><code>gml</code> - the GML representation</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#Geometry-int-"><code>Geometry(int eGeometryType)</code></a>, <a href="../../../org/gdal/ogr/Geometry.html#CreateFromWkt-java.lang.String-"><code>CreateFromWkt(String wkt)</code></a>, <a href="../../../org/gdal/ogr/Geometry.html#CreateFromWkb-byte:A-"><code>CreateFromWkb(byte[] wkb)</code></a>, <a href="../../../org/gdal/ogr/Geometry.html#CreateFromGML-java.lang.String-"><code>CreateFromGML(String gml)</code></a></dd> </dl> </li> </ul> <a name="Geometry-int-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Geometry</h4> <pre>public Geometry(int eGeometryType)</pre> <div class="block">Create an empty geometry of desired type. <p> The type may be one of ogr.wkbPoint, etc..</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eGeometryType</code> - the type code of the geometry class to be instantiated.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</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> <div class="block">Delete a geometry. <p> Calling this method is not required as normal garbage collection will reclaim associated resources when the object goes out of scope. Otherwise calling delete() explicitely will help release resources sooner. Don't call any method on a deleted object !</div> </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="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="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="GetPoint_2D-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoint_2D</h4> <pre>public double[] GetPoint_2D(int iPoint)</pre> <div class="block">Fetch a point in line string or a point geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iPoint</code> - the vertex to fetch, from 0 to GetNumPoints()-1, zero for a point.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>an allocated array of 2 doubles to contain the x, y coordinates.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetPoint-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoint</h4> <pre>public double[] GetPoint(int iPoint)</pre> <div class="block">Fetch a point in line string or a point geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iPoint</code> - the vertex to fetch, from 0 to GetNumPoints()-1, zero for a point.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>an allocated array of 3 doubles to contain the x, y, z coordinates.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="CreateFromWkt-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateFromWkt</h4> <pre>public static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> CreateFromWkt(java.lang.String wkt)</pre> <div class="block">Create a geometry object of the appropriate type from it's well known text representation.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wkt</code> - string containing well known text representation of the geometry to be created.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a geometry on succes, or null on error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="CreateFromWkb-byte:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateFromWkb</h4> <pre>public static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> CreateFromWkb(byte[] wkb)</pre> <div class="block">Create a geometry object of the appropriate type from it's well known binary representation.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wkb</code> - input BLOB data.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a geometry on succes, or null on error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="CreateFromGML-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateFromGML</h4> <pre>public static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> CreateFromGML(java.lang.String gml)</pre> <div class="block">Create geometry from GML. <p> This method translates a fragment of GML containing only the geometry portion into a corresponding Geometry. There are many limitations on the forms of GML geometries supported by this parser, but they are too numerous to list here.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>gml</code> - The GML fragment for the geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a geometry on succes, or null on error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="CreateFromJson-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateFromJson</h4> <pre>public static <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> CreateFromJson(java.lang.String json)</pre> <div class="block">Create geometry from GeoJSON.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>json</code> - GeoJSON content</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a geometry on succes, or null on error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ExportToWkb-byte:A-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToWkb</h4> <pre>public int ExportToWkb(byte[] wkbArray, int byte_order)</pre> <div class="block">Convert a geometry into well known binary format. <p> This function relates to the SFCOM IWks::ExportToWKB() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wkbArray</code> - a sufficiently large array (at least WkbSize() large) to receive the wkb content.</dd> <dd><code>byte_order</code> - One of wkbXDR or wkbNDR indicating MSB or LSB byte order respectively.</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="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 a geometry into well known text format. <p> This method relates to the SFCOM IWks::ExportToWKT() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an allocated array of 1 string where the WKT output will be inserted</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Currently 0 is always returned.</dd> </dl> </li> </ul> <a name="ExportToWkb-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToWkb</h4> <pre>public byte[] ExportToWkb(int byte_order)</pre> <div class="block">Convert a geometry into well known binary format. <p> This function relates to the SFCOM IWks::ExportToWKB() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>byte_order</code> - One of wkbXDR or wkbNDR indicating MSB or LSB byte order respectively.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the wkb content</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ExportToWkb--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToWkb</h4> <pre>public byte[] ExportToWkb()</pre> <div class="block">Convert a geometry into well known binary format. <p> This function relates to the SFCOM IWks::ExportToWKB() method. MSB order (wkbXDR) will be used.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the wkb content</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ExportToGML-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToGML</h4> <pre>public java.lang.String ExportToGML(java.util.Vector options)</pre> <div class="block">Convert a geometry into GML format. <p> The GML geometry is expressed directly in terms of GML basic data types assuming the this is available in the gml namespace. The supported options in OGR 1.8.0 are : <ul> <li>FORMAT=GML3. Otherwise it will default to GML 2.1.2 output.</li> <li>GML3_LINESTRING_ELEMENT=curve. (Only valid for FORMAT=GML3) To use gml:Curve element for linestrings. Otherwise gml:LineString will be used .</li> <li>GML3_LONGSRS=YES/NO. (Only valid for FORMAT=GML3) Default to YES. If YES, SRS with EPSG authority will be written with the "urn:ogc:def:crs:EPSG::" prefix. In the case, if the SRS is a geographic SRS without explicit AXIS order, but that the same SRS authority code imported with ImportFromEPSGA() should be treated as lat/long, then the function will take care of coordinate order swapping. If set to NO, SRS with EPSG authority will be written with the "EPSG:" prefix, even if they are in lat/long order.</li> </ul></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>options</code> - a list of strings.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A GML fragment or null in case of error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="ExportToGML--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToGML</h4> <pre>public java.lang.String ExportToGML()</pre> <div class="block">Convert a geometry into GML format. <p> The GML geometry is expressed directly in terms of GML basic data types assuming the this is available in the gml namespace.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A GML fragment or null in case of error.</dd> </dl> </li> </ul> <a name="ExportToKML-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToKML</h4> <pre>public java.lang.String ExportToKML(java.lang.String altitude_mode)</pre> <div class="block">Convert a geometry into KML format.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>altitude_mode</code> - string which will be inserted in-between the <altitude_mode> tag.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A KML fragment or null in case of error.</dd> </dl> </li> </ul> <a name="ExportToKML--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToKML</h4> <pre>public java.lang.String ExportToKML()</pre> <div class="block">Convert a geometry into KML format.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A KML fragment or null in case of error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ExportToJson-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToJson</h4> <pre>public java.lang.String ExportToJson(java.util.Vector options)</pre> <div class="block">Convert a geometry into GeoJSON format.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>options</code> - a list of strings. For now, only COORDINATE_PRECISION=int_number where int_number is the maximum number of figures after decimal separator to write in coordinates.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A GeoJSON fragment or null in case of error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="ExportToJson--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ExportToJson</h4> <pre>public java.lang.String ExportToJson()</pre> <div class="block">Convert a geometry into GeoJSON format.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A GeoJSON fragment or null in case of error.</dd> </dl> </li> </ul> <a name="AddPoint-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddPoint</h4> <pre>public void AddPoint(double x, double y, double z)</pre> <div class="block">Add a point to a geometry (line string or point). <p> The vertex count of the line string is increased by one, and assigned from the passed location value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>x</code> - coordinate of point to add.</dd> <dd><code>y</code> - coordinate of point to add.</dd> <dd><code>z</code> - coordinate of point to add.</dd> </dl> </li> </ul> <a name="AddPoint-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddPoint</h4> <pre>public void AddPoint(double x, double y)</pre> <div class="block">Add a point to a geometry (line string or point). <p> The vertex count of the line string is increased by one, and assigned from the passed location value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>x</code> - coordinate of point to add.</dd> <dd><code>y</code> - coordinate of point to add.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="AddPoint_2D-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddPoint_2D</h4> <pre>public void AddPoint_2D(double x, double y)</pre> <div class="block">Add a point to a geometry (line string or point). <p> The vertex count of the line string is increased by one, and assigned from the passed location value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>x</code> - x coordinate of point to add.</dd> <dd><code>y</code> - y coordinate of point to add.</dd> </dl> </li> </ul> <a name="AddGeometryDirectly-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddGeometryDirectly</h4> <pre>public int AddGeometryDirectly(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Add a geometry directly to the container. <p> Some subclasses of OGRGeometryCollection restrict the types of geometry that can be added, and may return an error. Ownership of the passed geometry is taken by the container rather than cloning as addGeometry() does. <p> There is no SFCOM analog to this method. <p> For a polygon, other must be a linearring. If the polygon is empty, the first added subgeometry will be the exterior ring. The next ones will be the interior rings.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - geometry to add to the container.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if successful, or throws RuntimeException (or an error code if DontUseExceptions() has been called) if the geometry type is illegal for the type of geometry container.</dd> </dl> </li> </ul> <a name="AddGeometry-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddGeometry</h4> <pre>public int AddGeometry(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Add a geometry to the container. <p> Some subclasses of OGRGeometryCollection restrict the types of geometry that can be added, and may return an error. The passed geometry is cloned to make an internal copy. <p> There is no SFCOM analog to this method. <p> For a polygon, other must be a linearring. If the polygon is empty, the first added subgeometry will be the exterior ring. The next ones will be the interior rings.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - geometry to add to the container.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 if successful, or throws RuntimeException (or an error code if DontUseExceptions() has been called) if the geometry type is illegal for the type of geometry container.</dd> </dl> </li> </ul> <a name="Clone--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Clone</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Clone()</pre> <div class="block">Make a copy of this object. <p> This method relates to the SFCOM IGeometry::clone() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new object instance with the same geometry, and spatial reference system as the original.</dd> </dl> </li> </ul> <a name="GetGeometryType--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeometryType</h4> <pre>public int GetGeometryType()</pre> <div class="block">Fetch geometry type. <p> Note that the geometry type may include the 2.5D flag. To get a 2D flattened version of the geometry type apply the wkbFlatten() macro to the return result.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the geometry type code.</dd> </dl> </li> </ul> <a name="GetGeometryName--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeometryName</h4> <pre>public java.lang.String GetGeometryName()</pre> <div class="block">Fetch WKT name for geometry type. <p> There is no SFCOM analog to this method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>name used for this geometry type in well known text format.</dd> </dl> </li> </ul> <a name="Length--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Length</h4> <pre>public double Length()</pre> <div class="block">Returns the length of the geometry</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>length of the geometry</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.8.0</dd> </dl> </li> </ul> <a name="Area--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Area</h4> <pre>public double Area()</pre> <div class="block">Compute geometry area. <p> Computes the area for an OGRLinearRing, OGRPolygon or OGRMultiPolygon. Undefined for all other geometry types (returns zero).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the area or 0.0 for unsupported geometry types.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="GetArea--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetArea</h4> <pre>public double GetArea()</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> <div class="block">Compute geometry area (deprecated).</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#Area--"><code>Area()</code></a></dd> </dl> </li> </ul> <a name="GetPointCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPointCount</h4> <pre>public int GetPointCount()</pre> <div class="block">Fetch number of points from a geometry. <p> Only wkbPoint[25D] or wkbLineString[25D] may return a valid value. Other geometry types will silently return 0.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the number of points.</dd> </dl> </li> </ul> <a name="GetPoints-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoints</h4> <pre>public double[][] GetPoints(int nCoordinateDimension)</pre> <div class="block">Returns all points of a point or a line string. <p> This method returns an array of tuples with the [x,y] or [x,y,z] coordinates pair or triplets. <p> Only wkbPoint[25D] or wkbLineString[25D] may return a valid value. Other geometry types will return null.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>nCoordinateDimension</code> - if nCoordinateDimension == 0 then the number of coordinates per tuple will reflect the coordinate dimension of the geometry. If nCoordinateDimension == 2, the number of coordinates per tuple will be 2. If nCoordinateDimension == 3, the number of coordinates per tuple will be 3.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the coordinates</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="GetPoints--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoints</h4> <pre>public double[][] GetPoints()</pre> <div class="block">Returns all points of a point or a line string. <p> Same as below with nCoordinateDimension == 0</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the coordinates</dd> <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/ogr/Geometry.html#GetPoints-int-"><code>GetPoints(int)</code></a></dd> </dl> </li> </ul> <a name="GetX-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetX</h4> <pre>public double GetX(int ipoint)</pre> <div class="block">Fetch the x coordinate of a point from a geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - point to get the x coordinate. (must be 0 for a point geometry)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the X coordinate of this point.</dd> </dl> </li> </ul> <a name="GetX--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetX</h4> <pre>public double GetX()</pre> <div class="block">Fetch the x coordinate of the first point from a geometry.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the X coordinate of this point.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetY-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetY</h4> <pre>public double GetY(int ipoint)</pre> <div class="block">Fetch the y coordinate of a point from a geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - point to get the y coordinate. (must be 0 for a point geometry)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the Y coordinate of this point.</dd> </dl> </li> </ul> <a name="GetY--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetY</h4> <pre>public double GetY()</pre> <div class="block">Fetch the y coordinate of the first point from a geometry.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the Y coordinate of this point.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetZ-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetZ</h4> <pre>public double GetZ(int ipoint)</pre> <div class="block">Fetch the z coordinate of a point from a geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - point to get the z coordinate. (must be 0 for a point geometry)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the Z coordinate of this point.</dd> </dl> </li> </ul> <a name="GetZ--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetZ</h4> <pre>public double GetZ()</pre> <div class="block">Fetch the z coordinate of the first point from a geometry.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the Z coordinate of this point.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetPoint-int-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoint</h4> <pre>public void GetPoint(int iPoint, double[] argout)</pre> <div class="block">Fetch a point in line string or a point geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iPoint</code> - the vertex to fetch, from 0 to GetNumPoints()-1, zero for a point.</dd> <dd><code>argout</code> - an allocated array of 3 doubles to contain the x, y, z coordinates.</dd> </dl> </li> </ul> <a name="GetPoint_2D-int-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetPoint_2D</h4> <pre>public void GetPoint_2D(int iPoint, double[] argout)</pre> <div class="block">Fetch a point in line string or a point geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iPoint</code> - the vertex to fetch, from 0 to GetNumPoints()-1, zero for a point.</dd> <dd><code>argout</code> - an allocated array of 2 doubles to contain the x, y coordinates.</dd> </dl> </li> </ul> <a name="GetGeometryCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeometryCount</h4> <pre>public int GetGeometryCount()</pre> <div class="block">Fetch the number of elements in a geometry or number of geometries in container. <p> Only geometries of type wkbPolygon[25D], wkbMultiPoint[25D], wkbMultiLineString[25D], wkbMultiPolygon[25D] or wkbGeometryCollection[25D] may return a valid value. Other geometry types will silently return 0. For a polygon, the returned number is the number of rings (exterior ring + interior rings).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the number of elements.</dd> </dl> </li> </ul> <a name="SetPoint-int-double-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetPoint</h4> <pre>public void SetPoint(int ipoint, double x, double y, double z)</pre> <div class="block">Set the location of a vertex in a point or linestring geometry. <p> If ipoint is larger than the number of existing points in the linestring, the point count will be increased to accomodate the request.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - the index of the vertex to assign (zero based) or zero for a point.</dd> <dd><code>x</code> - input X coordinate to assign.</dd> <dd><code>y</code> - input Y coordinate to assign.</dd> <dd><code>z</code> - input Z coordinate to assign (defaults to zero).</dd> </dl> </li> </ul> <a name="SetPoint-int-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetPoint</h4> <pre>public void SetPoint(int ipoint, double x, double y)</pre> <div class="block">Set the location of a vertex in a point or linestring geometry. <p> If ipoint is larger than the number of existing points in the linestring, the point count will be increased to accomodate the request.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - the index of the vertex to assign (zero based) or zero for a point.</dd> <dd><code>x</code> - input X coordinate to assign.</dd> <dd><code>y</code> - input Y coordinate to assign.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="SetPoint_2D-int-double-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetPoint_2D</h4> <pre>public void SetPoint_2D(int ipoint, double x, double y)</pre> <div class="block">Set the location of a vertex in a point or linestring geometry. <p> If ipoint is larger than the number of existing points in the linestring, the point count will be increased to accomodate the request.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ipoint</code> - the index of the vertex to assign (zero based) or zero for a point.</dd> <dd><code>x</code> - input X coordinate to assign.</dd> <dd><code>y</code> - input Y coordinate to assign.</dd> </dl> </li> </ul> <a name="GetGeometryRef-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeometryRef</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> GetGeometryRef(int iSubGeom)</pre> <div class="block">Fetch geometry from a geometry container. <p> This function returns an handle to a geometry within the container. The returned geometry remains owned by the container, and should not be modified. The handle is only valid untill the next change to the geometry container. Use Clone() to make a copy. <p> This function relates to the SFCOM IGeometryCollection::get_Geometry() method. <p> For a polygon, OGR_G_GetGeometryRef(iSubGeom) returns the exterior ring if iSubGeom == 0, and the interior rings for iSubGeom > 0.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>iSubGeom</code> - the index of the geometry to fetch, between 0 and GetGeometryCount() - 1.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>requested geometry.</dd> </dl> </li> </ul> <a name="Simplify-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Simplify</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Simplify(double dTolerance)</pre> <div class="block">Simplify the geometry. <p> This function is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this function will always fail, issuing a CPLE_NotSupported error.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dTolerance</code> - the distance tolerance for the simplification.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the simplified geometry or null if an error occurs.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="SimplifyPreserveTopology-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SimplifyPreserveTopology</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> SimplifyPreserveTopology(double dTolerance)</pre> <div class="block">Simplify the geometry while preserving topology. <p> This function is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this function will always fail, issuing a CPLE_NotSupported error.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dTolerance</code> - the distance tolerance for the simplification.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the simplified geometry or null if an error occurs.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="Boundary--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Boundary</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Boundary()</pre> <div class="block">Compute boundary. <p> A new geometry object is created and returned containing the boundary of the geometry on which the method is invoked. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a newly allocated geometry now owned by the caller, or null on failure.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="GetBoundary--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetBoundary</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> GetBoundary()</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> <div class="block">Compute boundary (deprecated).</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#Boundary--"><code>Boundary()</code></a></dd> </dl> </li> </ul> <a name="ConvexHull--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ConvexHull</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> ConvexHull()</pre> <div class="block">Compute convex hull. <p> A new geometry object is created and returned containing the convex hull of the geometry on which the method is invoked. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a newly allocated geometry now owned by the caller, or null on failure.</dd> </dl> </li> </ul> <a name="Buffer-double-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Buffer</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Buffer(double distance, int quadsecs)</pre> <div class="block">Compute buffer of geometry. <p> Builds a new geometry containing the buffer region around the geometry on which it is invoked. The buffer is a polygon containing the region within the buffer distance of the original geometry. <p> Some buffer sections are properly described as curves, but are converted to approximate polygons. The nQuadSegs parameter can be used to control how many segements should be used to define a 90 degree curve - a quadrant of a circle. A value of 30 is a reasonable default. Large values result in large numbers of vertices in the resulting buffer geometry while small numbers reduce the accuracy of the result. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>distance</code> - the buffer distance to be applied.</dd> <dd><code>quadsecs</code> - the number of segments used to approximate a 90 degree (quadrant) of curvature.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the newly created geometry, or null if an error occurs.</dd> </dl> </li> </ul> <a name="Buffer-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Buffer</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Buffer(double distance)</pre> <div class="block">Compute buffer of geometry. <p> Same as below with quadsecs == 30.</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/ogr/Geometry.html#Buffer-double-int-"><code>Buffer(double distance, int quadsecs)</code></a></dd> </dl> </li> </ul> <a name="Intersection-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Intersection</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Intersection(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Compute intersection. <p> Generates a new geometry which is the region of intersection of the two geometries operated on. The Intersects() method can be used to test if two geometries intersect. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry intersected with "this" geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new geometry representing the intersection or null if there is no intersection or an error occurs.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#Intersects-org.gdal.ogr.Geometry-"><code>Intersects(Geometry)</code></a></dd> </dl> </li> </ul> <a name="Union-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Union</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Union(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Compute union. <p> Generates a new geometry which is the region of union of the two geometries operated on. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry unioned with "this" geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new geometry representing the union or null if an error occurs.</dd> </dl> </li> </ul> <a name="UnionCascaded--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>UnionCascaded</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> UnionCascaded()</pre> <div class="block">Compute union using cascading. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail, issuing a CPLE_NotSupported error.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new geometry representing the union or null if an error occurs.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="Difference-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Difference</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Difference(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Compute difference. <p> Generates a new geometry which is the region of this geometry with the region of the second geometry removed. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry removed from "this" geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new geometry representing the difference or null if the difference is empty or an error occurs.</dd> </dl> </li> </ul> <a name="SymDifference-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SymDifference</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> SymDifference(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Compute symmetric difference. <p> Generates a new geometry which is the symmetric difference of this geometry and the second geometry passed into the method. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a new geometry representing the symmetric difference or null if the difference is empty or an error occurs.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="SymmetricDifference-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SymmetricDifference</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> SymmetricDifference(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> <div class="block">Compute symmetric difference (deprecated).</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#SymDifference-org.gdal.ogr.Geometry-"><code>SymDifference(Geometry)</code></a></dd> </dl> </li> </ul> <a name="Distance-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Distance</h4> <pre>public double Distance(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Compute distance between two geometries. <p> Returns the shortest distance between the two geometries. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry to compare against.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the distance between the geometries or -1 if an error occurs.</dd> </dl> </li> </ul> <a name="Empty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Empty</h4> <pre>public void Empty()</pre> <div class="block">Clear geometry information. <p> This restores the geometry to it's initial state after construction, and before assignment of actual geometry. <p> This method relates to the SFCOM IGeometry::Empty() method.</div> </li> </ul> <a name="IsEmpty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsEmpty</h4> <pre>public boolean IsEmpty()</pre> <div class="block">Returns true (non-zero) if the object has no points. <p> Normally this returns false except between when an object is instantiated and points have been assigned. This method relates to the SFCOM IGeometry::IsEmpty() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if object is empty, otherwise false.</dd> </dl> </li> </ul> <a name="IsValid--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsValid</h4> <pre>public boolean IsValid()</pre> <div class="block">Test if the geometry is valid. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return false.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the geometry has no points, otherwise false.</dd> </dl> </li> </ul> <a name="IsSimple--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsSimple</h4> <pre>public boolean IsSimple()</pre> <div class="block">Test if the geometry is simple. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return false.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the geometry has no points, otherwise false.</dd> </dl> </li> </ul> <a name="IsRing--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>IsRing</h4> <pre>public boolean IsRing()</pre> <div class="block">Test if the geometry is a ring. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always return false.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the geometry has no points, otherwise false.</dd> </dl> </li> </ul> <a name="Intersects-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Intersects</h4> <pre>public boolean Intersects(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Do these features intersect? <p> Determines whether two geometries intersect. If GEOS is enabled, then this is done in rigerous fashion otherwise true is returned if the envelopes (bounding boxes) of the two features overlap. <p> The geom argument may be safely null, but in this case the method will always return true. That is, a null geometry is treated as being everywhere.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the other geometry to test against.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the geometries intersect, otherwise false.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.8.0</dd> </dl> </li> </ul> <a name="Intersect-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Intersect</h4> <pre>public boolean Intersect(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> <div class="block">Do these features intersect?</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/ogr/Geometry.html#Intersects-org.gdal.ogr.Geometry-"><code>Intersects(Geometry)</code></a></dd> </dl> </li> </ul> <a name="Equals-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Equals</h4> <pre>public boolean Equals(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> </li> </ul> <a name="Equal-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Equal</h4> <pre>public boolean Equal(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Returns two if two geometries are equivalent.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if equivalent or false otherwise.</dd> </dl> </li> </ul> <a name="Disjoint-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Disjoint</h4> <pre>public boolean Disjoint(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for disjointness. <p> Tests if this geometry and the other passed into the method are disjoint. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if they are disjoint, otherwise false.</dd> </dl> </li> </ul> <a name="Touches-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Touches</h4> <pre>public boolean Touches(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for touching. <p> Tests if this geometry and the other passed into the method are touching. This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if they are touching, otherwise false.</dd> </dl> </li> </ul> <a name="Crosses-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Crosses</h4> <pre>public boolean Crosses(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for crossing. <p> Tests if this geometry and the other passed into the method are crossing. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if they are crossing, otherwise false.</dd> </dl> </li> </ul> <a name="Within-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Within</h4> <pre>public boolean Within(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for containment. <p> Tests if actual geometry object is within the passed geometry. This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if poOtherGeom is within this geometry, otherwise false.</dd> </dl> </li> </ul> <a name="Contains-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Contains</h4> <pre>public boolean Contains(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for containment. <p> Tests if actual geometry object contains the passed geometry. <p> This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if poOtherGeom contains this geometry, otherwise false</dd> </dl> </li> </ul> <a name="Overlaps-org.gdal.ogr.Geometry-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Overlaps</h4> <pre>public boolean Overlaps(<a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> other)</pre> <div class="block">Test for overlap. <p> Tests if this geometry and the other passed into the method overlap, that is their intersection has a non-zero area. This method is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this method will always fail.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>other</code> - the geometry to compare to this geometry.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if they are overlapping, otherwise false.</dd> </dl> </li> </ul> <a name="TransformTo-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>TransformTo</h4> <pre>public int TransformTo(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> srs)</pre> <div class="block">Transform geometry to new spatial reference system. <p> This method will transform the coordinates of a geometry from their current spatial reference system to a new target spatial reference system. Normally this means reprojecting the vectors, but it could include datum shifts, and changes of units. <p> This method will only work if the geometry already has an assigned spatial reference system, and if it is transformable to the target coordinate system. <p> Because this method requires internal creation and initialization of an CoordinateTransformation object it is significantly more expensive to use this method to transform many geometries than it is to create the CoordinateTransformation in advance, and call transform() with that transformation. This method exists primarily for convenience when only transforming a single geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>srs</code> - spatial reference system to transform to.</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="Transform-org.gdal.osr.CoordinateTransformation-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Transform</h4> <pre>public int Transform(<a href="../../../org/gdal/osr/CoordinateTransformation.html" title="class in org.gdal.osr">CoordinateTransformation</a> ct)</pre> <div class="block">Apply arbitrary coordinate transformation to geometry. <p> This method will transform the coordinates of a geometry from their current spatial reference system to a new target spatial reference system. Normally this means reprojecting the vectors, but it could include datum shifts, and changes of units. <p> Note that this method does not require that the geometry already have a spatial reference system. It will be assumed that they can be treated as having the source spatial reference system of the CoordinateTransformation object, and the actual SRS of the geometry will be ignored. On successful completion the output OGRSpatialReference of the CoordinateTransformation will be assigned to the geometry.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>ct</code> - the transformation to apply.</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="GetSpatialReference--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetSpatialReference</h4> <pre>public <a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> GetSpatialReference()</pre> <div class="block">Returns spatial reference system for object. <p> This method relates to the SFCOM IGeometry::get_SpatialReference() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a reference to the spatial reference object. The object may be shared with many geometry objects, and should not be modified.</dd> </dl> </li> </ul> <a name="AssignSpatialReference-org.gdal.osr.SpatialReference-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AssignSpatialReference</h4> <pre>public void AssignSpatialReference(<a href="../../../org/gdal/osr/SpatialReference.html" title="class in org.gdal.osr">SpatialReference</a> srs)</pre> <div class="block">Assign spatial reference to this object. <p> Any existing spatial reference is replaced, but under no circumstances does this result in the object being reprojected. It is just changing the interpretation of the existing geometry. Note that assigning a spatial reference increments the reference count on the SpatialReference, but does not copy it. This is similar to the SFCOM IGeometry::put_SpatialReference() method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>srs</code> - new spatial reference system to apply.</dd> </dl> </li> </ul> <a name="CloseRings--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CloseRings</h4> <pre>public void CloseRings()</pre> <div class="block">Force rings to be closed. <p> If this geometry, or any contained geometries has polygon rings that are not closed, they will be closed by adding the starting point at the end.</div> </li> </ul> <a name="FlattenTo2D--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>FlattenTo2D</h4> <pre>public void FlattenTo2D()</pre> <div class="block">Convert geometry to strictly 2D. <p> In a sense this converts all Z coordinates to 0.0.</div> </li> </ul> <a name="Segmentize-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Segmentize</h4> <pre>public void Segmentize(double max_length)</pre> <div class="block">Modify the geometry such it has no segment longer then the given distance. <p> Interpolated points will have Z and M values (if needed) set to 0. Distance computation is performed in 2d only</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>max_length</code> - the maximum distance between 2 points after segmentization</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetEnvelope-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetEnvelope</h4> <pre>public void GetEnvelope(double[] argout)</pre> <div class="block">Computes and returns the bounding envelope for this geometry. <p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an allocated array of 4 doubles into which to place the result</dd> </dl> </li> </ul> <a name="GetEnvelope3D-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetEnvelope3D</h4> <pre>public void GetEnvelope3D(double[] argout)</pre> <div class="block">Computes and returns the 3D bounding envelope for this geometry. <p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>argout</code> - an allocated array of 6 doubles into which to place the result</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>OGR 1.9.0</dd> </dl> </li> </ul> <a name="Centroid--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Centroid</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> Centroid()</pre> <div class="block">Compute the geometry centroid. The centroid is not necessarily within the geometry. <p> This method relates to the SFCOM ISurface::get_Centroid() method however the current implementation based on GEOS can operate on other geometry types such as multipoint, linestring, geometrycollection such as multipolygons. OGC SF SQL 1.1 defines the operation for surfaces (polygons). SQL/MM-Part 3 defines the operation for surfaces and multisurfaces (multipolygons). <p> This function is built on the GEOS library, check it for the definition of the geometry operation. If OGR is built without the GEOS library, this function will always fail, issuing a CPLE_NotSupported error.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>point with the centroid location, or null in case of failure</dd> </dl> </li> </ul> <a name="PointOnSurface--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>PointOnSurface</h4> <pre>public <a href="../../../org/gdal/ogr/Geometry.html" title="class in org.gdal.ogr">Geometry</a> PointOnSurface()</pre> </li> </ul> <a name="WkbSize--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WkbSize</h4> <pre>public int WkbSize()</pre> <div class="block">Returns size of related binary representation. <p> This method returns the exact number of bytes required to hold the well known binary representation of this geometry object. Its computation may be slightly expensive for complex geometries. This method relates to the SFCOM IWks::WkbSize() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>size of binary representation in bytes.</dd> </dl> </li> </ul> <a name="GetCoordinateDimension--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetCoordinateDimension</h4> <pre>public int GetCoordinateDimension()</pre> <div class="block">Get the dimension of the coordinates in this object. <p> This method corresponds to the SFCOM IGeometry::GetDimension() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>in practice this always returns 2 indicating that coordinates are specified within a two dimensional space.</dd> </dl> </li> </ul> <a name="SetCoordinateDimension-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetCoordinateDimension</h4> <pre>public void SetCoordinateDimension(int dimension)</pre> <div class="block">Set the coordinate dimension. <p> This method sets the explicit coordinate dimension. Setting the coordinate dimension of a geometry to 2 should zero out any existing Z values. Setting the dimension of a geometry collection will not necessarily affect the children geometries.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dimension</code> - New coordinate dimension value, either 2 or 3.</dd> </dl> </li> </ul> <a name="GetDimension--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetDimension</h4> <pre>public int GetDimension()</pre> <div class="block">Get the dimension of this object. <p> This method corresponds to the SFCOM IGeometry::GetDimension() method. It indicates the dimension of the object, but does not indicate the dimension of the underlying space (as indicated by GetCoordinateDimension()).</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>0 for points, 1 for lines and 2 for surfaces.</dd> </dl> </li> </ul> <a name="ExportToWkt--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ExportToWkt</h4> <pre>public java.lang.String ExportToWkt()</pre> <div class="block">Convert a geometry into well known text format. <p> This method relates to the SFCOM IWks::ExportToWKT() method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the WKT string</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</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/ogr/FieldDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/ogr/GeomFieldDefn.html" title="class in org.gdal.ogr"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/ogr/Geometry.html" target="_top">Frames</a></li> <li><a href="Geometry.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>