|
POST
|
Just done it Please vote it up. Allow arcpy.mp to change the map extent in ArcGIS Pro
... View more
07-03-2018
09:41 PM
|
1
|
1
|
9628
|
|
POST
|
I tried this code, it didn't work. Is there an ArcgGIS Idea that we can vote to get this function implemented ASAP? it's hard to believe this function is missing in the latest version...
... View more
07-03-2018
09:06 PM
|
0
|
3
|
9628
|
|
POST
|
Thanks As said, I can set breakpoints and it sometimes works, kind of hit-and-miss though. so the process you mentioned is done ---- copying the code to a py file and in the tool validation dialog I have some code to load the validation module.
... View more
07-03-2018
09:01 PM
|
0
|
0
|
5607
|
|
POST
|
Thanks for sharing. This works for the layout view, but it won't change the map extent in the mapview. I can't believe it that this function has not been implemented in ArcGIS Pro 2.2.0.
... View more
07-03-2018
01:02 AM
|
3
|
1
|
7724
|
|
POST
|
Thanks Ghislain. I managed to make it working as I mentioned in the update, but the whole environment is still a little shaky. When I try to step through the script tool validation code, there is a big chance VS 2017 can't find the source code, then the Open Source window will be opened tryinig to find a file type of something like RDA_Tools_Pro\RDA Data Management.tbx#updateEventIDs.UpdateParameters.py : If I don't use step over mode, it seems working fine, it can hit the breakpoint and I can inspect the variable values. then I can set breakpoint at another location and use Continue command to run the program and make it stop at the breakpoint. It's not perfect, but I have to say it's much better than nothing 🙂
... View more
07-02-2018
04:52 PM
|
2
|
2
|
5607
|
|
POST
|
OK, Just an update. It turns out you need to turn off the Python Exception, in the VS 2017 Debug--> Options. Then you'll be able to stop at the break point set in your source code. I also installed Python native development tools for the Python development Workloads, but I don't know whether or not it has any effect on this outcome. Try turning off Python Exception first before installing this humongous component.
... View more
06-28-2018
09:37 PM
|
0
|
2
|
5607
|
|
POST
|
It is a reality that developers can use Visual Studio 2017 to interactively debug the script tools in ArcGIS Pro V2.2.0. This is clearly read and shown in the help document and the following video: Debug Python code—ArcPy Get Started | ArcGIS Desktop ArcGIS Pro and Python - YouTube I spent many hours trying to make the Visual Studio 2017 debugger (Community Version) working with ArcGIS Pro without much success. After I attached the debugger to the ArcGIS Pro process, I run the tool, then I 'll see the following error: Source Not Available and Frame not in module: If I Enable address-level debugging--> Show disassembly if source is not available in the Debug-->Options I'll the following error. To be honest, I don't think this setting make any sense for Python any way. No disassembly available. (not surprised) The way I set up the test: 1.Create a new python project in VS 2017. 2.Set the Python Environment to ArcGIS Pro env: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 3.Put something testing code in the .py file in the project: aprx = arcpy.mp.ArcGISProject("C:\RIASP II\RDA_Pro\RDA_Pro.aprx") m=aprx.listMaps("Current Work Space")[0] for lyr in m.listLayers(): if lyr.name=="Events": print(lyr.name) 4. create a script tool in ArcGIS Pro and point the script to the py file mentioned in step 3. 5. In VS 2017, Debug --> Attach to Process --> Attach to : Python Code --> ArcGIS Pro 6. Run the tool created in step 4 in ArcGIS Pro If I check the Solution Property in VS 2017, I found my source code paths are automatically put into Do not look for these source files!!! I tried to set the Directories containing source code in the above property window and empty the Do not look for these source files box before the debug, but, after the debug attempt my source code path will be put back in the Do not look for these source files. Have anyone else tried this and actually made it working? ESRI help document has not been very helpful to me so far..., Microsoft help document ? you know... At least, we can see the light at the end of the tunnel: A rich debug experience in an IDE for script tools built for ArcGIS Pro is coming... Any advice or suggestions will be highly appreciated.
... View more
06-28-2018
12:32 AM
|
3
|
9
|
7091
|
|
POST
|
Thank you for clarifying that there are only 3 renderers available at this version. --- I kind of figured that out yesterday by reading the API source code of the function in the subject, not a very efficient way. I am making 2 points here: Firstly, the document is not good enough for developers. I understand the development of the API in ESRI is moving fast, but the document should try to catch up. I hit many snags in using the API after switching from the ArcREST API in GitHub. Secondly, I am not seriously authoring a map using the API. I am only trying to automate some analysis and visualize the result. Otherwise, I'll be using a desktop app to author the map. Desktop applications such as ArcMap and ArcGIS Pro are always superior in authoring a high quality map with dedicated layout. I really see the great potential of ArcGIS Python API in Jupyter notebook, and glad to know there is a revamping of the map widget, which is the most exciting part of using the API in Jupyter environment. Thanks.
... View more
05-29-2018
11:55 PM
|
2
|
0
|
4682
|
|
POST
|
I am using Python API for ArcGIS for ArcGIS Online / portal.
... View more
05-28-2018
09:41 PM
|
0
|
1
|
4682
|
|
POST
|
add_layer (item, options=None) Adds the specified layer or item to the map widget. Argument Description item Required object. You can specify Item objects, Layer objects such as FeatureLayer, ImageryLayer, MapImageLayer etc., FeatureSet and FeatureCollection objects. options Optional dict. Specify visualization options such as renderer info, opacity, definition expressions. See example below It sounds great I can set the renderer on the fly for the layer that is going to be displayed in the map widget. but I wasted hours trying with no success. it always display the default renderer or the renderer defined in ArcGIS Online(if it's a existing layer). There is no consistent document for the accepting options. ALL you I can do was GUESSING... and there were no examples in place although it says "See example below" There are some examples for the smart mapping Smart Mapping | ArcGIS for Developers But it only mentions some renderer such as "ClassedColorRenderer", "ClassedSizeRenderer" and "HeatmapRenderer", these are useless to me, I need unique symbols for each feature , which should be the very basic renderer, but I sadly can't figure it out. Where is the full list of the accepting smart mapping renderers and document for other options for this function? I've tried to piece together information using the following help document, but just not enough... Renderer objects—Common Data Types | ArcGIS for Developers esri/renderers/smartMapping | API Reference | ArcGIS API for JavaScript 3.24 Generate Renderer (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers It's hard to believe such a important document is not available (or not very visible to users), given visualizing data is absolutely an essential part of the whole analysis. Another thing annoys me in the Smart Mapping | ArcGIS for Developers : To learn more about this exciting capability visit the help page and this blog article. Here is a detailed help on various ways you can symbolize your data. All these 3 links lead the developers to ArcGIS Online document, how can that help a developer using python?? I start wondering whether or not these links are put there by the AI algorithm which I will forgive totally because they can not understand complicated context yet. Back to the topic, Where is the document? if no such document , can ESRI please make some document? by the way, in the document, if mentioning some thing like "see example below" or "see Feature Input in documentation" (in create_buffer function description) , please do remember to put some example or document there. Thanks
... View more
05-28-2018
06:13 PM
|
1
|
6
|
5597
|
|
POST
|
Hi Tina, I built the app and released it to both Google Play Store and Apple App Store. All the complaints came from Android platform so far, no complaint from iOS platform. I had to embed most of the images into the HTML (help document) using Base64 code to avoid them from being downloaded to users' phones. Cheers, Simo
... View more
04-30-2018
05:43 PM
|
0
|
0
|
2020
|
|
POST
|
Hi Tina, Thank you for the answer. I am using Runtime 10.2.6, that may be the reason why I can't use WMTS? How hard it is to migrate an app build upon the old Quick Report template to the new QR template? Regards, Simo
... View more
04-19-2018
11:41 PM
|
0
|
2
|
1251
|
|
POST
|
I'd like to use WMTS in the basemap pikcer, but it seems it only supports ArcGIS server tile services. //Base Map Picker model property alias baseMapPickerModel: baseMapPickerModel ListModel { id: baseMapPickerModel ListElement { name: "Topography" url: "http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" image: "images/topo_thumbnail.png" } ListElement { name: "Satellite" url: "http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer" image: "images/satellite_thumbnail.png" } ListElement { name: "Streets" url: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" image: "images/streets_thumbnail.png" } } Can anyone confirm this? Thanks.
... View more
04-16-2018
07:46 PM
|
0
|
4
|
1322
|
|
POST
|
I've got the same issue and I've got several complaints about the icons and images in the app is messing up the user's personal photos! and those annoying icons and images will remain even after the users removed the app from their phones. I noticed that WebView does not support loading content through the Qt Resource system. but not sure if this is related to the issue. http://doc.qt.io/qt-5/qml-qtwebview-webview.html#loadHtml-method
... View more
04-15-2018
05:32 PM
|
0
|
0
|
2020
|
| 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
|