Main menu

Pages

Calculate Locations, Copy Traversed Source Features and Directions

Calculate Locations, Copy Traversed Source Features and Directions Tools

Calculate Locations

How to use Calculate Locations Tool in Arc Toolbox ArcMap ArcGIS??

Calculate Locations Tool
Calculate Locations

Path to access the tool

:

Calculate Locations Tool, Analysis Toolset, Network Analyst Tools Toolbox

 

Calculate Locations

Adds fields to the input features that contain the network location of the features. The tool is used to store the network location information as feature attributes to quickly load the features as inputs for a network analysis layer.

1.    Input Features

The input features for which the network locations will be calculated.

For line and polygon features, since the network location information is stored in a blob field (specified in the Location ranges field parameter), only geodatabase feature classes are supported.

2.    Input Analysis Network

The network dataset used to calculate the locations.

If a sublayer of a network analysis layer is used as input features, the parameter is automatically set to the network dataset referenced by the network analysis layer.

3.    Search Tolerance

The search tolerance for locating the input features on the network. Features that are outside the search tolerance are left unlocated. The parameter includes a value and units for the tolerance.

4.    Search Criteria

Specifies which sources in the network dataset will be searched when finding locations and what portions of geometry (also known as snap types) will be used.

For geodatabase network datasets, the snap types can be specified for each subtype of the network source (["Streets : Local Streets","SHAPE"]).

When calculating locations for line or polygon features, only the SHAPE snap type is used, even if other snap types are specified.

5.    Find Closest among All Classes (optional)

  1. Checked—Matches the new network locations to the closest network source among all the sources that have a snap type specified in the search criteria. This is the default.
  2. Unchecked—Matches the new network locations to the first network source having a snap type specified in the search criteria. The sources are searched in the priority order, and the searching stops when the location is found within the search tolerance.

6.    Exclude Restricted Portions of the Network (optional)

This parameter is applicable only when the input features are from the sub layer of a network analysis layer and are not barrier objects.

  1. Checked The network locations are only placed on traversable portions of the network. This prevents placing network locations on elements that you can't reach due to restrictions or barriers. Before relocating your network locations using this option, make sure that you have already added all the restriction barriers to the network analysis layer to get expected results.
  2. Unchecked The network locations are placed on all the elements of the network. The network locations that are relocated with this option may be unreachable during the solve process if they are placed on restricted elements.

7.    Search Query (optional)

Specifies a query to restrict the search to a subset of the features within a source feature class. This is useful if you don't want to find features that may be unsuited for a network location. For example, if you are loading centroids of polygons and don't want to locate on local roads, you can define a query that searches for major roads only.

An SQL expression for a given source is specified by selecting the source name in the Name column and clicking the SQL button. If you don't want to specify a query for a source, remove the SQL expression for that source by selecting the source name and clicking the Remove button.

By default, no query is used.

8.    Source ID Field (optional)

The name of the field to be created or updated with the source ID of the computed network location. A field named SourceID is created or updated by default.

9.    Source OID Field (optional)

The name of the field to be created or updated with the source OID of the computed network location. A field named SourceOID is created or updated by default.

10. Percent Along Field (optional)

The name of the field to be created or updated with the percent along with the computed network location. A field named PosAlong is created or updated by default.

11. Side of Edge Field (optional)

The name of the field to be created or updated with the side of edge on which the point feature is located on the computed network location. A field named SideOfEdge is created or updated by default.

12. Located X-Coordinate Field (optional)

The name of the field to be created or updated with the x-coordinate of the computed network location. A field named SnapX is created or updated by default.

13. Located Y-Coordinate Field (optional)

The name of the field to be created or updated with the y-coordinate of the computed network location. A field named SnapY is created or updated by default.

14. Distance from Feature Field (optional)

The name of the field to be created or updated with the distance of the point feature from the computed network location. A field named Distance is created or updated by default.

15. Located Z-Coordinate Field (optional)

The name of the field to be created or updated with the z-coordinate of the computed network location. A field named SnapZ is created or updated by default.

16. Location Ranges Field (optional)

The name of the field to be created or updated with the location ranges of the computed network locations for the line or polygon features. A field named Locations is created or updated by default.

Copy Traversed Source Features

How to use Copy Traversed Source Features Tool in Arc Toolbox ArcMap ArcGIS??

