<?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>ArcView Network Analyst</title>
	<atom:link href="http://www.husdal.com/arc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.husdal.com/arc</link>
	<description>A Tutorial</description>
	<lastBuildDate>Sun, 02 Aug 2009 18:25:47 +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>01 Introduction</title>
		<link>http://www.husdal.com/arc/2008/06/25/01-introduction/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/01-introduction/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 14:13:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=114</guid>
		<description><![CDATA[<p>ARCVIEW NETWORK ANALYST</p> <p>The ArcView Network Analyst extension module allows the user to solve 3 categories of network analysis problems; Find Best Route, Find Closest Facility and Find Service Area. If you need to conduct more complex analyses than these 3 default options available, you can do this using Avenue scripts.</p> <p></p> <p>Find Best [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ARCVIEW NETWORK ANALYST</strong></p>
<p>The ArcView Network Analyst extension module allows the user to solve 3 categories of network analysis problems; Find Best Route, Find Closest Facility and Find Service Area. If you need to conduct more complex analyses than these 3 default options available, you can do this using Avenue scripts.</p>
<p><img class="alignnone size-full wp-image-184" src="http://arcviewnetworkanalyst.files.wordpress.com/2008/06/arcview2wp.jpg" alt="" width="450" height="338" /></p>
<p>Find Best Route problems involve finding the &#8220;least cost impedance&#8221; path on the network between two or more stops. Find Closest Facility pertains to finding the distances from an event to the nearest facilities, or vice versa, finding the distance from a facility to one or more events. Find Service Area determines the area that a particular facility can serve within a given time or cost frame.</p>
<p>This tutorial comes complete with exercise data and solutions. You can to find the download link for the data and the solution to the exercises in the menu bar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/01-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>02 Network Modelling</title>
		<link>http://www.husdal.com/arc/2008/06/25/02-network-modelling/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/02-network-modelling/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 14:10:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[network modelling]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=117</guid>
		<description><![CDATA[<p>The basic network model is made up of links (arc segments) that have an associated attribute known as the impedance. The impedance represents the cost of travelling over the link or the measure of resistance to movement of goods through the link. Network centers or facilities represent locations, which either distribute resources, such as [...]]]></description>
			<content:encoded><![CDATA[<p>The basic network model is made up of links (arc segments) that have an associated attribute known as the impedance. The impedance represents the cost of travelling over the link or the measure of resistance to movement of goods through the link. Network centers or facilities represent locations, which either distribute resources, such as a pizza bakery, or attract resources, such as a store or school. Any place on the network in which resources get picked up or dropped off is referred to as a stop. However, facilities are associated with events, not stops</p>
<p>Networks typically have rules about how objects move through them. For example, left turns may be prohibited at certain intersections and bridges may be closed for repairs. Networks are often a combination of one-way and two-way streets, with multiple lanes going in different directions, and some roads will have speed limits imposed. Arcview Network Analyst allows you to model this as close to reality as possible.</p>
<p>The following rules* can be modeled in Arcview Network Analyst:</p>
<p><strong>Travel cost</strong>:<br />
The average cost of traversing a link, modeled as distance, time or any other cost unit.</p>
<p><strong>One-way streets</strong>:<br />
Streets that can be traveled in one direction only.</p>
<p><strong>Turns</strong>:<br />
Turns that are not allowed, i.e. left, right, straight or U-turn at an intersection, or turns that are more &#8220;expensive&#8221; in terms of travel cost, i.e. left turns at intersections.</p>
<p><strong>Over- and underpasses</strong>:<br />
A street that passes over or under another street, such that you cannot make a turn onto the road you are passing over or passing under.</p>
<p><strong>Closed streets</strong>:<br />
Streets currently closed to traffic or certain types of streets to avoid.</p>
<p>*You can actually model a lot more, but that requires the use of Avenue scripts. This page focuses on the basic Arcview Network Analyst functions only.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/02-network-modelling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>03 Network Analysis Basics</title>
		<link>http://www.husdal.com/arc/2008/06/25/03-network-analysis-basics/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/03-network-analysis-basics/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:57:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[cost matrix]]></category>
		<category><![CDATA[topology]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=122</guid>
		<description><![CDATA[<p>To perform a network analysis using Arcview Network Analyst, a road theme must be present in your View window:</p> <p>Make the View window active,View &#62; Add Theme &#62; Select slcroads.shp Repeat this for the following themes: facilities.shp, events.shp, stops.shp</p> <p>The first time you perform a network analysis on a line theme, Arcview Network Analyst [...]]]></description>
			<content:encoded><![CDATA[<p>To perform a network analysis using Arcview Network Analyst, a road theme must be present in your View window:</p>
<p>Make the View window active,<br />View &gt; Add Theme &gt; Select slcroads.shp <br />Repeat this for the following themes: facilities.shp, events.shp, stops.shp</p>
<p>The first time you perform a network analysis on a line theme, Arcview Network Analyst will build the topology, create a cost matrix and then run the analysis. In a large network, this may take some time. The next time you run an analysis on the same network, the topology is then already present, and the analysis runs much quicker. However, as soon as you edit the theme attribute table, Arcview Network Analyst will have to rebuild the topology again before running any analysis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/03-network-analysis-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>04 Route</title>
		<link>http://www.husdal.com/arc/2008/06/25/04-route/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/04-route/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:48:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[find best route]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[selecting stops]]></category>
		<category><![CDATA[setting restrictions]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=126</guid>
		<description><![CDATA[<p>Download data first!</p> <p>FIND BEST ROUTE With the slcroads.shp theme active, Network &#62; Find Best Route</p> <p>Arcview Network Analyst now adds a route theme to your view and presents you with a new dialog box.</p> <p></p> <p>You now have two options to add the stops for which you want to calculate a route, either [...]]]></description>
			<content:encoded><![CDATA[<p>Download data first!</p>
<p><strong>FIND BEST ROUTE </strong><br />
With the slcroads.shp theme active,<br />
Network &gt; Find Best Route</p>
<p>Arcview Network Analyst now adds a route theme to your view and presents you with a new dialog box.</p>
<p><img class="alignnone size-full wp-image-74" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/route.jpg" alt="" width="389" height="226" /></p>
<p>You now have two options to add the stops for which you want to calculate a route, either by interactively selecting stops graphically from the view, or by loading a point theme that holds the stops. First, let&#8217;s try to select them graphically.</p>
<p><span class="normalb"><strong>SELECTING STOPS INTERACTIVELY</strong></span><br />
Click the Add Location icon in the menu bar:</p>
<p><img src="http://husdal.typepad.com/blog/images/2007/09/05/add_location_4.jpg" border="0" alt="Add_location_4" width="30" height="25" /><a href="http://husdal.typepad.com/.shared/image.html?/photos/uncategorized/2007/09/05/add_location.jpg"> </a></p>
<p>Then click in the view to select stops.</p>
<p>These are added to the dialog box as you click them.</p>
<p>You can change the order of stops by highlighting (clicking) them, and then use the arrow buttons; you can also delete stops by clicking the delete &#8220;X&#8221; button. In addition you can use the check boxes to choose whether you want Arcview Network Analyst to find the best order of stops, and/or whether you want to return to the origin (the first stop in the list). Properties allows you to choose the shortest path based on shortest distance (default) or least cost (minutes or other cost units).</p>
<p>Just add a couple of stops, then click the Solve icon:</p>
<p><img src="http://husdal.typepad.com/blog/images/2007/09/05/solve.jpg" border="0" alt="Solve" width="30" height="31" /></p>
<p>Arcview Network Analyst will now build the topology and run the analysis. Be patient! When done, Arcview Network Analyst will add a display the route in your window.</p>
<p>Click Directions.</p>
<p>This gives you turn-by-turn directions for the entire route.</p>
<p>Click Done.</p>
<p>With the dialog box still open, check the Find best order box, then click the Solve icon again.<br />
Did the route change?</p>
<p>With the dialog box still open, click Properties, select Minutes as your Cost field, click OK, click the Find Solve icon. Did the route change?</p>
<p>If you want to save the different alternatives as different routes, you need to save them separately:</p>
<p>Make the calculated route active in the View window.<br />
Theme &gt; Convert to Shapefile &gt; Select a name and a folder &gt; Accept to add the theme to the view.</p>
<p>When done running and saving the different alternatives you want to display, delete the default route theme:</p>
<p>Make the default route theme active,<br />
Edit &gt; Delete Theme</p>
<p><strong>SELECTING STOPS FROM A STOPS THEME</strong><br />
Make the road theme active,<br />
Network &gt; Find Best Route &gt; Load Stops &gt; Select stops.shp .<br />
Try the same variations as before.</p>
<p><strong><span class="normalb">SETTING RESTRICTIONS </span></strong><br />
If you select one (or more) arc(s) prior to Solve, this prohibits travel on this arc. Try it out! This is an easy way to model restrictions without editing the attribute table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/04-route/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>05 Service area</title>
		<link>http://www.husdal.com/arc/2008/06/25/05-service-area/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/05-service-area/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:45:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[selecting centers]]></category>
		<category><![CDATA[selecting events]]></category>
		<category><![CDATA[service area]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=129</guid>
		<description><![CDATA[<p>SELECTING CENTERS INTERACTIVELY</p> <p>Make the road theme active, Network &#62; Find Service Area</p> <p>Arcview Network Analyst now adds a service area and service network theme to your view and a similar dialog box as for</p> <p>Find Best Route appears.</p> <p></p> <p>As before, you can select one or more centers interactively. Choose the cost units; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SELECTING CENTERS INTERACTIVELY</strong></p>
<p>Make the road theme active,<br />
<strong>Network &gt; Find Service Area</strong></p>
<p>Arcview Network Analyst now adds a service area and service network theme to your view and a similar dialog box as for</p>
<p>Find Best Route appears.</p>
<p><img class="alignnone size-full wp-image-76" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/servicearea.jpg" alt="" width="389" height="226" /></p>
<p>As before, you can select one or more centers interactively. Choose the <strong>cost units</strong>; use the default distance, or use <strong>Properties</strong> to set your units. Then enter the <strong>cutoff value</strong> for the service area. You can do a <strong>stepwise analysis</strong> to see what areas are covered within a certain distance/cost. If the network has differing to-from directions and costs, select the <strong>direction of travel</strong>.</p>
<p><strong>SELECTING CENTERS FROM A THEME</strong><br />
Make the road theme active,<br />
<strong>Network &gt; Find Service Area</strong></p>
<p>Select <strong>Load Sites</strong> &gt; Select sites.shp<br />
Run analysis as above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/05-service-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>06 Facilities and events</title>
		<link>http://www.husdal.com/arc/2008/06/25/06-facilities-and-events/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/06-facilities-and-events/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:42:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[facilities]]></category>
		<category><![CDATA[find closest event]]></category>
		<category><![CDATA[find closest facility]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=135</guid>
		<description><![CDATA[<p>SELECTING FACILITIES INTERACTIVELY </p> <p>Make the road theme active, Network &#62; Find Closest Facility</p> <p>Arcview Network Analyst now adds a facility theme to your view and a similar dialog box as for Find Best Route appears. </p> <p>Select facilities.shp from the Facilities drop-down list.</p> <p>The number of facilities to find is the number of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SELECTING FACILITIES INTERACTIVELY </strong></p>
<p>Make the road theme active,<br />
Network &gt; Find Closest Facility</p>
<p>Arcview Network Analyst now adds a facility theme to your view and a similar dialog box as for Find Best Route appears.<br />
<img class="alignnone size-full wp-image-81" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/facilities.jpg" alt="" width="437" height="237" /></p>
<p>Select facilities.shp from the Facilities drop-down list.</p>
<p>The number of facilities to find is the number of nearest facilities to the event that you wish to find. If you for example are looking for the nearest ATM to your current location and your facilities list contains 200 ATMs, you would probably only the nearest 5 or so.</p>
<p>The cutoff-cost is the distance/cost where you want the search to stop. This is as far as you want to travel in search for the facility. Select the Properties button if you want to change the cutoff-cost from the default distance units to your specific cost units, for example minutes. Leave this line empty or enter a value.</p>
<p>If you have a directional network, where the cost of travel differs depending on which direction you are traveling in along the arc, select Traveling to/from event as appropriate. For example, if the facilities are hospitals, and the events are accidents, you can then analyze whether it is faster to travel to a given hospital from the accident, or whether it is faster to travel from a different hospital to the accident scene. This may be the case if there are restricted turns and roads depending on which direction you are traveling in. If the cost of traveling is independent of the direction, either choice is valid.</p>
<p>Click the Add Location icon to add an event and click the view to place your event where you want it to be.<br />
Click the Solve icon.</p>
<p>After solving, the dialog box now displays the distance/cost to the number of facilities that are within the search radius. Select a particular facility to see it highlighted in the view.</p>
<p><strong>SELECTING EVENTS FROM AN EVENT THEME</strong><br />
In the dialog box above, select Load Events, select the events file events.shp that you have already loaded into your view, then select the desired event from the drop-down list. Click the Solve icon.</p>
<p>Tip: If you would like to know the distance from one or more facilities to all individual events, simply reverse the input: Enter events instead of the facilities, and enter facilities where the events should be.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/06-facilities-and-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>07 Building a Network</title>
		<link>http://www.husdal.com/arc/2008/06/25/07-building-a-network/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/07-building-a-network/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:39:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=137</guid>
		<description><![CDATA[<p>SETTING UP A ROAD NETWORK </p> <p>Unfortunately, you cannot expect the network to be fully prepared for you every time you do a network analysis. There&#8217;s a lot of work behind the scenes before you can actually perform a network analysis. This includes setting the travel cost for each arc, defining directions and one-way [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SETTING UP A ROAD NETWORK</strong> </p>
<p>Unfortunately, you cannot expect the network to be fully prepared for you every time you do a network analysis. There&#8217;s a lot of work behind the scenes before you can actually perform a network analysis. This includes setting the travel cost for each arc, defining directions and one-way streets, managing restricted turns and most important, address matching.</p>
<p>First, add the nonetwork road theme to your view. The roads look the same as before, but they lack much of the necessary network information.</p>
<p>You can still perform a network analysis with just this line theme present. However, the default cost then is equal to distance traveled. There are no directional restrictions (you may go the wrong way down a one way street, or use the wrong side on the freeway, and turn wherever you want). Routing by address is also more difficult, albeit possible, since you can always select your stops graphically at the approximate position, if you have enough local knowledge to know where you are in the view.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/07-building-a-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>08 Network Index</title>
		<link>http://www.husdal.com/arc/2008/06/25/08-network-index/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/08-network-index/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:36:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[avenue]]></category>
		<category><![CDATA[fjunction]]></category>
		<category><![CDATA[tjunction]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=140</guid>
		<description><![CDATA[<p>NETWORK INDEX A network index directory, also known as NetworkDB, is a directory containing indexes for the network data on which you&#8217;re performing analysis. These indexes contain connectivity information for your network, and are automatically created and maintained by the Network Analyst the first time you solve a network problem. To set up your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>NETWORK INDEX</strong><br />
A network index directory, also known as NetworkDB, is a directory containing indexes for the network data on which you&#8217;re performing analysis. These indexes contain connectivity information for your network, and are automatically created and maintained by the Network Analyst the first time you solve a network problem. To set up your network connectivity properly you need to access this index directory and copy it to your road theme. This is done with an Avenue script. Important: You can perform network analysis without this step, but you will not be able to set travel costs, restricted turns or directions, see the sections below.</p>
<p>With the Project view active,<br />
Scroll down and click on Scripts &gt; Click New</p>
<p>Copy and Paste this script to the script window in ArcView (Use CTRL+V to paste):</p>
<p class="subnormal">&#8216; This script copies over node numbers from nodes.dbf and adds record<br />
&#8216; numbers to the line theme feature table. It adds fields called RECORD#,<br />
&#8216; FJUNCTION, and TJUNCTION to the line theme feature table. A network<br />
&#8216; index directory must exist for the network theme before running this<br />
&#8216; script.</p>
<p class="subnormal">&#8216; Get the view and the network theme. Substitute aViewName for the name<br />
&#8216; of your view, and aThemeName for the name of your network theme.<br />
&#8216;<br />
aView = av.GetProject.FindDoc(&#8220;VIEW_NAME_HERE&#8221;)</p>
<p class="subnormal">aNetworkTheme = aView.FindTheme(&#8220;THEME_NAME_HERE&#8221;)<br />
aNetworkThemeFTab = aNetworkTheme.GetFTab</p>
<p class="subnormal">&#8216; Get the nodes.dbf file, make the VTab object, and get its fields<br />
&#8216;<br />
aNetworkIndexDir = aNetworkTheme.AsString.Substitute(&#8220;shp&#8221;,&#8221;nws&#8221;)<br />
aNodeFile = FN.Merge(aNetworkIndexDir, &#8220;nodes.dbf&#8221;)<br />
aNodeVTab = VTab.Make(aNodeFile, false, false)<br />
aFjunction = aNodeVTab.FindField(&#8220;Fjunction&#8221;)<br />
aTjunction = aNodeVTab.FindField(&#8220;Tjunction&#8221;)</p>
<p class="subnormal">&#8216; Add Record#, Fjunction, Tjunction fields to network theme FTab</p>
<p class="subnormal">&#8216;<br />
aRecordField = Field.Make(&#8220;Record#&#8221;,#FIELD_LONG,12,0)<br />
aFjunctionField = Field.Make(&#8220;Fjunction&#8221;,#FIELD_LONG,12,0)<br />
aTjunctionField = Field.Make(&#8220;Tjunction&#8221;,#FIELD_LONG,12,0)<br />
aFieldList = {aRecordField,aFjunctionField,aTjunctionField}<br />
aNetworkThemeFTab.SetEditable(True)<br />
aNetworkThemeFTab.AddFields(aFieldList)</p>
<p class="subnormal">&#8216; Use nodes.dbf to populate Rec#, Fjunction, Tjunction<br />
&#8216;<br />
Count = 0<br />
for each r in aNetworkThemeFTab<br />
aFromNodeNumber = aNodeVTab.ReturnValueNumber(aFjunction,Count)</p>
<p class="subnormal">aToNodeNumber = aNodeVTab.ReturnValueNumber(aTjunction,Count)<br />
aNetworkThemeFTab.SetValueNumber(aFjunctionField,r,aFromNodeNumber)<br />
aNetworkThemeFTab.SetValueNumber(aTjunctionField,r,aToNodeNumber)<br />
Count = Count + 1<br />
aNetworkThemeFTab.SetValueNumber(aRecordField,r,Count)<br />
end</p>
<p><span class="subnormal">aNetworkThemeFTab.SetEditable(False)</span></p>
<p>Replace<br />
<span class="subnormal">aView = av.GetProject.FindDoc(&#8220;aViewName&#8221;)</span><br />
with<br />
<span class="subnormal">aView = av.GetProject.FindDoc(&#8220;View1&#8243;)</span> or the name that you have given the view.<br />
Replace<br />
<span class="subnormal">aNetworkTheme = aView.FindTheme(&#8220;aThemeName&#8221;) </span><br />
with<br />
<span class="subnormal">aNetworkTheme = aView.FindTheme(&#8220;nonetwork&#8221;)</span> or the name that you have given the theme.</p>
<p>Click <strong>Script &gt; Compile</strong>; then <strong>Script &gt; Run</strong></p>
<p>Upon completion, the following fields have now been added to your road theme, see the attribute table: <strong>Record#</strong>,<strong> Fjunction</strong>, <strong>Tjunction</strong>.</p>
<p><img class="alignnone size-full wp-image-179" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/copynodes.gif" alt="" width="424" height="401" /></p>
<p>Record# is the arc# that ArcView uses for network analysis, FJunction is the from-node and TJunction is the to-node, meaning arc # runs from node # to node #. Mind you, this is not the same as allowed travel direction; it&#8217;s just the topological ordering that was employed by ArcView when the network index was created.</p>
<p>If you accidentally delete the script from your project, you can retrieve it again from the ArcView Help documentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/08-network-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>09 Travel cost</title>
		<link>http://www.husdal.com/arc/2008/06/25/09-travel-cost/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/09-travel-cost/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:29:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[average travel time to traverse link]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=142</guid>
		<description><![CDATA[<p>CALCULATING TRAVEL COST</p> <p>Travel cost is the average cost of traveling along a link. By default this is distance, i.e. the length of the link. However, you can define your own cost units, using for example the average time in minutes that it takes to traverse the link based on average speed along the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CALCULATING TRAVEL COST</strong></p>
<p>Travel cost is the average cost of traveling along a link. By default this is distance, i.e. the length of the link. However, you can define your own cost units, using for example the average time in minutes that it takes to traverse the link based on average speed along the link, or cost units expressed as fuel consumption, or any other cost units.</p>
<p>The easiest approach is to use average travel time. For this you need to know the speed limit for each link and then you must calculate the time it takes to traverse each link.</p>
<p>Take a look at the attribute table for the road theme. Notice a field called Road code. In this case the values 1 through 4 correspond to freeway, major road, residential road, and minor residential road. A detailed scrutiny reveals some inconsistency in the coding, but we disregard that in this exercise. Somewhat simplified we can assume that the average speed is, say, 50, 35, 25 and 15 mph for the above types of road codes. Based on this and the information in the Length field, we can calculate the average time it takes to traverse each link:</p>
<p>Make the road theme active and open the attribute table,<br />
<strong>Theme &gt; Table</strong></p>
<p>Make the table editable:<br />
Make the table active,<br />
<strong>Table &gt; Start Editing</strong><br />
<strong>Edit &gt; Add Field</strong>, Call the field mph &gt; <strong>OK</strong><br />
<strong>Edit &gt; Add Field</strong>, Call the field minutes &gt; <strong>OK</strong></p>
<p>For more information on how to name the cost field, see Help. You may use hours, seconds or any other accepted name.</p>
<p>Use the <strong>Query Builder</strong> to select the links with the same Road Code values:</p>
<p>Make the table active,<br />
<strong>Table &gt; Query</strong></p>
<p><img class="alignnone size-full wp-image-69" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/cost1.jpg" alt="" width="423" height="265" /></p>
<p>Double-click Road_code, then click =, then double-click the desired value, click <strong>New Set</strong></p>
<p>With the desired records now selected, Click the mph field in the attribute table (top of the column) to select it, then<br />
<strong>Field &gt; Calculate</strong></p>
<p><img class="alignnone size-full wp-image-70" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/cost2.jpg" alt="" width="421" height="270" /></p>
<p>Enter the chosen speed limit, click <strong>OK</strong>.<br />
Repeat this process for the other road codes until all links have a speed limit.</p>
<p>Clear selected records, <strong>Edit &gt; Select None</strong>.</p>
<p>Click the minutes field (top of column),<br />
<strong>Field &gt; Calculate</strong></p>
<p>Enter the appropriate formula for converting line length and speed limit to travel time for a link &gt; <strong>OK</strong></p>
<p><img class="alignnone size-full wp-image-71" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/cost3.jpg" alt="" width="421" height="270" /></p>
<p><strong>Table &gt; Stop Editing</strong></p>
<p>You can now perform network analysis with travel time as cost units. You can set this in the Properties menu when solving Find Best Route or Find Nearest Facility or Find Service Area. However, you still need to set directions and turns, as well as match adresses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/09-travel-cost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Directions</title>
		<link>http://www.husdal.com/arc/2008/06/25/10-directions/</link>
		<comments>http://www.husdal.com/arc/2008/06/25/10-directions/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:27:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[arcview network analyst]]></category>
		<category><![CDATA[oneway]]></category>

		<guid isPermaLink="false">http://arcviewnetworkanalyst.wordpress.com/?p=144</guid>
		<description><![CDATA[<p>DEFINING DIRECTIONS</p> <p>Your network is still a free-flow network without any directional restrictions. In order to set directions, you need to add a field called oneway to the road theme attribute table. Use same procedure as above.</p> <p>To set a direction, the field oneway must contain the value ft (from-to) or tf (to-from). ToFrom [...]]]></description>
			<content:encoded><![CDATA[<p><strong>DEFINING DIRECTIONS</strong></p>
<p>Your network is still a free-flow network without any directional restrictions. In order to set directions, you need to add a field called <strong>oneway</strong> to the road theme attribute table. Use same procedure as above.</p>
<p>To set a direction, the field oneway must contain the value <strong>ft</strong> (from-to) or <strong>tf</strong> (to-from). ToFrom or FromTo here correspond to the topological ordering as mentioned previously.</p>
<p><img class="alignnone size-full wp-image-66" src="http://www.husdal.com/arc/wp-content/uploads/2008/06/directions1.jpg" alt="" width="450" height="292" /></p>
<p>Use the table edit procedures as outlined above to create the oneway field, Click the <strong>Edit</strong> icon , then click the cell you want to edit, enter your value, hit <strong>Enter</strong>. Remember to save your edits, <strong>Table &gt; Stop Editing</strong>, when done.</p>
<p>Make sure that on/off -ramps and freeway lanes are modeled with correct directions. This can be a tedious process, but nevertheless part of any QA/QC. Unless you want to spend endless hours in the lab, assume that everything is correct, then solve some routing in the vicinity of freeways and visually check that the route takes the lane/ramp it is supposed to. Edit as you go along.</p>
<p>If you want to restrict travel totally, enter <strong>n</strong> in the oneway field.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.husdal.com/arc/2008/06/25/10-directions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

