| 6 | | </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="SwapBytes Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytes.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="BinaryRaster Class" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="ToArcInfoASCIIGrid Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcInfoASCIIGrid.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytes.html?format=raw">SwapBytes Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcInfoASCIIGrid.html?format=raw">ToArcInfoASCIIGrid Method</a> </div><hr /></div></div><h1><tt class="member">ToArcGISRaster</tt> Method</h1><p>Creates an ArcGIS raster from a 2D binary raster.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Method_GeoEco.BinaryRaster.ToArcGISRaster.html?format=raw">ToArcGISRaster</a> method of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.BinaryRaster.html?format=raw">GeoEco.BinaryRaster</a></td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../ArcGISReference/BinaryRaster.ToArcGISRaster.html?format=raw">Binary Raster to ArcGIS Raster</a> geoprocessing tool</td></tr><tr valign="baseline"><td class="metadataTitle">Method type:</td><td class="metadataValue">Classmethod</td></tr></table><h3>Usage</h3><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method">BinaryRaster.ToArcGISRaster</tt></b>(</td><td><var>inputFile</var><var>, outputRaster</var><var>, dataType</var><var>, columnCount</var><var>, rowCount</var><var>, xLowerLeftCorner</var><var>, yLowerLeftCorner</var><var>, cellSize</var><big>[</big><var>, nodataValue</var><big>[</big><var>, swapBytes</var><big>[</big><var>, coordinateSystem</var><big>[</big><var>, buildPyramids</var><big>[</big><var>, overwriteExisting</var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var>)</td></tr></table><h3>Arguments</h3><dl><dt><var>inputFile</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Minimum length:</td><td class="metadataValue">1</td></tr><tr valign="baseline"><td class="metadataTitle">Maximum length:</td><td class="metadataValue">255</td></tr><tr valign="baseline"><td class="metadataTitle">Must exist:</td><td class="metadataValue">Yes</td></tr></table><p>Input binary raster.</p><p>The raster must have two dimensions. The cells must be ordered left-to-right, |
| | 6 | </style></head><body><div class="navigation"><div><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="SwapBytesTable Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytesTable.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="BinaryRaster Class" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="ToArcGISRasterArcGISTable Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcGISRasterArcGISTable.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytesTable.html?format=raw">SwapBytesTable Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcGISRasterArcGISTable.html?format=raw">ToArcGISRasterArcGISTable Method</a> </div><hr /></div></div><h1><tt class="member">ToArcGISRaster</tt> Method</h1><p>Creates an ArcGIS raster from a 2D binary raster.</p><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td class="metadataTitle">Class:</td><td class="metadataValue"><tt class="class"><a href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster</a></tt></td></tr><tr valign="baseline"><td class="metadataTitle">Intended use:</td><td class="metadataValue">Recommended for external callers</td></tr><tr valign="baseline"><td class="metadataTitle">COM:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Method_GeoEco.BinaryRaster.ToArcGISRaster.html?format=raw">ToArcGISRaster</a> method of COM class <a style="font-family: verdana, sans serif; font-size: small;" href="../COMReference/Class_GeoEco.BinaryRaster.html?format=raw">GeoEco.BinaryRaster</a></td></tr><tr valign="baseline"><td class="metadataTitle">ArcGIS:</td><td class="metadataValue">Exposed as the <a style="font-family: verdana, sans serif; font-size: small;" href="../ArcGISReference/BinaryRaster.ToArcGISRaster.html?format=raw">Binary Raster to ArcGIS Raster</a> geoprocessing tool</td></tr><tr valign="baseline"><td class="metadataTitle">Method type:</td><td class="metadataValue">Classmethod</td></tr></table><h3>Usage</h3><table cellpadding="0" cellspacing="0"><tr valign="baseline"><td style="white-space: nowrap;"><b><tt class="method">BinaryRaster.ToArcGISRaster</tt></b>(</td><td><var>inputFile</var><var>, outputRaster</var><var>, dataType</var><var>, columnCount</var><var>, rowCount</var><var>, xLowerLeftCorner</var><var>, yLowerLeftCorner</var><var>, cellSize</var><big>[</big><var>, nodataValue</var><big>[</big><var>, swapBytes</var><big>[</big><var>, coordinateSystem</var><big>[</big><var>, projectedCoordinateSystem</var><big>[</big><var>, resamplingTechnique</var><big>[</big><var>, projectedCellSize</var><big>[</big><var>, clippingRectangle</var><big>[</big><var>, mapAlgebraExpression</var><big>[</big><var>, buildPyramids</var><big>[</big><var>, overwriteExisting</var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var><big>]</big><var></var>)</td></tr></table><h3>Arguments</h3><dl><dt><var>inputFile</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Minimum length:</td><td class="metadataValue">1</td></tr><tr valign="baseline"><td class="metadataTitle">Maximum length:</td><td class="metadataValue">255</td></tr><tr valign="baseline"><td class="metadataTitle">Must exist:</td><td class="metadataValue">Yes</td></tr></table><p>Input binary raster.</p><p>The raster must have two dimensions. The cells must be ordered left-to-right, |
| 62 | | remain undefined.</p></dd></dl><dl><dt><var>buildPyramids</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">bool</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><code>False</code></td></tr></table><p>If True, pyramids will be built for the output raster, which will help |
| 63 | | improve its display speed in the ArcGIS user interface.</p></dd></dl><dl><dt><var>overwriteExisting</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">bool</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><code>False</code></td></tr></table><p>If True, the output raster will be overwritten, if it exists.</p><p>If False, a ValueError will be raised if the output raster exists.</p></dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="SwapBytes Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytes.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="BinaryRaster Class" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="ToArcInfoASCIIGrid Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcInfoASCIIGrid.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytes.html?format=raw">SwapBytes Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcInfoASCIIGrid.html?format=raw">ToArcInfoASCIIGrid Method</a> </div></div></div></body></html> |
| | 62 | remain undefined.</p></dd></dl><dl><dt><var>projectedCoordinateSystem</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt> or <tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Minimum length:</td><td class="metadataValue">1</td></tr></table><p>New coordinate system to project the output raster to.</p><p>The raster may only be projected to a new coordinate system if the |
| | 63 | original projection is defined. An error will be raised if you specify |
| | 64 | a new coordinate system without defining the original coordinate |
| | 65 | system. The ArcGIS Project Raster tool is used to perform |
| | 66 | the projection.</p></dd></dl><dl><dt><var>resamplingTechnique</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt> or <tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Allowed values:</td><td class="metadataValue"><code>u'NEAREST'</code>, <code>u'BILINEAR'</code>, <code>u'CUBIC'</code></td></tr></table><p>The resampling algorithm to be used to project the original raster |
| | 67 | to a new coordinate system. The ArcGIS Project Raster tool is used to |
| | 68 | perform the projection and accepts the following values:</p><ul><li>NEAREST - nearest neighbor interpolation</li><li>BILINEAR - bilinear interpolation</li><li>CUBIC - cubic convolution</li></ul><p>You must specify one of these algorithms to project to a new |
| | 69 | coordinate system. An error will be raised if you specify a new |
| | 70 | coordinate system without selecting an algorithm.</p></dd></dl><dl><dt><var>projectedCellSize</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">float</tt> or <tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><tt class="class">None</tt></td></tr></table><p>The cell size of the projected coordinate system.</p></dd></dl><dl><dt><var>clippingRectangle</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt> or <tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Minimum length:</td><td class="metadataValue">1</td></tr></table><p>Rectangle to which the raster should be clipped.</p><p>If a projected coordinate system was specified, the clipping is |
| | 71 | performed after the projection and the rectangle's coordinates should |
| | 72 | be specified in the new coordinate system. If no projected coordinate |
| | 73 | system was specified, the coordinates should be specified in the |
| | 74 | original coordinate system.</p><p>The ArcGIS Clip tool is used to perfom the clip. The clipping |
| | 75 | rectangle must be passed to this function as a string of four numbers |
| | 76 | separated by spaces. The ArcGIS user interface automatically formats |
| | 77 | the string properly; when invoking this function from the ArcGIS UI, |
| | 78 | you need not worry about the format. But when invoking it |
| | 79 | programmatically, take care to provide a properly-formatted string. |
| | 80 | The numbers are ordered LEFT, BOTTOM, RIGHT, TOP. For example, if the |
| | 81 | raster is in a geographic coordinate system, it may be clipped to 10 |
| | 82 | W, 15 S, 20 E, and 25 N with the string:</p><p>10 15 20 25</p><p>Integers or decimal numbers may be provided.</p></dd></dl><dl><dt><var>mapAlgebraExpression</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">unicode</tt> or <tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><tt class="class">None</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Minimum length:</td><td class="metadataValue">1</td></tr><tr valign="baseline"><td class="metadataTitle">Maximum length:</td><td class="metadataValue">4000</td></tr></table><p>Map algebra expression to execute on the output raster.</p><p>The expression is executed after the converted raster is projected and |
| | 83 | clipped (if those options are specified). Use the case-sensitive |
| | 84 | string inputRaster to represent the raster that you now want to |
| | 85 | perform map algebra upon. For example, to convert the raster to an |
| | 86 | integer raster and add 1 to all of the cells, use this expression:</p><div class="verbatim"><pre xml:space="preserve">int(inputRaster) + 1</pre></div><p>The string inputRaster is case-sensitive. Prior to executing the map |
| | 87 | algebra expression, the string is replaced with the path to a |
| | 88 | temporary raster that represents the output raster being generated. |
| | 89 | The final expression must be less than 4000 characters long or ArcGIS |
| | 90 | will report an error.</p><p>The ArcGIS Multi Output Map Algebra tool is used to execute the map |
| | 91 | algebra expression. You must have a license for the ArcGIS Spatial |
| | 92 | Analyst extension in order to perform map algebra.</p></dd></dl><dl><dt><var>buildPyramids</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">bool</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><code>False</code></td></tr></table><p>If True, pyramids will be built for the output raster, which will |
| | 93 | help improve its display speed in the ArcGIS user interface. This is |
| | 94 | the last step performed in post-conversion processing.</p></dd></dl><dl><dt><var>overwriteExisting</var></dt><dd><table cellpadding="0" cellspacing="0" style="margin-top: 1.0em;"><tr valign="baseline"><td class="metadataTitle">Python type:</td><td class="metadataValue"><tt class="class">bool</tt></td></tr><tr valign="baseline"><td class="metadataTitle">Default value:</td><td class="metadataValue"><code>False</code></td></tr></table><p>If True, the output raster will be overwritten, if it exists.</p><p>If False, a ValueError will be raised if the output raster exists.</p></dd></dl><div class="navigation"><div class="online-navigation"><p></p><hr /><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class="online-navigation"><a title="SwapBytesTable Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytesTable.html?format=raw"><img src="previous.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Previous Page" /></a></td><td class="online-navigation"><a title="BinaryRaster Class" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw"><img src="up.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Up one Level" /></a></td><td class="online-navigation"><a title="ToArcGISRasterArcGISTable Method" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcGISRasterArcGISTable.html?format=raw"><img src="next.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Next Page" /></a></td><td align="center" width="100%">GeoEco Python Reference</td><td class="online-navigation"><a title="Table of Contents" href="TableOfContents.html?format=raw"><img src="contents.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Table of Contents" /></a></td><td class="online-navigation"><a title="Module Index" href="ModuleIndex.html?format=raw"><img src="modules.png?format=raw" border="0" align="bottom" height="32" width="32" alt="Module Index" /></a></td><td class="online-navigation"><img src="blank.png?format=raw" border="0" align="bottom" height="32" width="32" alt="" /></td></tr></table><div class="online-navigation"><b class="navlabel">Previous:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.SwapBytesTable.html?format=raw">SwapBytesTable Method</a> <b class="navlabel">Up:</b> <a class="sectref" href="Class_GeoEco.DataManagement.BinaryRasters.BinaryRaster.html?format=raw">BinaryRaster Class</a> <b class="navlabel">Next:</b> <a class="sectref" href="Method_GeoEco.DataManagement.BinaryRasters.BinaryRaster.ToArcGISRasterArcGISTable.html?format=raw">ToArcGISRasterArcGISTable Method</a> </div></div></div></body></html> |