Copy Traversed Source Features Tool
Copy Traversed Source Features

Path to access the tool

:

Copy Traversed Source Features Tool, Analysis Toolset, Network Analyst Tools Toolbox

 

Copy Traversed Source Features

Creates two feature classes and a table, which together contain information about the edges, junctions, and turns that are traversed while solving a network analysis layer.

1.    Input Network Analysis Layer

The network analysis layer from which traversed source features will be copied. If the network analysis layer does not have a valid result, the layer will be solved to produce one.

2.    Output Location

The workspace where the output table and two feature classes will be saved.

3.    Edge Feature Class Name

The name of the feature class that will contain information about the traversed edge source features. If the solved network analysis layer doesn't traverse any edge features, an empty feature class is created.

4.    Junction Feature Class Name

The name of the feature class that will contain information about the traversed junction source features, including system junctions and relevant points from the input network analysis layer. If the solved network analysis layer doesn't traverse any junctions, an empty feature class is created.

5.    Turn Table Name

The name of the table that will contain information about the traversed global turns and turn features that scale cost for the underlying edges. If the solved network analysis layer doesn't traverse any turns, an empty table is created. Since restricted turns are never traversed, they are never included in the output.

Directions

How to use Directions Tool in Arc Toolbox ArcMap ArcGIS??

Directions Tool
Directions Tool

Path to access the tool

:

Directions Tool, Analysis Toolset, Network Analyst Tools Toolbox

 

Directions

Generates turn-by-turn directions from a network analysis layer with routes. The directions can be written to a file in text, XML, or HTML format. If you provide an appropriate stylesheet, the directions can be written to any other file format.

1.    Input Network Analysis Layer

Network analysis layer for which directions will be generated. Directions can be generated only for route, closest facility, and vehicle routing problem network analysis layers.

2.    Output File Type

The format of the output directions file. This parameter is ignored if the stylesheet parameter has a value.

  1. XML—The output directions file will be generated as an XML file. Apart from direction strings and the length and time information for the routes, the file will also contain information about the maneuver type and the turn angle for each direction.
  2. TEXT—The output directions file will be generated as a simple TXT file containing the direction strings, the length and, optionally, the time information for the routes.
  3. HTML—The output directions file will be generated as an HTML file containing the direction strings, the length and, optionally, the time information for the routes.

3.    Output Directions File

The full path to the directions file that will be written.

If you provide a stylesheet in the Stylesheet parameter, make sure the file suffix for Output Directions File matches the file type your stylesheet produces.

4.    Report Length in These Units

Specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles.

5.    Report Travel Time (optional)

  1. Checked—Report travel times in the directions file. This is the default value.
  2. Unchecked—Do not report travel times in the directions file.

6.    Time Attribute (optional)

The time-based cost attribute to provide travel times in the directions. The cost attribute must exist on the network dataset used by the input network analysis layer.

7.    Language (optional)

Choose a language in which to generate driving directions. The languages that are shown in the drop-down list depend on which ArcGIS language packs are installed on your computer.

Note that if you are going to publish this tool as part of a service on a separate server, the ArcGIS language pack that corresponds with the language you choose must be installed on that server for the tool to function properly. Also, if a language pack isn't installed on your computer, the language won't appear in the drop-down list; however, you can type a language code instead of choosing one.

8.    Style Name (optional)

Choose the name of the formatting style for the directions.

  1. NA Desktop—Printable turn-by-turn directions
  2. NA Navigation—Turn-by-turn directions designed for an in-vehicle navigation device
  3. NA Campus—Turn-by-turn walking directions, which are designed for pedestrian routes

9.    Stylesheet (optional)

·         The stylesheet for generating a formatted output file type (such as a PDF, Word, or HTML file). The suffix of the file in the output directions file parameter should match the file type that the stylesheet generates. The Directions tool overrides the output file type parameter if this parameter contains a value.

·         If you want a head start on creating your own text and HTML stylesheets, copy and edit the stylesheets Network Analyst uses. You can find them in the following directory: <ArcGIS installation directory>\ArcGIS\Desktop10.2.1\NetworkAnalyst\Directions\Styles. The stylesheet is Dir2PHTML.xsl, and the text stylesheet is Dir2PlainText.xsl.

Comments

table of contents title