POST
|
Hi Natalie, Do you get the same error if you run the script from outside of PyScripter such as from the command line? Thanks Deelesh
... View more
05-03-2018
10:00 AM
|
0
|
3
|
730
|
POST
|
Hi Roseele, Publishing from a newer version of ArcMap (10.5.1 in your case) to an older version of ArcGIS Server (such as 10.2) can result in issues because the tool can have new parameters in newer version of ArcGIS which will not be supported at older version. So can you try publishing your model using the same version of ArcMap and ArcGIS Server? if you cannot upgrade your ArcGIS Server, it will be good to see if you can successfully publish your geoprocessing model using version 10.2 of ArcMap. If you still see issues, can you post the geoprocessing model you are using to publish the VRP service? Thanks Deelesh
... View more
04-30-2018
01:26 PM
|
1
|
1
|
829
|
POST
|
This should be available on arcgis.com on April 12th
... View more
04-10-2018
05:16 PM
|
0
|
2
|
915
|
POST
|
Thanks for sending the URL of your route service. The issue with the Directions widget is a known bug and it will be fixed in the April 2018 update of ArcGIS Online (which is scheduled to go live around second week of April 2018)
... View more
03-29-2018
10:17 AM
|
2
|
4
|
915
|
POST
|
@ Cad Assistant 3 This seems like a bug in the directions widget which is caused when it is used with your routing service. In which app are you using the directions widget? Map Viewer available with ArcGIS.com Map Viewer in your own enterprise portal (and which version of portal) In your app created using Web AppBuilder In your app created using ArcGIS API for JavaScript? To further troubleshoot, we would need access to the routing service you are using. Is your routing service accessible from the internet? If yes, can you share the URL? If the service is not available on the internet, can you attach the network dataset (if it s not large). In case, the network dataset is large, send me an email at dmandloi@esri.com and I can provide you with a site where you can safely upload the data. Thanks Deelesh
... View more
03-27-2018
05:17 PM
|
0
|
6
|
915
|
POST
|
Hi Maxime, I am unable to reproduce the error when running the GenerateServiceAreas tool in ArcMap 10.6 with the same inputs that you have provided. So if are running into an issue, it is quite possible that this was a bug in the tool that was fixed in subsequent releases. As a workaround, can you try passing the values for Maximum_Facilities and Maximum_Number_of_Breaks parameters as strings instead of integers? arcpy.GenerateServiceAreas_na(facilities, "10", "Meters", Network_Dataset_Path, "in_memory/ServiceAreasOutput", Maximum_Facilities="10", Maximum_Number_of_Breaks="5")
... View more
03-12-2018
02:18 PM
|
0
|
0
|
367
|
POST
|
@IT Adcom ArcGIS Online does not support publishing routing services. You have to use ArcGIS Enterprise to publish routing services using your own network dataset and configure the services with your enterprise portal. This will allow you to access the same tools such as the directions pane or the analysis tools in the Map Viewer app but using your own network dataset.
... View more
03-09-2018
10:58 AM
|
1
|
2
|
917
|
POST
|
Dru, You are getting a sub-optimal route because of how the routing algorithm works for this particular case. Let me elaborate a bit more on this. By default, the routing algorithm is using hierarchy which is a way to say that get on higher level streets such as freeways as quickly as you can from your starting location and then stay on higher level streets for as long as you can until you are close to your destination. The opposite approach to this is to use all the available streets and find the shortest route. This is called exact route. Finding an exact route is computationally intensive as the "search" space can be very large. For example, imagine finding a route between LA and New York, using the exact approach. Such a request has the possibility of searching through most of the street network and probably run out of memory or time out. So for any "long" routes, the routing service in ArcGIS Online (the one used by Directions widget by default) only finds hierarchical routes. The service does support finding exact routes but limits the extent of input stops to be up to 50 miles. That's to say you can do exact routes only for short routes. The routing service API also supports what we call as overrides. These are additional settings that can be passed to the service to override certain default behavior of the algorithms. One such override setting is called TopHierarchyLevel. The default value for this setting is 1. Setting this to a higher value essentially allows the service to consider more streets before it hops on to a higher level street. Using your stops as input and a value of 4 for this property, gets you a route very similar to the one you are getting on google maps. Below are the request parameters for the same route but with TopHierarchyLevel set to 4. With this the total travel time is now 85 minutes (as compared to 95.4 minutes). The directions widget does not expose setting the overrides. However if you can use the RouteTask from ArcGIS JavaScript API, you can set the overrides parameter on RouteParameters to get this route. In general the hierarchical routing algorithms works fine for most cases. But occasionally, you run into such cases for which you need to override some settings to get the desired route. f=json&returnDirections=true&returnRoutes=false&returnZ=true&returnStops=true&returnBarriers=false&returnPolygonBarriers=false&returnPolylineBarriers=false&outSR=102100&outputLines=esriNAOutputLineTrueShape&findBestSequence=false&preserveFirstStop=true&preserveLastStop=true&useTimeWindows=true&startTime=1519240930076&startTimeIsUTC=true&timeWindowsAreUTC=true&accumulateAttributeNames=Miles%2CKilometers%2CMinutes%2CTravelTime&ignoreInvalidLocations=true&restrictUTurns=esriNFSBAtDeadEndsOnly&directionsLanguage=en&outputGeometryPrecision=0&outputGeometryPrecisionUnits=esriMeters&directionsLengthUnits=esriNAUMiles&travelMode=%7B%22attributeParameterValues%22%3A%5B%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Avoid+Unpaved+Roads%22%2C%22value%22%3A%22AVOID_HIGH%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Avoid+Private+Roads%22%2C%22value%22%3A%22AVOID_MEDIUM%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Driving+an+Automobile%22%2C%22value%22%3A%22PROHIBITED%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Through+Traffic+Prohibited%22%2C%22value%22%3A%22AVOID_HIGH%22%7D%2C%7B%22parameterName%22%3A%22Vehicle+Maximum+Speed+(km%2Fh)%22%2C%22attributeName%22%3A%22TravelTime%22%2C%22value%22%3A0%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Roads+Under+Construction+Prohibited%22%2C%22value%22%3A%22PROHIBITED%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Avoid+Gates%22%2C%22value%22%3A%22AVOID_MEDIUM%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Avoid+Express+Lanes%22%2C%22value%22%3A%22PROHIBITED%22%7D%2C%7B%22parameterName%22%3A%22Restriction+Usage%22%2C%22attributeName%22%3A%22Avoid+Carpool+Roads%22%2C%22value%22%3A%22PROHIBITED%22%7D%5D%2C%22description%22%3A%22Models+the+movement+of+cars+and+other+similar+small+automobiles%2C+such+as+pickup+trucks%2C+and+finds+solutions+that+optimize+travel+time.+Travel+obeys+one-way+roads%2C+avoids+illegal+turns%2C+and+follows+other+rules+that+are+specific+to+cars.+When+you+specify+a+start+time%2C+dynamic+travel+speeds+based+on+traffic+are+used+where+it+is+available.%22%2C%22impedanceAttributeName%22%3A%22TravelTime%22%2C%22simplificationToleranceUnits%22%3A%22esriMeters%22%2C%22uturnAtJunctions%22%3A%22esriNFSBAtDeadEndsAndIntersections%22%2C%22restrictionAttributeNames%22%3A%5B%22Avoid+Unpaved+Roads%22%2C%22Avoid+Private+Roads%22%2C%22Driving+an+Automobile%22%2C%22Through+Traffic+Prohibited%22%2C%22Roads+Under+Construction+Prohibited%22%2C%22Avoid+Gates%22%2C%22Avoid+Express+Lanes%22%2C%22Avoid+Carpool+Roads%22%5D%2C%22useHierarchy%22%3Atrue%2C%22simplificationTolerance%22%3A10%2C%22timeAttributeName%22%3A%22TravelTime%22%2C%22distanceAttributeName%22%3A%22Kilometers%22%2C%22type%22%3A%22AUTOMOBILE%22%2C%22id%22%3A%22FEgifRtFndKNcJMJ%22%2C%22name%22%3A%22Driving+Time%22%7D&stops=%7B%22type%22%3A%22features%22%2C%22features%22%3A%5B%7B%22geometry%22%3A%7B%22x%22%3A-9061941.545%2C%22y%22%3A4778115.294699997%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%2C%22latestWkid%22%3A3857%7D%7D%2C%22attributes%22%3A%7B%22CurbApproach%22%3Anull%2C%22TimeWindowStart%22%3Anull%2C%22TimeWindowEnd%22%3Anull%2C%22Attr_Minutes%22%3A0%2C%22Attr_TravelTime%22%3A0%2C%22Attr_Miles%22%3A0%2C%22Attr_Kilometers%22%3A0%2C%22Attr_TimeAt1KPH%22%3A0%2C%22Attr_WalkTime%22%3A0%2C%22Attr_TruckMinutes%22%3A0%2C%22Attr_TruckTravelTime%22%3A0%2C%22Name%22%3A%221400+Pike+St%2C+Marietta%2C+OH%2C+45750%2C+USA_1008%22%7D%7D%2C%7B%22geometry%22%3A%7B%22x%22%3A-9149838.8682%2C%22y%22%3A4827500.293799996%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%2C%22latestWkid%22%3A3857%7D%7D%2C%22attributes%22%3A%7B%22CurbApproach%22%3Anull%2C%22TimeWindowStart%22%3Anull%2C%22TimeWindowEnd%22%3Anull%2C%22Attr_Minutes%22%3A0%2C%22Attr_TravelTime%22%3A0%2C%22Attr_Miles%22%3A0%2C%22Attr_Kilometers%22%3A0%2C%22Attr_TimeAt1KPH%22%3A0%2C%22Attr_WalkTime%22%3A0%2C%22Attr_TruckMinutes%22%3A0%2C%22Attr_TruckTravelTime%22%3A0%2C%22Name%22%3A%223210+State+Route+345+NE%2C+New+Lexington%2C+Ohio%2C+43764%2C+USA_1009%22%7D%7D%5D%2C%22doNotLocateOnRestrictedElements%22%3Atrue%7D&directionsOutputType=esriDOTComplete&overrides=%7B%22TopHierarchyLevel%22+%3A+4%7D
... View more
02-21-2018
11:36 AM
|
2
|
1
|
817
|
POST
|
Yes if pulpTestAll is working fine you should be good. You can also try to run some of the examples such as AmericanSteelProblem.py and see if things are working fine. $ python AmericanSteelProblem.py ('Status:', 'Optimal') ("Route_('Chicago',_'Gary')", '=', 4000.0) ("Route_('Chicago',_'Tempe')", '=', 2000.0) ("Route_('Cincinatti',_'Albany')", '=', 2000.0) ("Route_('Cincinatti',_'Houston')", '=', 3000.0) ("Route_('Kansas_City',_'Houston')", '=', 4000.0) ("Route_('Kansas_City',_'Tempe')", '=', 2000.0) ("Route_('Pittsburgh',_'Chicago')", '=', 3000.0) ("Route_('Pittsburgh',_'Cincinatti')", '=', 2000.0) ("Route_('Pittsburgh',_'Gary')", '=', 2000.0) ("Route_('Pittsburgh',_'Kansas_City')", '=', 3000.0) ("Route_('Youngstown',_'Albany')", '=', 1000.0) ("Route_('Youngstown',_'Chicago')", '=', 3000.0) ("Route_('Youngstown',_'Cincinatti')", '=', 3000.0) ("Route_('Youngstown',_'Kansas_City')", '=', 3000.0) ('Total Cost of Transportation = ', 15005.0)
... View more
02-01-2018
08:28 AM
|
0
|
5
|
730
|
POST
|
Hi Natalie, When I run the tests for pulp 1.6.8 on my windows machine that has 64 bit python 2.7.14, I don't get any such failures. So I am not sure what would be causing this error on your end. Can you try running the pulp tests from the windows command prompt instead of using an IDE like PyScripter? Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pulp >>> pulp.pulpTestAll() Testing zero subtraction Testing inconsistant lp solution Testing continuous LP solution Testing maximize continuous LP solution Testing unbounded continuous LP solution Testing Long Names Testing repeated Names Testing zero constraint Testing zero objective Testing LpVariable (not LpAffineExpression) objective Testing Long lines in LP Testing LpAffineExpression divide Testing MIP solution Testing MIP solution with floats in objective Testing MIP relaxation Testing feasibility problem (no objective) Testing an infeasible problem Testing an integer infeasible problem Testing column based modelling Testing dual variables and slacks reporting Testing fractional constraints Testing elastic constraints (no change) Testing elastic constraints (freebound) Testing elastic constraints (penalty unchanged) Testing elastic constraints (penalty unbounded) * Solver pulp.solvers.PULP_CBC_CMD passed. Solver pulp.solvers.CPLEX_DLL unavailable Solver pulp.solvers.CPLEX_CMD unavailable Solver pulp.solvers.CPLEX_PY unavailable Solver pulp.solvers.COIN_CMD unavailable Solver pulp.solvers.COINMP_DLL unavailable Solver pulp.solvers.GLPK_CMD unavailable Solver pulp.solvers.XPRESS unavailable Solver pulp.solvers.GUROBI unavailable Solver pulp.solvers.GUROBI_CMD unavailable Solver pulp.solvers.PYGLPK unavailable Solver pulp.solvers.YAPOSIB unavailable
... View more
01-29-2018
01:57 PM
|
0
|
7
|
730
|
POST
|
Hi Natalie, The RuntimeError you are encountering is because arcpy is not licensed for use on your machine. This happens when you don't have a license for ArcMap on your machine. If you don't need to use arcpy or cannot install a license for ArcGIS, you can test your pulp installation by running import pulp pulp.pulpTestAll() Thanks Deelesh
... View more
01-27-2018
09:36 PM
|
0
|
9
|
1540
|
POST
|
Hi Natalie, If you are looking to install the latest version of pulp on your machine running ArcMap 10.3, you can do the following 1. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py and save it locally such as in c:\data folder. The details are at Installation — pip 9.0.1 documentation 2. Open a windows command prompt and type the following command C:\Python27\ArcGIS10.3\python.exe c:\data\get-pip.py 3. Once pip is installed, install pulp using the following command C:\Python27\ArcGIS10.3\Scripts\pip.exe install pulp 4. You should now be able to use pulp and arcpy in your python scripts. For example, you can run these commands after starting a python interactive session such as in IDLE import arcpy import pulp print arcpy.GetInstallInfo() pulp.pulpTestAll() Hope this helps Deelesh
... View more
01-17-2018
04:46 PM
|
1
|
11
|
1540
|
POST
|
Hi Jitender, The replacement service is called ArcGIS Online Directions and Routing Services. Functionally the new service has a lot of improvements over the one you have been using. From the API standpoint, the new service is compatible. So Your app should be able to work with this new service with no or very little changes. One major difference with the new service is that it is secured and requires an ArcGIS Online subscription to access. This means you need to buy a new subscription for ArcGIS Online and use the service credits that come with your subscription to access the service. You can evaluate if your app can work with this new service endpoint by signing up for a free trail of ArcGIS Online which comes with 200 service credits that can be used to access the routing service. ArcGIS Online subscription is included with ArcGIS products. So your organization might already have an ArcGIS Online subscription. I would recommend contacting your local Esri account representative to dicuss further about ArcGIS Online subscriptions. Hope this helps
... View more
12-01-2015
04:37 PM
|
0
|
0
|
326
|
POST
|
Hi Devin, It seems like you only have an ArcGIS public account and not an Organization account. I am not sure if your university provides you access to an ArcGIS Organization account. If not, you can sign up for a free 30 day trial of ArcGIS.com. When you sign up for a trial, you can create a new arcgis.com account that will provide you access to World Routing Service for 30 days. The trial account also gives you 200 service credits. So that means you should be able to generate 5000 routes during the trial peroid. Hope this helps
... View more
01-16-2015
05:19 PM
|
0
|
0
|
299
|
POST
|
Hi Devin, The North American Routing Service only supports execution time of 60 seconds. So it is possible that with 9 stops the service takes more than 60 seconds to find a route and times out. If possible can you send the input stops as well as other settings you are specifying in the Find Routes tool? On a related note, the North American Routing Service has been deprecated and instead ArcGIS Online now provides a World Routing Service that is updated on a regular basis and supports advanced capabilities like routing using live traffic. You can access this service from the Find Routes tool if you first sign in to ArcGIS Online from ArcMap using your ArcGIS Online Organization Subscription. If you have an Organization Subscription (comes included with your ArcGIS Desktop license), it will be worth trying to see if the new service can find a route with all the nine stops. Some additional information on how to use the World Routing Service using ArcMap can be found in the ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
01-15-2015
09:25 AM
|
0
|
2
|
299
|
Title | Kudos | Posted |
---|---|---|
1 | 07-08-2010 09:38 PM | |
1 | 05-16-2019 02:16 PM | |
1 | 12-13-2018 11:54 AM | |
1 | 02-11-2020 10:03 AM | |
1 | 12-18-2018 02:58 PM |
Online Status |
Offline
|
Date Last Visited |
02-27-2023
07:05 AM
|