|
POST
|
Take a look at the NA tutorial on how to use the Route solve. It shows how locations can be loaded into an analysis layer. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Exercise_6_Creating_a_model_for_route_analysis/004700000061000000/ Regards, Jay Sandhu
... View more
02-03-2011
05:55 AM
|
0
|
0
|
1546
|
|
POST
|
You can use Location-Allocation but it does not solve the capaciated problem. So you can create a location-allocation layer, load your Sow sites as facilities with a Facility Type of "Required" and then load your nursery farms as Demand, set the properties of the LA layer to solve for the number of Sow sites you loaded and solve. The demand will be allocated to the nearest Sow site. However if you want to solve the capacitated Allocation problem, i.e. all facilities are fixed and ahve a supply that cannot be exceeded, then use an ArcScript that uses the Network Analyst to compute the network distances between your supply and demand locations and then uses a linear programming package to solve the problem. You can get that ArcScript here: http://arcscripts.esri.com/details.asp?dbid=16044 Regards, Jay Sandhu
... View more
02-02-2011
09:38 AM
|
0
|
0
|
577
|
|
POST
|
Location-Allocation solves a N Choose P problem. So you have to give it a larger set of locations from which it will pick a smaller set to best serve the demand locations. The input set of candidate locations could have existing facility locations. Some of these can be marker "Required", that is, they have to be in the solution. Generally you want to give a set of candidate facilities where you can actually build, buy, rent, lease facilities to serve the demand. Not all locations in an area may be suitable or zoned for the type of facility you need to build. Jay Sandhu
... View more
01-31-2011
07:07 AM
|
0
|
0
|
483
|
|
POST
|
If it is working now then the isue is not zero costs in the network dataset. Most likely it was stale snapping information on the stops. ArcLogistics will not have a different reason as the underlying solvers are the same. Jay Sandhu
... View more
01-12-2011
05:55 AM
|
0
|
0
|
911
|
|
POST
|
Did you solve the closest facility just before running the VBA? i.e. if it is an existing map document or layer that has been solved in a previous ArcMap session then there will be no traversal results still in memory for the VBA to access. Jay Sandhu
... View more
01-11-2011
02:48 PM
|
0
|
0
|
851
|
|
POST
|
It is likely you are solving an existing route layer after rebuilding the network. Most likely the element ids of the network changed and now the stops point to wrong locations. It could also be that you are loading locations that had been previously snapped to the network, again it may have used the older locations. So in the NA Window, right-click on the Stops sub layer and then choose the option to re-locate all the stops. Then re-solve. Hopefully that will give you the correct results. Jay Sandhu
... View more
01-11-2011
06:00 AM
|
0
|
0
|
911
|
|
POST
|
If you have 9.3, then you can use the following VBA and run it after you solve the Closest Facility. It will add two new feature classes representing the lines and junctions that were traversed. Regards, Jay Sandhu Public Sub AddNATraversalResultToArcMap() Dim pMxDoc As IMxDocument Dim pNetworkAnalystExtension As INetworkAnalystExtension Dim pNALayer As INALayer Dim pFLayer As IFeatureLayer Dim pTraversalResultQuery As INATraversalResultQuery Dim pNATraversalResultEdit As INATraversalResultEdit Set pMxDoc = ThisDocument Set pNetworkAnalystExtension = Application.FindExtensionByName("Network Analyst") Set pNALayer = pNetworkAnalystExtension.NAWindow.ActiveAnalysis Set pTraversalResultQuery = pNALayer.Context.Result Set pNATraversalResultEdit = pTraversalResultQuery 'Infer Geometry pNATraversalResultEdit.InferGeometry "", Nothing, New CancelTracker 'Get the Edges and add as a layer Set pFLayer = New FeatureLayer Set pFLayer.FeatureClass = pTraversalResultQuery.FeatureClass(esriNETEdge) pFLayer.Name = pFLayer.FeatureClass.AliasName pMxDoc.FocusMap.AddLayer pFLayer 'Get the Junctions and add as a layer Set pFLayer = New FeatureLayer Set pFLayer.FeatureClass = pTraversalResultQuery.FeatureClass(esriNETJunction) pFLayer.Name = pFLayer.FeatureClass.AliasName pMxDoc.FocusMap.AddLayer pFLayer End Sub
... View more
01-10-2011
06:03 AM
|
0
|
0
|
851
|
|
POST
|
When you solve the closest facility (or route), the resulting output contains one line feature per route and do not contain the individual edges that made up that route. However, that information is available in memory in form of a traversal result and can be accessed to turned into line features. Once you have that, you can simply summerize on the source object id and find out how many times each edge has been traversed. You can use the following resource to add the traversal result right after you solve the CF to the ArcMap TOC: http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE Jay Sandhu
... View more
01-07-2011
06:49 AM
|
0
|
0
|
851
|
|
POST
|
What will be your input? Can you bring the x,y in a text file? If you can, then use the GP tool "Make XY Event Layer" found in Data Management/Layers and Table view. Regards, Jay Sandhu
... View more
12-31-2010
07:16 AM
|
0
|
0
|
523
|
|
POST
|
In this context, the shape_length is the length of each edge in the network and the total_length is he length of the path that the route solver finds. (it may be the sum of the shape_lengths of each edge if that is what the route was solved on). Jay Sandhu
... View more
12-28-2010
12:59 PM
|
0
|
0
|
2229
|
|
POST
|
You can use the Go To X,Y tool on the Standard Tool bar to add a graphic to map and then right-click on the Stops to Load Locations and pick the graphic as the source to "Load From". You can read more on the X,Y tool here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00nm0000002p000000.htm Alternatively if you have the X,Y's in a table, you can use the Add XY Data tool to convert that into point features and then load them as Stops. Jay Sandhu
... View more
12-28-2010
12:45 PM
|
0
|
0
|
523
|
|
POST
|
You can get the x,y points of the junctions by querying the from/to junctions. For example, you can: dim pFromPoint as IPoint set pFromPoint = new Point and then inside the loop after the QueryJunction call: pNEFromJunc.QueryPoint pFromPoint and now you can access the coordinates: debug.print pFromPoint.X debug.print pFromPoint.Y repeat the above for the pNEToJunc Hope that is what you wanted. Regards, Jay Sandhu
... View more
12-28-2010
08:20 AM
|
0
|
0
|
431
|
|
POST
|
The algorithms do not make any assumptions. They minimize an impedance that is read from each link in the network. The impedance is calculated and stored by the user. For travel time it is usually a function of the speed limit and the length of that edge. Jay Sandhu
... View more
12-28-2010
06:35 AM
|
0
|
0
|
403
|
|
POST
|
Gareth, If I understand correctly, you want to add capacity on your facilities. That is not supported in Location-Allocation. It solves the minimum number of facilities such that demand is assigned to the closest chosen facility. Can you describe what type of problem you are trying to solve with capacity. Perhaps their are other ways to achive your goals. Regards, Jay Sandhu
... View more
12-10-2010
07:32 AM
|
0
|
0
|
603
|
|
POST
|
If you are unable to generate directions on the tutorial data then I will suggest that you contact ESRI technical support so that they may diagnose the issue and see what may be going on. Regards, Jay Sandhu
... View more
12-07-2010
09:43 AM
|
0
|
0
|
3248
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-21-2023 09:39 AM | |
| 1 | 11-20-2024 09:29 AM | |
| 1 | 10-09-2024 09:23 AM | |
| 1 | 09-09-2024 08:54 AM | |
| 1 | 09-05-2024 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-31-2025
08:20 AM
|