|
POST
|
Thank you for your reply. Basicaly both store locations have the same coordinates. To be more specific i have one depot with name 101 and i want to create two routes for that depot 1011 and 1012 respectively. So i m copying the first row from depots shp and inserting that as a new row in the same .shp file naming the first depot as 1011 and the last as 1012. Maybe through that copy paste procedure the coordinates for the clone depot become "unreadable". Is there any way to avoid doing that, by creating those two routes (1011&1012) without having two create two different depots and simply use one with RouteName 101?
... View more
07-25-2018
08:33 AM
|
0
|
1
|
1262
|
|
POST
|
I m using ArcGis 10.4.1 and network analyst extension where i create a Route Analysis layer. The following code's part is used: #add a depot as stop. fieldMappingsStore = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName) fieldMappingsStore["RouteName"].mappedFieldName = "Group_ID" #correlates fields ie naStops attribute table with inStores attribute table fig.1 stores attribute table #add stops fieldMappingsStops = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName) fieldMappingsStops["RouteName"].mappedFieldName = "Group_ID" #correlates fields ie naStops attribute table with inStores attribute table fig.2 stops attribute table #AddLocations_na arcpy.na.AddLocations(outNALayer, stopsLayerName, inDepots, fieldMappingsStore,................) arcpy.na.AddLocations(outNALayer, stopsLayerName, inOrders, fieldMappingsStops,.................) Apparently something is wrong with the above approach because the route layer is solved i get the following, where we can see that the first location for RouteName 1012 has SourceOID =-1 . fig.3 Route Analysis layer stops attribute table I don want want to use VRP because it is slower. Do i have to change my approach and merge the two shapefiles(stores and stops) or i can still use the above approach?
... View more
07-25-2018
01:18 AM
|
0
|
3
|
1412
|
|
POST
|
i found solution to my problem using MakeVehicleRoutingProblemLayer and arcpy.na.AddLocations instead of SolveVehicleRoutingProblem_na. Thank you very much, for your reply.
... View more
05-25-2018
07:16 AM
|
0
|
0
|
1050
|
|
POST
|
ok, but how am i supposed to make my orders file with the same format? Another issue is that orders attribute table's fields have many characters whilst mine cannot exceed 10.
... View more
05-25-2018
04:44 AM
|
0
|
0
|
1050
|
|
POST
|
I' m facing the following issue when trying to load a shapefile as orders in VRP solver using arcpy. The code that i m using: inOrders = "sortedStops" orders = arcpy.GetParameterValue("SolveVehicleRoutingProblem_na",0) orders.load(inOrders) the errror message that i get; File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects\arcobjects.py", line 1042, in load return convertArcObjectToPythonObject(self._arc_object.Load(*gp_fixargs(args))) RuntimeError: RecordSetObject: Cannot open table for Load The input shapefile has the following attribute table, which is of course doesn't resemble orders attribute table. Any suggestions?
... View more
05-25-2018
03:03 AM
|
0
|
3
|
1226
|
|
POST
|
I m using ArcGIS 10.4.1 and i'm facing the following issue; I have create a group of many shapefiles, right clicking the group i couldnt find any "data" option so i created a lyr file, but even then in the lyr file there is no "data" option. Any ideas for that?
... View more
05-15-2018
01:45 AM
|
0
|
3
|
4279
|
|
POST
|
I am using ArcGIS 10.4.1 and Network Analyst. I am facing an issue when trying to connect segments with different elevation values. In the image below we can see a segment of a tunnel and its attribute table. It has a a value of -1 for LayerElev field(field marked yellow). But the next segment is not a tunnel so it has a a value of 0 for LayerElev field(field marked yellow). What is the proper way to connect those to segments? Do i have to create 2 fields in the attribute table (from endpoint and to endpoint) instead of the one i 've got now? I have to use elevation because the area has complicated junctions with overpasses, underpasses and tunnels.
... View more
03-16-2018
02:40 AM
|
0
|
2
|
1729
|
|
POST
|
thank you very much for your reply, but i forgot to mention that this is just an example. I have to repeat the same procedure for thousands of places, so i m trying to figure out a way to exclude outliers.
... View more
03-06-2018
02:03 AM
|
0
|
1
|
963
|
|
POST
|
Is there a way to exclude points that follow a certain pattern before finding mean center. (i.e in the image below i want to exclude certain wrong gps points, yellow circles, that will affect my mean center).
... View more
03-06-2018
12:06 AM
|
0
|
3
|
1073
|
|
POST
|
Understood, if i want to exclude non-reachable elements should i delete those elements or is there any different approach(apart from creating restrictions)?
... View more
02-27-2018
01:31 PM
|
0
|
1
|
2073
|
|
POST
|
Thank you for your prompt reply, I am using ArcMap 10.4.1 and i have set all the layer properties before "arcpy.na.AddLocations". In the image we can see that a stop (the red point) has been snapped on a non traversable segment of the network (the inner square is a pedestrian road that has no connections with any other network segment).
... View more
02-27-2018
11:57 AM
|
0
|
3
|
2073
|
|
POST
|
Yes of course; arcpy.na.AddLocations(outNALayer, stopsLayerName, inStops_2, fieldMappings, "300 meters", "FID", [["Analysis_ND", "SHAPE"], ["Analysis_ND", "NONE"]], "MATCH_TO_CLOSEST", "APPEND", "SNAP", "1", "EXCLUDE", "") do i have to add a query?
... View more
02-27-2018
10:14 AM
|
0
|
5
|
2073
|
|
POST
|
i am facing an issue where Route Analyst is placing network locations on non traversable portions of the network, (see image below). In arcpy.na.AddLocations i am using in the "exclude_restricted_elements" parameter the value EXCLUDE. Any ideas?
... View more
02-27-2018
06:40 AM
|
0
|
7
|
2574
|
|
POST
|
Than you very much for your reply. I m trying to promote straight lines in my solver. Each street segment has a NON UNIQUE FID value. ie Richmond Avenue's street segments have FID value = 12345. Is it possible to write a script based on the following pseudocode? a=fromEdge.AttributeValuebyName("FID") b=toEdge.AttributeValuebyName("FID") If a=b then dont turn And what type of element should i use for that, turn or edge?And last but not least the edges and the junctions are evaluated based on what value(time, length)?
... View more
02-14-2018
02:52 PM
|
0
|
1
|
1132
|
|
POST
|
In script evaluators how element variables work? The following Element Variables are available: Turn fromEdge atJunction toEdge Does "fromEdge" mean the previous edge and "toEdge" the next edge? Is there any documentation for Element Functions such as ToAzimuth, FromPositin, PositionAlongObject etc?
... View more
02-13-2018
04:49 AM
|
0
|
3
|
1319
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-13-2019 05:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|