|
POST
|
Just out of my curiosity, why do you need to calculate the drive time for each person? Despite my curiosity, the following function in the network analysis module seems promising to solve your problem. generate_origin_destination_cost_matrix It's should not be too hard to read the csv line by line and calculate the travel time against each entry point.
... View more
08-20-2018
11:03 PM
|
0
|
1
|
1866
|
|
POST
|
Please be aware that arcpy is licensed. the script needs to be authorized to run outside of Pro. See the Authorizing Python outside the application part in the following document: Python in ArcGIS Pro—ArcPy Get Started | ArcGIS Desktop
... View more
08-20-2018
05:34 PM
|
1
|
1
|
5009
|
|
POST
|
A few things to check: Firstly, check the versions of the following modules: print("python version: ",sys.version) print("arcgis API version: ",arcgis.__version__) print("widgetnbextension: ",widgetsnbextension.__version__) print("ipywidgets version: ",ipywidgets.__version__) Secondly, check if the map widget is enabled?
... View more
08-20-2018
05:14 PM
|
0
|
3
|
5349
|
|
POST
|
Well, It's hard to say what exactly is causing the problem, since there are so many ways that can go wrong, it may be useful to provide you a proven working one: python version: 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]
arcgis API version: 1.5.0
widgetnbextension:
3.2.1 ipywidgets version: 7.2.1 and check if the map widget is enabled in notebook: jupyter nbextension list if not, enable it: jupyter nbextension enable --py --sys-prefix widgetsnbextension jupyter nbextension enable --py --sys-prefix arcgis Although we cannot pinpoint the issue, but we can safely say it's a map widget problem and there are many layers of stuff (Python, ipython, ipywidgets, widgetsnbextension and the MapView) involved to make a widget working and any mismatch can cause it collapse. There's a GitHub post that might have well passed the used-by date, but still, it can provides some clue for this sort of problem: Map is not displayed in Jupyter notebook · Issue #159 · Esri/arcgis-python-api · GitHub
... View more
08-20-2018
05:06 PM
|
2
|
1
|
4720
|
|
POST
|
Not sure what else can cause the problem. can you share the settings in your task scheduler? A quick search gave me this link, hope it helps. Scheduling a Python script or model to run at a prescribed time
... View more
08-19-2018
11:56 PM
|
0
|
5
|
5009
|
|
POST
|
According to what you described about problem, it's likely the failure of loading the arcpy module is the cause. I would suspect that you have multiple python interpreters installed on your machine, and the one you are using to run the script does not have arcpy in its system path. You can print out the system path and visually check it. import sys
from pprint import pprint
pprint(sys.path) If this is the case, you can add the path of your arcpy module in the PYTHONPATH environment variables settings. Or, you simply append or insert the paths in your script to make it an application level setting. sys.path.append('<Pro home folder>\\bin\\Python\\envs\\arcgispro-py3')
sys.path.append('<Pro home folder>\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages")
... View more
08-19-2018
10:41 PM
|
0
|
7
|
5009
|
|
POST
|
A little more info about the environment will be helpful: And, does it work in another popular web browser? let's say Chrome if you are using IE. Last, you can open the browser console (F12 for Chrome) to see some errors there and post the error message which will also help people to diagnose the problem.
... View more
08-19-2018
07:57 PM
|
2
|
1
|
3533
|
|
POST
|
The tech support has been informed about this bug, so that they don’t need to double handle it. Thanks
... View more
08-17-2018
06:09 AM
|
0
|
0
|
4159
|
|
BLOG
|
I've briefly tested beta version, very impressive. Happy to see it's final release
... View more
08-16-2018
07:22 PM
|
0
|
0
|
335
|
|
POST
|
Thanks Joshua. I sent the bug report days ago to ESRI Tech Support (Local Distributor), they are still evaluating it. Can you post the link of the bug please? I can't find it. Cheers
... View more
08-16-2018
05:30 PM
|
0
|
0
|
4159
|
|
POST
|
No worries Bruce. Although the open data website provides download function on the interface but it does not provide an API for people who want to do it programmatically. Why not use the service as a direct datasource? you can query it using "http://gis4.dfwmaps.com/arcgis/rest/services/rdc/rdc_Census/MapServer/14/query?outFields=*&where=1%3D1 " , and with the query it is completely possible to create a shapefile using ArcPy if you really need it.
... View more
08-16-2018
05:19 PM
|
1
|
1
|
2591
|
|
POST
|
There are 3 functions that I can think of in response to your question: export, download and create replica. 1. If you want to use export, you need to be a named user. by default, you can only download your own items or others' items in your organisation if you have the administrator privilege, it is also possible to export others' item if they "allow others to export to different formats". But anyway, I don't think you can export the items in another organisation if you are not a part of that organisation. It sort of make sense that you only can export when you are inside of an org, and when you are outside of an org, you can only "import" its items ... 2. You can download items if they are downloadable, for example, shape files, all sorts of packages (layer, project...), etc. 3. The last one is my favorite, replica. you can checkout feature layers in different formats by creating a replica if the sync is enabled by the service owner. here is an ESRI example how to do it. Sync overview | ArcGIS for Developers
... View more
08-15-2018
11:01 PM
|
1
|
3
|
2591
|
|
POST
|
To get the option ticked in the AGOL interface, "ChangeTracking" needs to be added in the capabilities. update_dict={"capabilities": "Query,ChangeTracking"}
flc.manager.update_definition(update_dict) Please be aware that python API is only a wrapper around the REST API, to find the full list of properties supported, you need look into the REST API document which gives you a better chance, it's not guaranteed that you will find all the properties corresponding to the options on the AGOL interface. According to ESRI document, "If the property does not exist, it's equivalent to having a value of false or not set." Hope this helps.
... View more
08-15-2018
07:26 PM
|
0
|
0
|
2371
|
|
POST
|
If I were you, I would 1. Create a polygon Feature Class in the database if there is an enterprise database, or create a Feature Class in a File Geodatabase. 2. The data structure of the Feature Class depends on the information you want to store: project number, client name, etc. 3. Iterate the all the folders where the shapefiles are placed, and analyze the full path for each shapefile and get the list of project information from the parts of the path (should be very easy to do if the information is stored in the folder names). The os module and relevant functions are handy for this task os.walk() os.path.normpath() os.path.splitdrive() os.path.split() str.split(os.sep) 4. Using arcpy Data Access module to get the geometry in the shapefiles. and create a list to store the geometry and related project information. arcpy.da.SearchCursor 5. Iterate the items (tuple) in the list, and insert the tuple into the Feature Class using arcpy Data Access module arcpy.da.InsertCursor Hope this provides some clue to the final solution. The point here is, don't store the file path in the database, extract the information instead. this will help you a long way in the future analysis and system integration.
... View more
08-13-2018
11:08 PM
|
0
|
0
|
4575
|
|
POST
|
Yes, I removed the history completely. I seriously think this is a bug in the Package Project tool. It makes sense to analyze the code when you publish the geoprocessing tool as a service and make sure all the folders used in the code are accessible by the server, But as a project package, this process is not needed and the folders are relative to the project folder, which will be created when you unpack the project in ArcGIS Pro.
... View more
08-13-2018
08:04 PM
|
1
|
2
|
2258
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-28-2019 05:13 PM | |
| 1 | 02-25-2019 04:54 PM | |
| 1 | 03-05-2019 02:08 PM | |
| 1 | 03-12-2019 10:20 PM | |
| 1 | 11-27-2024 04:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-17-2025
07:39 AM
|