I would like to build a street network dataset for routing purpose from data included on media kit ArcGIS 9.3. I try to use streets feature class, which is in GCS North America 1983. I hardly found any metadata and I assume that Speed field defines values in miles per hour, and Shape Length in degrees. I need two directions attributes??? distance and time. In a network wizard I used Shape (value created by a network) as distance evaluator field and Shape /Speed as time evaluator. I checked the results and distance looks all right, but time value does not make sense at all. I thought that this is problem with units and tried Shape/(Speed*26.8224) to change miles per hour to meters per minute, but still is does not return any reasonable result. I know I am missing something, but I can???t see what. Does anybody used successfully this dataset to build a network?
The street data in SDC format already has a network dataset build and ready to route. Can you use that directly? Jay Sandhu
Thank you for your suggestion. Unfortunately attributes included in a network dataset do not work for me and there are read only, so I cannot modify them or even see used evaluators. I need to construct my own network dataset from a subset of streets, with distance and time attributes. Do you know or can you suggest what evaluators can work to calculate distance and time attributes?
Open the attribute table of the streets and add two fields type double called something line Length and Time. Then right-click on the Length and bring up the Field Calculator. Make sure to click on the PYTHON (not VBScript) and type this formula with the exclaimation signs: !Shape.Length@miles! and click ok. This will compute the shape length in miles for each edge and put the value in for that field. Now you need to convert this meters lenght into travel time in minutes. The speed is in Miles per hour. So knowing that their are 60 minuets in an hour, bring up the field calculator for the Time field and type this formula [Length] / [SPEED] * 60.0 Click ok. Note the length and speed are the existing fields in your data. Now you should have the length in miles and travel time in minutes that you can use as evaluators. Regards, Jay Sandhu
Get the SP2 for 10 and then the python formula will work. Or you can do the following: Add your streets to ArcMap, then set the data frame property and choose an appropriate projection to display the data. Now open the attribute table, click on the newly added Miles field, right-click and choose "Calculate Geometry". Pick "Length" in the property and Miles for the units and make sure the Use Coordinate system of the data frame is checked on. Click Ok and it will fill in the projected length in miles for that field. Jay Sandhu