EVOLUTION-MANAGER
Edit File: Dataset.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:30 EST 2018 --> <title>Dataset (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="Dataset (GDAL/OGR 1.8.0 Java bindings API)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/gdal/gdal/ColorTable.html" title="class in org.gdal.gdal"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/gdal/Driver.html" title="class in org.gdal.gdal"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/gdal/Dataset.html" target="_top">Frames</a></li> <li><a href="Dataset.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>Constr | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </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.gdal</div> <h2 title="Class Dataset" class="title">Class Dataset</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li><a href="../../../org/gdal/gdal/MajorObject.html" title="class in org.gdal.gdal">org.gdal.gdal.MajorObject</a></li> <li> <ul class="inheritance"> <li>org.gdal.gdal.Dataset</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="typeNameLabel">Dataset</span> extends <a href="../../../org/gdal/gdal/MajorObject.html" title="class in org.gdal.gdal">MajorObject</a></pre> <div class="block">Class Dataset is an uninstanciable class providing various methods to access a set of associated raster bands, usually from one file. <p> The Dataset class is a binding for the C++ <a href="http://gdal.org/classGDALDataset.html">GDALDataset</a> class. <p> A dataset encapsulating one or more raster bands. Details are further discussed in the <a href="http://gdal.org/gdal_datamodel.html#GDALDataset">GDAL Data Model</a>. <p> Dataset objects are returned by methods from other classes, such as gdal.<a href="gdal.html#Open(java.lang.String, int)">Open()</a> or Driver.<a href="Driver.html#Create(java.lang.String, int, int, int, int, java.lang.String[])">Create()</a> / Driver.<a href="Driver.html#CreateCopy(java.lang.String, org.gdal.gdal.Dataset)">CreateCopy()</a></div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#AddBand--">AddBand</a></span>()</code> <div class="block">Add a band to a dataset.</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/gdal/Dataset.html#AddBand-int-">AddBand</a></span>(int datatype)</code> <div class="block">Add a band to a dataset.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#AddBand-int-java.util.Vector-">AddBand</a></span>(int datatype, java.util.Vector options)</code> <div class="block">Add a band to a dataset.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-int:A-">BuildOverviews</a></span>(int[] overviewlist)</code> <div class="block">Build raster overview(s).</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-int:A-org.gdal.gdal.ProgressCallback-">BuildOverviews</a></span>(int[] overviewlist, <a href="../../../org/gdal/gdal/ProgressCallback.html" title="class in org.gdal.gdal">ProgressCallback</a> callback)</code> <div class="block">Build raster overview(s).</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-java.lang.String-int:A-">BuildOverviews</a></span>(java.lang.String resampling, int[] overviewlist)</code> <div class="block">Build raster overview(s).</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-java.lang.String-int:A-org.gdal.gdal.ProgressCallback-">BuildOverviews</a></span>(java.lang.String resampling, int[] overviewlist, <a href="../../../org/gdal/gdal/ProgressCallback.html" title="class in org.gdal.gdal">ProgressCallback</a> callback)</code> <div class="block">Build raster overview(s).</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#CreateMaskBand-int-">CreateMaskBand</a></span>(int nFlags)</code> <div class="block">Adds a mask band to the current band.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#delete--">delete</a></span>()</code> <div class="block">Frees the native resource associated to a Dataset object and close the file.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#FlushCache--">FlushCache</a></span>()</code> <div class="block">Flush all write cached data to disk.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/gdal/Driver.html" title="class in org.gdal.gdal">Driver</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetDriver--">GetDriver</a></span>()</code> <div class="block">Fetch the driver to which this dataset relates.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>java.util.Vector</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetFileList--">GetFileList</a></span>()</code> <div class="block">Fetch files forming dataset.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGCPCount--">GetGCPCount</a></span>()</code> <div class="block">Get number of GCPs.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGCPProjection--">GetGCPProjection</a></span>()</code> <div class="block">Get output projection for GCPs.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>java.util.Vector</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGCPs--">GetGCPs</a></span>()</code> <div class="block">Fetch GCPs.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGCPs-java.util.Vector-">GetGCPs</a></span>(java.util.Vector gcpVector)</code> <div class="block">Fetch GCPs.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>double[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGeoTransform--">GetGeoTransform</a></span>()</code> <div class="block">Fetch the affine transformation coefficients.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetGeoTransform-double:A-">GetGeoTransform</a></span>(double[] geoTransformArray)</code> <div class="block">Fetch the affine transformation coefficients.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetProjection--">GetProjection</a></span>()</code> <div class="block">Fetch the projection definition string for this dataset.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetProjectionRef--">GetProjectionRef</a></span>()</code> <div class="block">Fetch the projection definition string for this dataset.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code><a href="../../../org/gdal/gdal/Band.html" title="class in org.gdal.gdal">Band</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetRasterBand-int-">GetRasterBand</a></span>(int nBandId)</code> <div class="block">Fetch a band object for a dataset.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#getRasterCount--">getRasterCount</a></span>()</code> <div class="block">Fetch the number of raster bands on this dataset.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetRasterCount--">GetRasterCount</a></span>()</code> <div class="block">Fetch the number of raster bands on this dataset.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#getRasterXSize--">getRasterXSize</a></span>()</code> <div class="block">Fetch raster width in pixels.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetRasterXSize--">GetRasterXSize</a></span>()</code> <div class="block">Fetch raster width in pixels.</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#getRasterYSize--">getRasterYSize</a></span>()</code> <div class="block">Fetch raster height in pixels.</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#GetRasterYSize--">GetRasterYSize</a></span>()</code> <div class="block">Fetch raster height in pixels.</div> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-">ReadRaster_Direct</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-">ReadRaster_Direct</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-double:A-int:A-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-float:A-int:A-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-int:A-int:A-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</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/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-short:A-int:A-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list)</code> <div class="block">Read a region of image data from multiple bands.</div> </td> </tr> <tr id="i38" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-">ReadRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Read a region of image data from multiple bands.</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/gdal/Dataset.html#SetGCPs-org.gdal.gdal.GCP:A-java.lang.String-">SetGCPs</a></span>(<a href="../../../org/gdal/gdal/GCP.html" title="class in org.gdal.gdal">GCP</a>[] gcpArray, java.lang.String GCPProjection)</code> <div class="block">Assign GCPs.</div> </td> </tr> <tr id="i40" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#SetGeoTransform-double:A-">SetGeoTransform</a></span>(double[] geoTransformArray)</code> <div class="block">Set the affine transformation coefficients.</div> </td> </tr> <tr id="i41" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#SetProjection-java.lang.String-">SetProjection</a></span>(java.lang.String projection)</code> <div class="block">Set the projection reference string for this dataset.</div> </td> </tr> <tr id="i42" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-">WriteRaster_Direct</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-">WriteRaster_Direct</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-double:A-int:A-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-float:A-int:A-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-int:A-int:A-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-short:A-int:A-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-">WriteRaster</a></span>(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code> <div class="block">Write a region of image data from multiple bands.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.gdal.gdal.MajorObject"> <!-- --> </a> <h3>Methods inherited from class org.gdal.gdal.<a href="../../../org/gdal/gdal/MajorObject.html" title="class in org.gdal.gdal">MajorObject</a></h3> <code><a href="../../../org/gdal/gdal/MajorObject.html#GetDescription--">GetDescription</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadata_Dict--">GetMetadata_Dict</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadata_Dict-java.lang.String-">GetMetadata_Dict</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadata_List--">GetMetadata_List</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadata_List-java.lang.String-">GetMetadata_List</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadataDomainList--">GetMetadataDomainList</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadataItem-java.lang.String-">GetMetadataItem</a>, <a href="../../../org/gdal/gdal/MajorObject.html#GetMetadataItem-java.lang.String-java.lang.String-">GetMetadataItem</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetDescription-java.lang.String-">SetDescription</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.util.Hashtable-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.util.Hashtable-java.lang.String-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.lang.String-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.lang.String-java.lang.String-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.util.Vector-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadata-java.util.Vector-java.lang.String-">SetMetadata</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadataItem-java.lang.String-java.lang.String-">SetMetadataItem</a>, <a href="../../../org/gdal/gdal/MajorObject.html#SetMetadataItem-java.lang.String-java.lang.String-java.lang.String-">SetMetadataItem</a></code></li> </ul> <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>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ 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">Frees the native resource associated to a Dataset object and close the file. <p> This method will delete the underlying C++ object. After it has been called, all native resources will have been destroyed, so it will be illegal (and likely to cause JVM crashes) to use any method on this object or any derived objects, such as Band objects of this Dataset. <p> The delete() method <b>must</b> be called when a dataset has been opened in update or creation mode, otherwise data might not be properly flushed to the disk. You cannot rely on the finalization to call delete().</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../org/gdal/gdal/MajorObject.html#delete--">delete</a></code> in class <code><a href="../../../org/gdal/gdal/MajorObject.html" title="class in org.gdal.gdal">MajorObject</a></code></dd> </dl> </li> </ul> <a name="GetRasterXSize--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetRasterXSize</h4> <pre>public int GetRasterXSize()</pre> <div class="block">Fetch raster width in pixels.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the width in pixels of raster bands in this Dataset.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetRasterYSize--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetRasterYSize</h4> <pre>public int GetRasterYSize()</pre> <div class="block">Fetch raster height in pixels.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the heigt in pixels of raster bands in this Dataset.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetRasterCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetRasterCount</h4> <pre>public int GetRasterCount()</pre> <div class="block">Fetch the number of raster bands on this dataset.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the number of raster bands.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="BuildOverviews-int:A-org.gdal.gdal.ProgressCallback-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>BuildOverviews</h4> <pre>public int BuildOverviews(int[] overviewlist, <a href="../../../org/gdal/gdal/ProgressCallback.html" title="class in org.gdal.gdal">ProgressCallback</a> callback)</pre> <div class="block">Build raster overview(s). <p> Same as below with resampling == "NEAREST"</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/gdal/Dataset.html#BuildOverviews-java.lang.String-int:A-org.gdal.gdal.ProgressCallback-"><code>BuildOverviews(String resampling, int[] overviewlist, ProgressCallback callback)</code></a></dd> </dl> </li> </ul> <a name="BuildOverviews-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>BuildOverviews</h4> <pre>public int BuildOverviews(int[] overviewlist)</pre> <div class="block">Build raster overview(s). <p> Same as below with resampling == "NEAREST" and callback == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-java.lang.String-int:A-org.gdal.gdal.ProgressCallback-"><code>BuildOverviews(String resampling, int[] overviewlist, ProgressCallback callback)</code></a></dd> </dl> </li> </ul> <a name="GetGCPs--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGCPs</h4> <pre>public java.util.Vector GetGCPs()</pre> <div class="block">Fetch GCPs.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>a vector of GCP objects</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="GetGeoTransform--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeoTransform</h4> <pre>public double[] GetGeoTransform()</pre> <div class="block">Fetch the affine transformation coefficients. <p> Same as below, except the geotransform array is returned by the method</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/gdal/Dataset.html#GetGeoTransform-double:A-"><code>GetGeoTransform(double[] geoTransformArray)</code></a>, <a href="../../../org/gdal/gdal/gdal.html#ApplyGeoTransform-double:A-double-double-double:A-double:A-"><code>gdal.ApplyGeoTransform(double[] padfGeoTransform, double dfPixel, double dfLine, double[] pdfGeoX, double[] pdfGeoY)</code></a>, <a href="../../../org/gdal/gdal/gdal.html#InvGeoTransform-double:A-"><code>gdal.InvGeoTransform(double[] gt_in)</code></a></dd> </dl> </li> </ul> <a name="getRasterXSize--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRasterXSize</h4> <pre>public int getRasterXSize()</pre> <div class="block">Fetch raster width in pixels.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the width in pixels of raster bands in this Dataset.</dd> </dl> </li> </ul> <a name="getRasterYSize--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRasterYSize</h4> <pre>public int getRasterYSize()</pre> <div class="block">Fetch raster height in pixels.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the heigt in pixels of raster bands in this Dataset.</dd> </dl> </li> </ul> <a name="getRasterCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRasterCount</h4> <pre>public int getRasterCount()</pre> <div class="block">Fetch the number of raster bands on this dataset.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the number of raster bands.</dd> </dl> </li> </ul> <a name="GetDriver--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetDriver</h4> <pre>public <a href="../../../org/gdal/gdal/Driver.html" title="class in org.gdal.gdal">Driver</a> GetDriver()</pre> <div class="block">Fetch the driver to which this dataset relates.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the driver on which the dataset was created with gdal.Open() or Driver.Create().</dd> </dl> </li> </ul> <a name="GetRasterBand-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetRasterBand</h4> <pre>public <a href="../../../org/gdal/gdal/Band.html" title="class in org.gdal.gdal">Band</a> GetRasterBand(int nBandId)</pre> <div class="block">Fetch a band object for a dataset.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>nBandId</code> - the index number of the band to fetch, from 1 to GetRasterCount().</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the nBandId th band object</dd> </dl> </li> </ul> <a name="GetProjection--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetProjection</h4> <pre>public java.lang.String GetProjection()</pre> <div class="block">Fetch the projection definition string for this dataset. <p> The returned string defines the projection coordinate system of the image in OpenGIS WKT format. It should be suitable for use with the OGRSpatialReference class. <p> When a projection definition is not available an empty (but not null) string is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the projection string.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="http://www.gdal.org/ogr/osr_tutorial.html">OSR tutorial</a></dd> </dl> </li> </ul> <a name="GetProjectionRef--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetProjectionRef</h4> <pre>public java.lang.String GetProjectionRef()</pre> <div class="block">Fetch the projection definition string for this dataset. <p> The returned string defines the projection coordinate system of the image in OpenGIS WKT format. It should be suitable for use with the OGRSpatialReference class. <p> When a projection definition is not available an empty (but not null) string is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the projection string.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="http://www.gdal.org/ogr/osr_tutorial.html">OSR tutorial</a></dd> </dl> </li> </ul> <a name="SetProjection-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetProjection</h4> <pre>public int SetProjection(java.lang.String projection)</pre> <div class="block">Set the projection reference string for this dataset. <p> The string should be in OGC WKT or PROJ.4 format. An error may occur because of incorrectly specified projection strings, because the dataset is not writable, or because the dataset does not support the indicated projection. Many formats do not support writing projections.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>projection</code> - projection reference string.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_Failure if an error occurs, otherwise gdalconst.CE_None.</dd> </dl> </li> </ul> <a name="GetGeoTransform-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGeoTransform</h4> <pre>public void GetGeoTransform(double[] geoTransformArray)</pre> <div class="block">Fetch the affine transformation coefficients. <p> Fetches the coefficients for transforming between pixel/line (P,L) raster space, and projection coordinates (Xp,Yp) space. <p> <pre> Xp = geoTransformArray[0] + P*geoTransformArray[1] + L*geoTransformArray[2]; Yp = geoTransformArray[3] + P*geoTransformArray[4] + L*geoTransformArray[5]; </pre> <p> In a north up image, geoTransformArray[1] is the pixel width, and geoTransformArray[5] is the pixel height. The upper left corner of the upper left pixel is at position (geoTransformArray[0],geoTransformArray[3]). <p> The default transform is (0,1,0,0,0,1) and should be returned even when an error occurs, such as for formats that don't support transformation to projection coordinates. <p> NOTE: GetGeoTransform() isn't expressive enough to handle the variety of OGC Grid Coverages pixel/line to projection transformation schemes. Eventually this method will be depreciated in favour of a more general scheme.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>geoTransformArray</code> - an existing six double array into which the transformation will be placed.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/gdal.html#ApplyGeoTransform-double:A-double-double-double:A-double:A-"><code>gdal.ApplyGeoTransform(double[] padfGeoTransform, double dfPixel, double dfLine, double[] pdfGeoX, double[] pdfGeoY)</code></a>, <a href="../../../org/gdal/gdal/gdal.html#InvGeoTransform-double:A-"><code>gdal.InvGeoTransform(double[] gt_in)</code></a></dd> </dl> </li> </ul> <a name="SetGeoTransform-double:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGeoTransform</h4> <pre>public int SetGeoTransform(double[] geoTransformArray)</pre> <div class="block">Set the affine transformation coefficients. <p> See <a href="#GetGeoTransform(double[])">#GetGeoTransform()</a> for details on the meaning of the geoTransformArray coefficients.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>geoTransformArray</code> - a six double array containing the transformation coefficients to be written with the dataset.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_None on success, or gdalconst.CE_Failure if this transform cannot be written.</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#GetGeoTransform-double:A-"><code>GetGeoTransform(double[] geoTransformArray)</code></a></dd> </dl> </li> </ul> <a name="BuildOverviews-java.lang.String-int:A-org.gdal.gdal.ProgressCallback-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>BuildOverviews</h4> <pre>public int BuildOverviews(java.lang.String resampling, int[] overviewlist, <a href="../../../org/gdal/gdal/ProgressCallback.html" title="class in org.gdal.gdal">ProgressCallback</a> callback)</pre> <div class="block">Build raster overview(s). <p> If the operation is unsupported for the indicated dataset, then gdalconst.CE_Failure is returned, and gdal.GetLastErrorNo() will return gdalconst.CPLE_NotSupported. <p> For example, to build overview level 2, 4 and 8 on all bands the following call could be made: <pre> ds.BuildOverviews( "NEAREST", new int[] { 2, 4, 8 }, null ); </pre></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>resampling</code> - one of "NEAREST", "GAUSS", "AVERAGE", "AVERAGE_MAGPHASE" or "NONE" controlling the downsampling method applied.</dd> <dd><code>overviewlist</code> - the list of overview decimation factors to build.</dd> <dd><code>callback</code> - for reporting progress or null</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_None on success or gdalconst.CE_Failure if the operation doesn't work.</dd> <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/gdal/gdal.html#RegenerateOverviews-org.gdal.gdal.Band-org.gdal.gdal.Band:A-java.lang.String-org.gdal.gdal.ProgressCallback-"><code>gdal.RegenerateOverviews(Band srcBand, Band[] overviewBands, String resampling, ProgressCallback callback)</code></a></dd> </dl> </li> </ul> <a name="BuildOverviews-java.lang.String-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>BuildOverviews</h4> <pre>public int BuildOverviews(java.lang.String resampling, int[] overviewlist)</pre> <div class="block">Build raster overview(s). <p> Same as below with callback == null</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#BuildOverviews-java.lang.String-int:A-org.gdal.gdal.ProgressCallback-"><code>BuildOverviews(String resampling, int[] overviewlist, ProgressCallback callback)</code></a></dd> </dl> </li> </ul> <a name="GetGCPCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGCPCount</h4> <pre>public int GetGCPCount()</pre> <div class="block">Get number of GCPs.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>number of GCPs for this dataset. Zero if there are none.</dd> </dl> </li> </ul> <a name="GetGCPProjection--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGCPProjection</h4> <pre>public java.lang.String GetGCPProjection()</pre> <div class="block">Get output projection for GCPs. <p> The projection string follows the normal rules from <a href="#GetProjectionRef()">GetProjectionRef()</a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>projection string or "" if there are no GCPs.</dd> </dl> </li> </ul> <a name="GetGCPs-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetGCPs</h4> <pre>public void GetGCPs(java.util.Vector gcpVector)</pre> <div class="block">Fetch GCPs. <p> Add to the provided vector the GCPs of the dataset</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>gcpVector</code> - non null Vector object</dd> </dl> </li> </ul> <a name="SetGCPs-org.gdal.gdal.GCP:A-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>SetGCPs</h4> <pre>public int SetGCPs(<a href="../../../org/gdal/gdal/GCP.html" title="class in org.gdal.gdal">GCP</a>[] gcpArray, java.lang.String GCPProjection)</pre> <div class="block">Assign GCPs. <p> This method assigns the passed set of GCPs to this dataset, as well as setting their coordinate system. Internally copies are made of the coordinate system and list of points, so the caller remains resposible for deallocating these arguments if appropriate. <p> Most formats do not support setting of GCPs, even foramts that can handle GCPs. These formats will return CE_Failure.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>gcpArray</code> - array of GCP objects being assigned</dd> <dd><code>GCPProjection</code> - the new OGC WKT coordinate system to assign for the GCP output coordinates. This parameter should be "" if no output coordinate system is known.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_None on success, gdalconst.CE_Failure on failure (including if action is not supported for this format).</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="FlushCache--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>FlushCache</h4> <pre>public void FlushCache()</pre> <div class="block">Flush all write cached data to disk. <p> Any raster (or other GDAL) data written via GDAL calls, but buffered internally will be written to disk. <p> Calling this method is generally not sufficient to ensure that the file is in a consistent state. You <b>must</b> call <a href="#delete()">delete()</a> for that</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#delete--"><code>delete()</code></a></dd> </dl> </li> </ul> <a name="AddBand-int-java.util.Vector-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddBand</h4> <pre>public int AddBand(int datatype, java.util.Vector options)</pre> <div class="block">Add a band to a dataset. <p> This method will add a new band to the dataset if the underlying format supports this action. Except VRT and MEM drivers, most formats do not. <p> Note that the new Band object is not returned. It may be fetched after successful completion of the method by calling ds.GetRasterBand(ds.GetRasterCount()) as the newest band will always be the last band.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>datatype</code> - the data type of the pixels in the new band.</dd> <dd><code>options</code> - a vector of options strings, each being "NAME=VALUE". The supported options are format specific. null may be passed by default.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_None on success or gdalconst.CE_Failure on failure.</dd> </dl> </li> </ul> <a name="AddBand-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddBand</h4> <pre>public int AddBand(int datatype)</pre> <div class="block">Add a band to a dataset. <p> Same as below with options == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#AddBand-int-java.util.Vector-"><code>AddBand(int datatype, java.util.Vector options)</code></a></dd> </dl> </li> </ul> <a name="AddBand--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>AddBand</h4> <pre>public int AddBand()</pre> <div class="block">Add a band to a dataset. <p> Same as below with datatype == gdalconst.GDT_Byte and options == null</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#AddBand-int-java.util.Vector-"><code>AddBand(int datatype, java.util.Vector options)</code></a></dd> </dl> </li> </ul> <a name="CreateMaskBand-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>CreateMaskBand</h4> <pre>public int CreateMaskBand(int nFlags)</pre> <div class="block">Adds a mask band to the current band. <p> The default implementation of the CreateMaskBand() method is implemented based on similar rules to the .ovr handling implemented using the GDALDefaultOverviews object. A TIFF file with the extension .msk will be created with the same basename as the original file, and it will have as many bands as the original image (or just one for GMF_PER_DATASET). The mask images will be deflate compressed tiled images with the same block size as the original image if possible.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_None on success or gdalconst.CE_Failure on an error.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>GDAL 1.5.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="http://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask">RFC 15 - No data bit mask</a></dd> </dl> </li> </ul> <a name="GetFileList--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>GetFileList</h4> <pre>public java.util.Vector GetFileList()</pre> <div class="block">Fetch files forming dataset. <p> Returns a list of files believed to be part of this dataset. If it returns an empty list of files it means there is believed to be no local file system files associated with the dataset (for instance a virtual dataset). <p> The returned filenames will normally be relative or absolute paths depending on the path used to originally open the dataset.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>null or a vector of strings of file names.</dd> </dl> </li> </ul> <a name="ReadRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster_Direct</h4> <pre>public int ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands. <p> This method allows reading a region of one or more Band's from this dataset into a buffer. It automatically takes care of data type translation if the data type (buf_type) of the buffer is different than that of the Band. The method also takes care of image decimation / replication if the buffer size (buf_xsize x buf_ysize) is different than the size of the region being accessed (xsize x ysize). <p> The nPixelSpace, nLineSpace and nBandSpace parameters allow reading into or writing from various organization of buffers. <p> For highest performance full resolution data access, read on "block boundaries" as returned by <a href="Band.html#GetBlockSize(int[], int[])">Band.GetBlockSize(int[], int[])</a>, or use the <a href="Band.html#ReadBlock_Direct(int, int, java.nio.ByteBuffer)">Band.ReadBlock(int, int, java.nio.ByteBuffer)</a> method. <p> When requesting a multi-byte datatype (GDT_Int16, GDT_Int32, GDT_Float32, ...), you should generally set the byte order of the buffer to the native order of the machine with nioBuffer.order(ByteOrder.nativeOrder()) (the default is BIG_ENDIAN) if you use the getShort(), getInt(), getFloat(), ... methods of the ByteBuffer class.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>xoff</code> - The pixel offset to the top left corner of the region of the band to be accessed. This would be zero to start from the left side.</dd> <dd><code>yoff</code> - The line offset to the top left corner of the region of the band to be accessed. This would be zero to start from the top.</dd> <dd><code>xsize</code> - The width of the region of the band to be accessed in pixels.</dd> <dd><code>ysize</code> - The height of the region of the band to be accessed in lines.</dd> <dd><code>buf_xsize</code> - the width of the buffer image into which the desired region is to be read.</dd> <dd><code>buf_ysize</code> - the height of the buffer image into which the desired region is to be read.</dd> <dd><code>buf_type</code> - the type of the pixel values in the nioBuffer data buffer. One of <a href="../gdalconst/gdalconstConstants.html#GDT_Byte">gdalconstConstants.GDT_Byte</a>, <a href="../gdalconst/gdalconstConstants.html#GDT_Int16">gdalconstConstants.GDT_Int16</a>, ... The pixel values will automatically be translated to/from the Band data type as needed.</dd> <dd><code>nioBuffer</code> - The buffer into which the data will be written. This buffer must contain at least buf_xsize * buf_ysize * nBandCount words of type buf_type. It is organized in left to right,top to bottom pixel order. Spacing is controlled by the nPixelSpace, and nLineSpace parameters.</dd> <dd><code>band_list</code> - the list of band numbers being read/written. Note band numbers are 1 based. This may be null to select the first nBandCount bands.</dd> <dd><code>nPixelSpace</code> - The byte offset from the start of one pixel value in the buffer to the start of the next pixel value within a scanline. If defaulted (0) the size of the datatype buf_type is used.</dd> <dd><code>nLineSpace</code> - The byte offset from the start of one scanline in the buffer to the start of the next. If defaulted the size of the datatype buf_type * buf_xsize is used.</dd> <dd><code>nBandSpace</code> - the byte offset from the start of one bands data to the start of the next. If defaulted (zero) the value will be nLineSpace * buf_ysize implying band sequential organization of the data buffer.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_Failure if the access fails, otherwise gdalconst.CE_None.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ReadRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster_Direct</h4> <pre>public int ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-"><code>ReadRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands. <p> This method allows reading a region of one or more Band's from this dataset into a buffer. It automatically takes care of data type translation if the data type (buf_type) of the buffer is different than that of the Band. The method also takes care of image decimation / replication if the buffer size (buf_xsize x buf_ysize) is different than the size of the region being accessed (xsize x ysize). <p> The nPixelSpace, nLineSpace and nBandSpace parameters allow reading into or writing from various organization of buffers. <p> For highest performance full resolution data access, read on "block boundaries" as returned by <a href="Band.html#GetBlockSize(int[], int[])">Band.GetBlockSize(int[], int[])</a>, or use the <a href="Band.html#ReadBlock_Direct(int, int, java.nio.ByteBuffer)">Band.ReadBlock(int, int, java.nio.ByteBuffer)</a> method. <p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>xoff</code> - The pixel offset to the top left corner of the region of the band to be accessed. This would be zero to start from the left side.</dd> <dd><code>yoff</code> - The line offset to the top left corner of the region of the band to be accessed. This would be zero to start from the top.</dd> <dd><code>xsize</code> - The width of the region of the band to be accessed in pixels.</dd> <dd><code>ysize</code> - The height of the region of the band to be accessed in lines.</dd> <dd><code>buf_xsize</code> - the width of the buffer image into which the desired region is to be read.</dd> <dd><code>buf_ysize</code> - the height of the buffer image into which the desired region is to be read.</dd> <dd><code>buf_type</code> - the type of the pixel values in the array. One of <a href="../gdalconst/gdalconstConstants.html#GDT_Byte">gdalconstConstants.GDT_Byte</a>, <a href="../gdalconst/gdalconstConstants.html#GDT_Int16">gdalconstConstants.GDT_Int16</a>, ... The pixel values will automatically be translated to/from the Band data type as needed. The GDAL type must be consistant with the type of the Java array.</dd> <dd><code>array</code> - The array into which the data will be written. This buffer must contain at least buf_xsize * buf_ysize elements * nBandCount . It is organized in left to right,top to bottom pixel order. Spacing is controlled by the nPixelSpace, and nLineSpace parameters.</dd> <dd><code>band_list</code> - the list of band numbers being read/written. Note band numbers are 1 based. This may be null to select the first nBandCount bands.</dd> <dd><code>nPixelSpace</code> - The byte offset from the start of one pixel value in the buffer to the start of the next pixel value within a scanline. If defaulted (0) the size of the datatype buf_type is used.</dd> <dd><code>nLineSpace</code> - The byte offset from the start of one scanline in the buffer to the start of the next. If defaulted the size of the datatype buf_type * buf_xsize is used.</dd> <dd><code>nBandSpace</code> - the byte offset from the start of one bands data to the start of the next. If defaulted (zero) the value will be nLineSpace * buf_ysize implying band sequential organization of the data buffer.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_Failure if the access fails, otherwise gdalconst.CE_None.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands.</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/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-short:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands. <p></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/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-int:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands.</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/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-float:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Read a region of image data from multiple bands.</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/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="ReadRaster-int-int-int-int-int-int-int-double:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>ReadRaster</h4> <pre>public int ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list)</pre> <div class="block">Read a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#ReadRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-"><code>ReadRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster_Direct</h4> <pre>public int WriteRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands. <p> This method allows writing data from a buffer into a region of the Band's. It automatically takes care of data type translation if the data type (buf_type) of the buffer is different than that of the Band. The method also takes care of image decimation / replication if the buffer size (buf_xsize x buf_ysize) is different than the size of the region being accessed (xsize x ysize). <p> The nPixelSpace, nLineSpace and nBandSpace parameters allow reading into or writing from various organization of buffers. <p> For highest performance full resolution data access, write on "block boundaries" as returned by <a href="Band.html#GetBlockSize(int[], int[])">Band.GetBlockSize(int[], int[])</a>, or use the <a href="Band.html#WriteBlock_Direct(int, int, java.nio.ByteBuffer)">Band.WriteBlock(int, int, java.nio.ByteBuffer)</a> method. <p> Before writing into a multi-byte datatype buffer (GDT_Int16, GDT_Int32, GDT_Float32, ...), you should generally set the byte order of the buffer to the native order of the machine with nioBuffer.order(ByteOrder.nativeOrder()) (the default is BIG_ENDIAN) if you use the putShort(), putInt(), putFloat(), ... methods of the ByteBuffer class.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>xoff</code> - The pixel offset to the top left corner of the region of the band to be accessed. This would be zero to start from the left side.</dd> <dd><code>yoff</code> - The line offset to the top left corner of the region of the band to be accessed. This would be zero to start from the top.</dd> <dd><code>xsize</code> - The width of the region of the band to be accessed in pixels.</dd> <dd><code>ysize</code> - The height of the region of the band to be accessed in lines.</dd> <dd><code>buf_xsize</code> - the width of the buffer image from which the desired region is to be written.</dd> <dd><code>buf_ysize</code> - the height of the buffer image from which the desired region is to be written.</dd> <dd><code>buf_type</code> - the type of the pixel values in the nioBuffer data buffer. One of <a href="../gdalconst/gdalconstConstants.html#GDT_Byte">gdalconstConstants.GDT_Byte</a>, <a href="../gdalconst/gdalconstConstants.html#GDT_Int16">gdalconstConstants.GDT_Int16</a>, ... The pixel values will automatically be translated to/from the Band data type as needed.</dd> <dd><code>nioBuffer</code> - The buffer into which the data should be read, or from which it should be written. This buffer must contain at least buf_xsize * buf_ysize * nBandCount words of type buf_type. It is organized in left to right,top to bottom pixel order. Spacing is controlled by the nPixelSpace, and nLineSpace parameters.</dd> <dd><code>band_list</code> - the list of band numbers being read/written. Note band numbers are 1 based. This may be null to select the first nBandCount bands.</dd> <dd><code>nPixelSpace</code> - The byte offset from the start of one pixel value in the buffer to the start of the next pixel value within a scanline. If defaulted (0) the size of the datatype buf_type is used.</dd> <dd><code>nLineSpace</code> - The byte offset from the start of one scanline in the buffer to the start of the next. If defaulted the size of the datatype buf_type * buf_xsize is used.</dd> <dd><code>nBandSpace</code> - the byte offset from the start of one bands data to the start of the next. If defaulted (zero) the value will be nLineSpace * buf_ysize implying band sequential organization of the data buffer.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_Failure if the access fails, otherwise gdalconst.CE_None.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="WriteRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster_Direct</h4> <pre>public int WriteRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster_Direct-int-int-int-int-int-int-int-java.nio.ByteBuffer-int:A-int-int-int-"><code>WriteRaster_Direct(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, java.nio.ByteBuffer nioBuffer, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands. <p> This method allows writing data from a buffer into a region of the Band's. It automatically takes care of data type translation if the data type (buf_type) of the buffer is different than that of the Band. The method also takes care of image decimation / replication if the buffer size (buf_xsize x buf_ysize) is different than the size of the region being accessed (xsize x ysize). <p> The nPixelSpace, nLineSpace and nBandSpace parameters allow reading into or writing from various organization of buffers. <p> For highest performance full resolution data access, write on "block boundaries" as returned by <a href="Band.html#GetBlockSize(int[], int[])">Band.GetBlockSize(int[], int[])</a>, or use the <a href="Band.html#WriteBlock_Direct(int, int, java.nio.ByteBuffer)">Band.WriteBlock(int, int, java.nio.ByteBuffer)</a> method. <p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>xoff</code> - The pixel offset to the top left corner of the region of the band to be accessed. This would be zero to start from the left side.</dd> <dd><code>yoff</code> - The line offset to the top left corner of the region of the band to be accessed. This would be zero to start from the top.</dd> <dd><code>xsize</code> - The width of the region of the band to be accessed in pixels.</dd> <dd><code>ysize</code> - The height of the region of the band to be accessed in lines.</dd> <dd><code>buf_xsize</code> - the width of the buffer image from which the desired region is to be written.</dd> <dd><code>buf_ysize</code> - the height of the buffer image from which the desired region is to be written.</dd> <dd><code>buf_type</code> - the type of the pixel values in the array. One of <a href="../gdalconst/gdalconstConstants.html#GDT_Byte">gdalconstConstants.GDT_Byte</a>, <a href="../gdalconst/gdalconstConstants.html#GDT_Int16">gdalconstConstants.GDT_Int16</a>, ... The pixel values will automatically be translated to/from the Band data type as needed. The GDAL type must be consistant with the type of the Java array.</dd> <dd><code>array</code> - The array from which the data will be read. This buffer must contain at least buf_xsize * buf_ysize elements * nBandCount . It is organized in left to right,top to bottom pixel order. Spacing is controlled by the nPixelSpace, and nLineSpace parameters.</dd> <dd><code>band_list</code> - the list of band numbers being read/written. Note band numbers are 1 based. This may be null to select the first nBandCount bands.</dd> <dd><code>nPixelSpace</code> - The byte offset from the start of one pixel value in the buffer to the start of the next pixel value within a scanline. If defaulted (0) the size of the datatype buf_type is used.</dd> <dd><code>nLineSpace</code> - The byte offset from the start of one scanline in the buffer to the start of the next. If defaulted the size of the datatype buf_type * buf_xsize is used.</dd> <dd><code>nBandSpace</code> - the byte offset from the start of one bands data to the start of the next. If defaulted (zero) the value will be nLineSpace * buf_ysize implying band sequential organization of the data buffer.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>gdalconst.CE_Failure if the access fails, otherwise gdalconst.CE_None.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-short:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-short:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, short[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-int:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-int:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, int[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-float:A-int:A-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-float:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, float[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</pre> <div class="block">Write a region of image data from multiple bands.</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/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-byte:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, byte[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></dd> </dl> </li> </ul> <a name="WriteRaster-int-int-int-int-int-int-int-double:A-int:A-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>WriteRaster</h4> <pre>public int WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list)</pre> <div class="block">Write a region of image data from multiple bands. <p> Same as below with nPixelSpace == 0, nLineSpace == 0 and nBandSpace == 0</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>Java bindings 1.7.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../org/gdal/gdal/Dataset.html#WriteRaster-int-int-int-int-int-int-int-double:A-int:A-int-int-int-"><code>WriteRaster(int xoff, int yoff, int xsize, int ysize, int buf_xsize, int buf_ysize, int buf_type, double[] array, int[] band_list, int nPixelSpace, int nLineSpace, int nBandSpace)</code></a></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/gdal/ColorTable.html" title="class in org.gdal.gdal"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../org/gdal/gdal/Driver.html" title="class in org.gdal.gdal"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/gdal/gdal/Dataset.html" target="_top">Frames</a></li> <li><a href="Dataset.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>Constr | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>