<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GIS Pathway... &#187; Python</title>
	<atom:link href="http://gispathway.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://gispathway.com</link>
	<description>...helping guiding you to success in the world of GIS!</description>
	<lastBuildDate>Tue, 06 Mar 2012 02:57:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Taking advantage of Python in ArcGIS</title>
		<link>http://gispathway.com/2011/05/12/taking-advantage-of-python-in-arcgis/</link>
		<comments>http://gispathway.com/2011/05/12/taking-advantage-of-python-in-arcgis/#comments</comments>
		<pubDate>Fri, 13 May 2011 00:49:59 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[arcpy]]></category>
		<category><![CDATA[ArcToolbox]]></category>
		<category><![CDATA[Buffer]]></category>
		<category><![CDATA[Model Builder]]></category>
		<category><![CDATA[ModelBuilder]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://gispathway.com/?p=2259</guid>
		<description><![CDATA[Python is the next big programming language for ArcGIS. With the addition of the ArcPy module in ArcGIS 10 there is so much more that can be done with Python. In previous version of ArcGIS VBA made is easy to customize the interface and basic processes. At the release of ArcGIS 10.1 VBA will no [...]]]></description>
			<content:encoded><![CDATA[<p>Python is the next big programming language for ArcGIS.  With the addition of the ArcPy module in ArcGIS 10 there is so much more that can be done with Python.  In previous version of ArcGIS<a href="http://gispathway.com/2008/11/10/start-programming-in-gis/" target="_self"> VBA</a> made is easy to customize the interface and basic processes.  At the release of ArcGIS 10.1 VBA will no longer be supported.</p>
<p>So now that Python has been proven as a great tool, who do you begin.  Sure you can start with <a href="www.python.org" target="_blank">www.python.org</a> but the is so much information is on the site you are not sure where to start.  Well, there is a endless source for finding code samples.  Search the <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/" target="_blank">ArcGIS Help Library</a> to find the tool you would like to use.  Then scroll to near the bottom and there is a code sample to use in the <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/0021/002100000017000000.htm" target="_blank">Python Window</a> or as a stand-alone script for that particular tool.</p>
<p>Another  method that saves a lot of time is to use ModelBuilder and create a model for the desired process.  Once you get the model working then <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w00000031000000.htm" target="_blank">export the model as a script</a> (Model &gt; Export &gt; Script).  The output of this export provides a great starting point for expanding on the python code to get the task accomplished.</p>
<p><a href="http://gispathway.com/wp-content/uploads/2011/05/Help_Python.jpg"><img class="alignleft size-full wp-image-2264" title="Help_Python" src="http://gispathway.com/wp-content/uploads/2011/05/Help_Python.jpg" alt="" width="591" height="301" /></a></p>
<p>Here is a quick example from the <a href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/0008/000800000019000000.htm" target="_blank">Buffer tool</a> help document:</p>
<blockquote><p><strong>Python Widnow Script</strong><br />
<code>import arcpy<br />
arcpy.env.workspace = "C:/data"<br />
arcpy.Buffer_analysis("roads", "C:/output/majorrdsBuffered" "100 Feet", "FULL", "ROUND", "LIST", "Distance")</code></p></blockquote>
<blockquote><p><strong>Stand-alone Script</strong><code><br />
# Name: Buffer.py<br />
# Description: Find areas of suitable vegetation which exclude areas heavily impacted by major roads<br />
# Author: ESRI</code></p>
<p># import system modules<br />
import arcpy<br />
from arcpy import env</p>
<p># Set environment settings<br />
env.workspace = &#8220;C:/data/Habitat_Analysis.gdb&#8221;</p>
<p># Select suitable vegetation patches from all vegetation<br />
veg = &#8220;vegtype&#8221;<br />
suitableVeg = &#8220;C:/output/Output.gdb/suitable_vegetation&#8221;<br />
whereClause = &#8220;HABITAT = 1&#8243;<br />
arcpy.Select_analysis(veg, suitableVeg, whereClause)</p>
<p># Buffer areas of impact around major roads<br />
roads = &#8220;majorrds&#8221;<br />
roadsBuffer = &#8220;C:/output/Output.gdb/buffer_output&#8221;<br />
distanceField = &#8220;Distance&#8221;<br />
sideType = &#8220;FULL&#8221;<br />
endType = &#8220;ROUND&#8221;<br />
dissolveType = &#8220;LIST&#8221;<br />
dissolveField = &#8220;Distance&#8221;<br />
arcpy.Buffer_analysis(roads, roadsBuffer, distanceField, sideType, endType, dissolveType, dissolveField)</p>
<p># Erase areas of impact around major roads from the suitable vegetation patches<br />
eraseOutput = &#8220;C:/output/Output.gdb/suitable_vegetation_minus_roads&#8221;<br />
xyTol = &#8220;1 Meters&#8221;<br />
arcpy.Erase_analysis(suitableVeg, roadsBuffer, eraseOutput, xyTol)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://gispathway.com/2011/05/12/taking-advantage-of-python-in-arcgis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBA Code Resources</title>
		<link>http://gispathway.com/2008/11/10/vba-code-resources/</link>
		<comments>http://gispathway.com/2008/11/10/vba-code-resources/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 04:01:38 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[ArcGIS]]></category>
		<category><![CDATA[GIS Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[ArcCatalog]]></category>
		<category><![CDATA[ArcMap]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://gispathway.wordpress.com/?p=694</guid>
		<description><![CDATA[Finding resources for programming with VBA in GIS is a challenging task.  I have search high and low, and still I have found very little resources.  Here is what I have found so far: 1. ArcScripts This the best place to find code.  Since it is maintained by ESRI, there is no larger collected anywhere online. [...]]]></description>
			<content:encoded><![CDATA[<p>Finding resources for programming with VBA in GIS is a challenging task.  I have search high and low, and still I have found very little resources.  Here is what I have found so far:</p>
<h4>1. <a href="http://arcscripts.esri.com">ArcScripts</a></h4>
<p><a href="http://arcscripts.esri.com"></a><span style="font-weight:normal;">This the best place to find code.  Since it is maintained by ESRI, there is no larger collected anywhere online.  The GIS community uplaods various scripts and the site puts them in an easy to search format.  Many programming languages are available.</span></p>
<p><span style="font-weight:normal;">Here are a few of my favorite:</span></p>
<p><span style="font-weight:normal;"><span id="more-52"></span><a href="http://arcscripts.esri.com/details.asp?dbid=12384">Spell Check</a></span></p>
<p><span style="font-weight:normal;"><a href="http://arcscripts.esri.com/details.asp?dbid=14992">Add Text Elements to Layout</a></span></p>
<h4>2. <a href="http://forums.esri.com/forums.asp?c=93&amp;s=992#992">ESRI Support Center User Forums</a></h4>
<p>The ESRI Support Center User Forums has some great coding resources.  Users post their coding problems and other users respond to their problems.  Usually, the final output is a completed block of code that anyone can use.  This link takes you to the most recent posts for VBA.  You can also search the forums for the code that you need.  Including VBA will provide you with better returns.</p>
<h4><span style="font-weight:normal;">3. <a href="http://resources.esri.com/help/9.3/arcgisdesktop/com/vba_start.htm">Customizing ArcGIS Desktop with VBA</a></span></h4>
<p><span style="font-weight:normal;">The ESRI Resource Center is great site to find a good bit of information for programming with VBA.  Although it corresponds with the ArcGIS 9.3 release, there are some excellent benefits that apply to earlier versions.</span></p>
<h4>4. <a href="http://gis.utah.gov/vb">Utah GIS Portal</a></h4>
<p>The Utah GIS Partal is a hidden wealth of information.  Although it does not provide the smae number of scripts the the ESRI website does, it does have some good samples.  In addition to VBA, it also provides code for Python and C#.  Search the other areas of this site to find more GIS resources.</p>
<p>If you know of any good sites, please let me know so that I can update this list.</p>
]]></content:encoded>
			<wfw:commentRss>http://gispathway.com/2008/11/10/vba-code-resources/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

