POST
|
In Pro, how do I get the leader lines to not cover up the marker symbol? Here is a zoomed-in screenshot of what is happening. I want it to just stop at the edge of the marker symbol, rather than going all the way to the center. Here is an illustration of what I'm trying to do in the next screenshot. Note how the leader line stops just short of the marker symbol. I created that screenshot with anno and moved the anchor point. While that achieves what I'm after, I don't want to have to do it for each feature.
... View more
05-30-2023
05:06 PM
|
1
|
13
|
2260
|
POST
|
Does anyone know how to specify an extent, rather than just using the current map extent? My map is really huge and I'm drawing it at 1:480,000. The drop-down for the scale has 1.1M as the most zoomed-in extent. My guess is that my map is just so big that it doesn't want to let me download that many features/tiles. It feels like I need to export this in tiles, and using screen extent feels rather imprecise. I can't find a GeoProcessing tool to do this, but maybe I'm missing something. Any other ideas? Or, if I download slightly overlapping areas, can I clip them to create meta-tiles (of tiled layers)?
... View more
05-16-2023
06:14 PM
|
0
|
0
|
490
|
POST
|
Pro 3.0.2 doesn't ask me where to store it or what to name it. It created a "VectorTileMaps" folder under my APRX's folder and put it there with a giant GUID (ID number) in the VTPK's file name.
... View more
05-16-2023
01:49 PM
|
0
|
0
|
493
|
POST
|
Without knowing the cost of this, I couldn't say if we can afford it, but as I said, the issue is time. Contracting with or selling to the government here is a long, slow process. The plan is to lay it out on a floor and have chess-type pieces we can move around to simulate equipment, supplies, and personnel in interactive exercises. I don't really know more than that, since I'm just creating the map but not too involved in the exercise planning.
... View more
05-16-2023
12:57 PM
|
0
|
0
|
2089
|
POST
|
Hey @MarcoBoeringa - This looks awesome! I'd love to pay you for this, but I work for the government and it might take years, which is more time than I have. If you need an early adopter and testimonial, I might be your guy.
... View more
05-15-2023
05:56 PM
|
0
|
2
|
2102
|
POST
|
Thanks @DavidPike - The link you posted was broken for me (tried on two computers). Is this it? https://community.esri.com/t5/arcgis-pro-questions/exporting-vector-tile-package/td-p/523007
... View more
05-15-2023
05:54 PM
|
1
|
0
|
2102
|
POST
|
Background: I'm using ArcGIS Pro to create a ginormous map of the lower 48 US states. This will be room-sized, approximately 36 feet by 24 feet. It will be exported as a single PNG and sent to a custom printer. Problem: When exporting the PNG, there will be missing tiles from the Esri basemaps. My best guess is it is making a zillion tile requests in the background and a couple of tiles get hung up from network hiccups. We did one of these in the past without a base map by creating our own hillshade, hydro, transportation, and land use layers, which was a hassle. Objective: Use a pre-existing base map, rather than create our own layers that simulate a base map. Idea 1: I like the default Pro "Topographic" map, which adds layers "World Topographic Map" and "World Hillshade" to my map. The hillshade layer has a cache property, which I've turned on, but the other does not have that property. Is there a way to force Pro to pre-download all the tiles and cache these? Idea 2: Is there a good base map that I can download and use? In the mobile world, I'd call this side-loading. Whether it's a custom base map, or just a layer I can download, anyone know of something good for the lower 48 US states? Also open to other strategies, so fire away! thanks!
... View more
05-12-2023
12:12 PM
|
0
|
9
|
2175
|
POST
|
This answer works, or at least gives me a good starting point to customize. I should note that 'Application' covers a bunch of different (sub)types. When I did a query for 'Application', I got these unique values: ['Desktop Application Template', 'Hub Site Application',
'Desktop Application', 'Web Mapping Application', 'Mobile Application',
'Application', 'Native Application'] More info: Here are the supported item types in the API. They are in the 3rd column. The list is nicely broken down into categories of maps, applications, tools, layers, etc. I suspect there are other types that have a set of sub-types, but needs further testing. The API's guide on content search is here.
... View more
04-28-2023
10:29 AM
|
2
|
0
|
890
|
IDEA
|
@COSPNWGuy - This should run on any system that has ArcGIS Pro. It may take significantly longer to do all the queries to the items than if it's running in an notebook running on the same location (Portal/AGOL) hosting the items, so be prepared to wait. The only major difference is how you create the GIS object. Here is how to do it in Pro: https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#connecting-through-arcgis-pro And how to do it in the Python Command Prompt app: https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#storing-your-credentials-locally
... View more
04-27-2023
03:07 PM
|
0
|
0
|
342
|
POST
|
I am planning to delete some hosted feature layers, but I'm wondering what resources are using them, such as webmaps, dashboards, StoryMaps, ExB, and Web App Builder apps. My resources are all shared to my AGOL Org (not public), so anyone in my org can discover and consume them without me knowing it. I marked my hosted feature layers as deprecated, but that doesn't show up for end users when the data layers are in a webmap, dashboards, etc., so it's a bit of a tree falling in the forest. The basic question is - how do we do an orderly clean-up of resources on AGOL so we have some confidence that we account for inter-dependencies between items? I'm thinking of some admin scripts, but maybe there's something in Pro or the web interface to find these? Is there some tool that will find other resources using my hosted feature layer? A typical workflow is layer>>webmap>>app, so once I identify the webmaps, I might have the same type of question about the various apps. Or working it from the other end, is there a way to go through all my org's items and find any that have deprecated dependencies, such as hosted feature layers and webmaps? Lastly, I should note that I am not an admin in my org, so I cannot see items that aren't shared to the org or a group I'm in. I can, however, ask that an admin compile this info for me.
... View more
04-27-2023
01:21 PM
|
1
|
2
|
938
|
POST
|
I ended up publishing the layers manually in Pro and lost interest in this problem. My recollection is that I ended up getting the code to work in a brand new APRX much later. I'm not sure if the APRX had gotten corrupted or maybe Esri upgraded AGOL in the interim. I never really felt like I identified the problem, much less the solution, but I do believe I eventually got it to work by starting over in a fresh APRX.
... View more
03-23-2023
10:22 AM
|
0
|
0
|
693
|
POST
|
I have a 3rd party website that I'd like to link to from my Web AppBuilder app. This website accepts form post submissions, and one of the required form fields is a polygon formatted as JSON text. It's remarkably simple to do in HTML, but I'm not sure how I'd add this to my Web AppBuilder app without creating a custom widget. Right now, this is deployed to ArcGIS Online, with no Portal or web servers from our organization, so I believe I am limited to the default widgets. Is there anything that could do something like this? I'm willing to get creative to work around how the input features are collected. Right now, the users mostly sketch polygons with their mouse, but we could use selected features or something else, as needed. Here is a working form from a basic HTML web page: <form name="SUBMIT_Form" target="_blank" method="post" action="<URL>">
<input type="hidden" name="location.footprint"
value="{"type":"Polygon","coordinates":[[[-75.347475,38.908866],[-75.341467,38.912406],[-75.331940,38.915344],[-75.324215,38.910937],[-75.323872,38.899382],[-75.337691,38.886422],[-75.352110,38.888493],[-75.356573,38.901185],[-75.347475,38.908866]]]}">
<input type="hidden" name="requestor" value="<our_app_URL>">
<input type="hidden" name="destination" value="resources">
<input type="hidden" name="project.name" value="">
<input type="submit" value="Open Report" />
</form>
... View more
02-03-2023
01:45 PM
|
0
|
0
|
306
|
POST
|
I was trying to do an overwrite, which sounds like a similar operation. I was getting the exact same error. A few notes on this: I solved the issue using pip to upgrade the ArcGIS API for Python. See below for instructions. My code worked fine in Pro 2.9.x, which I think used `arcgis` version 1.x. It started breaking when I upgraded to Pro 3.0.2, which comes with `arcgis` v2.0.1. I don't know what version of the API the issue was fixed in, but as of recently, version 2.1.0 was the latest on PyPI, and it solved the problem. I used breakpoints in the Python code to trace it to a function that accepts a user name and folder name, returning the AGOL item ID of a folder. The function was called incorrectly with the ID, not the name, and it returned `None`. The line after calling that function, the code tried to append the result to a string, which raised an exception. (Of course, it also raises the question why they're calling a function to get a folder ID if they already have that ID 😉). I was also seeing the problem go away when I used a smaller dataset. That's a real head-scratcher, because it doesn't seem related to the folder issue, but maybe smaller datasets are handled with a different protocol or something. I don't think I tried putting my item in the root folder. To resolve this, I cloned a new Conda environment. To upgrade `arcgis`, follow these steps: > activate <env_name>
> cd C:\Users\<username>\AppData\Local\ESRI\conda\envs\<env_name>\Scripts
> .\pip.exe install arcgis --upgrade Note: If you use a proxy server, pip will have additional parameters for that. To check the API version in your default Conda environment and a cloned env: (arcgispro-py3) C:\>python
Python 3.9.11 [MSC v.1931 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import arcgis
>>> arcgis.__version__
'2.0.1'
>>> exit()
(arcgispro-py3) C:\>activate <env_name>
(<env_name>) C:\>python
Python 3.9.11 [MSC v.1931 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import arcgis
>>> arcgis.__version__
'2.1.0'
... View more
01-30-2023
03:04 PM
|
0
|
0
|
866
|
POST
|
I'm pretty experienced with Python for geoprocessing (arcpy) and Enterprise/Online (ArcGIS API for Python), but new to creating GP services. I like to code Python in my IDE for debugging, code hints, etc. As I get started with geoprocessing services, I'm spending my time in Pro and the Idle editor, which is not where I want to develop complex code. Then, we have to share this to a service from our GP history, rather than the actual source code, which seems odd. Esri's docs say we can develop our code by shuttling it back and forth to our IDE via copy/paste, which seems inefficient. I have some specific questions below, but mostly I'm just looking for best practices and workflows. What's the best way to go from a full dev experience in a good Python IDE (Eclipse/PyDev, VS Code, PyCharm, etc.) to a working GP Service? Tips and tricks, please!!! Deployment: Esri has a Python sample to publish a GP service. It's not even using the latest .atbx format and publishes to AGS (not Portal), so it seems quite outdated, but might work. Is something like this how to deploy with Python? Toolbox format: There's the .tbx, .atbx, and .pyt formats. The .pyt format seems the most straightforward to edit, but I just get a 999999 error trying to share to Enterprise (version 10.81). What format do you use? Code structure: One thing I thought was to make my GP service just a basic shell and then deploy my main application logic separately. I should be able to add my own modules to the PYTHONPATH. I was even able to just drop Python modules into the same folder as my .atbx file on ArcGIS Server and it imported them ok. Anyhow, these are the ideas bouncing around in my head, and I'm sure there are other issues I haven't run into yet... I'd like to hear from others how they take complex Python code from their IDE to a GP service. Thanks!
... View more
11-14-2022
02:05 PM
|
2
|
5
|
1335
|
POST
|
I got this Traceback from an exception from arcpy.management.Delete: Traceback (most recent call last):
[...TRIMMED THE SAUSAGE-MAKING OF MY SCRIPTS...]
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6977, in Delete
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6974, in Delete
retval = convertArcObjectToPythonObject(gp.Delete_management(*gp_fixargs((in_data, data_type), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 000601: Cannot delete <PATH_TO_SDE_FILE>\<DATABASE>.<SCHEMA>.<FEATURE_CLASS>. May be locked by another application.
Underlying DBMS error [42S02:[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Cannot drop the procedure 'DBO.i68_return_ids', because it does not exist or you do not have permission.] [<DATABASE>.<SCHEMA>.<FEATURE_CLASS>]
Failed to execute (Delete). I had another table that I had created using non-Esri SQL. That table had a foreign key referencing my feature class. Because the table and FK were both created with SQL, I guess SDE doesn't know about them, so wasn't tracking them, and thus was unable to delete the feature class with another table referencing it. As soon as I dropped the FK, the error went away. I know we're supposed to always use Esri tools to manage database objects related to feature classes, but this seems like such a basic thing that it surprised me that arcpy's Delete couldn't figure it out.
... View more
10-18-2022
11:08 AM
|
0
|
0
|
153
|
Title | Kudos | Posted |
---|---|---|
1 | 03-18-2022 11:01 AM | |
3 | 11-13-2023 12:33 PM | |
2 | 11-09-2023 06:02 PM | |
1 | 06-08-2022 09:48 AM | |
1 | 08-07-2023 03:23 PM |
Online Status |
Offline
|
Date Last Visited |
02-23-2024
08:42 PM
|