|
IDEA
|
I would like a geoprocessing tool that would let you import domains from a source geodatabase to a target geodatabase. I don't want to have to export the domain using Domain to Table and import it using Table to Domain if I'm not modifying it in anyway. The parameters would be the source geodatabase, the target geodatabase, the domains that are available to import from the source to the target, and a boolean indicating if you want to override existing domains in the target.
... View more
03-12-2021
12:37 PM
|
2
|
0
|
8564
|
|
IDEA
|
Yes, I meant the Create Feature Class wizard. Sorry, I'm learning ArcGIS Pro and I got the impression that the wizard was actually a GP tool. I was referring to the pane that opens up when you right-click on a geodatabase and choose New --> Feature Class. I would swear there are wizards that became GP tools in ArcGIS Pro.
... View more
03-12-2021
08:42 AM
|
0
|
0
|
2851
|
|
IDEA
|
Yes, I see that under the keyboard shortcuts now. Personally, I would prefer it you could just start typing and override the contents when you tab to it or if the cursor entered the cell at least. F2 is faster than the mouse.
... View more
03-11-2021
12:59 PM
|
0
|
0
|
715
|
|
IDEA
|
Please add the ability to specify the domain for a field when defining fields in the Create Feature Class tool. It used to be available in ArcMap when you created tables by right-clicking on a geodatabase.
... View more
03-11-2021
12:42 PM
|
4
|
8
|
2914
|
|
IDEA
|
When adding fields from the Design Fields view to a feature class, I can set all of the properties without using the mouse except for one. When I tab over to the field size of a text field, I try space bar or enter, but I don't know how to set the focus on the text field length to type in the value I want. I'm doing a lot of data modeling right now and having to pick up the mouse each field is slower than typing and tabbing.
... View more
03-11-2021
12:30 PM
|
1
|
2
|
745
|
|
POST
|
I'm diligently troubleshooting now. The main block of code in the script is a try/except/finally block. If I replace the try with pass, the script exits successfully as a task. So, it seems like something from inside the try block is keeping it from exiting. What's interesting is that the task is set to stop the task if it runs over two hours and kill it if it won't stop on its own. That is not working at all. So, I am going through the try block a little bit at a time and running the script. I will let you know if I solve it.
... View more
03-11-2021
11:31 AM
|
0
|
0
|
2912
|
|
POST
|
We just migrated Python scripts running on an old Windows 7 VM to a Windows 10 VM. Most of them worked just fine, but one script that ends with the following statement hangs when run from Task Scheduler. sys.exit(0 if successful else 1) If I run it from the command line or IDLE, it completes just fine. It only hangs as a scheduled task. I added print statements on every line at the end and the only one that doesn't execute is the one after sys.exit. So either it is hanging on sys.exit in Python or Task Scheduler is having an issue after the script finishes. This only happens in the script where I have a sys.exit call. I added it to let me know if the script had any errors in it. I catch any exceptions in the script and add them to an email notification, so the script normally ends with return code 0 if I don't do this. I can imagine some workarounds, but I wanted to see why it no longer works anymore. Any one else have experience with this?
... View more
03-11-2021
10:59 AM
|
0
|
2
|
2922
|
|
POST
|
Technical support got back to me. They said using Rename to move a file geodatabase is not supported. I should use Copy and Delete.
... View more
02-04-2021
11:17 AM
|
2
|
0
|
2007
|
|
POST
|
I thought of that, but I read too many posts recommending to use the software over manually doing it. Realistically, I do that all the time, so I shouldn't worry about it. I was just wondering if I was missing something in the software.
... View more
02-04-2021
11:12 AM
|
1
|
1
|
2008
|
|
POST
|
Is there a proper way to move a file geodatabase from one folder to another in ArcPy using ArcGIS Pro and Python 3.7? If I use arcpy.management.Rename, I get an error saying the workspace already exists. Changing the folder only works if the name of the geodatabase also changes. I can also use Copy and Delete, but moving a file geodatabase seems like a fundamental operation that you should be able to do in ArcPy. Also, the documentation is not very clear about file geodatabases, it talks more about feature classes.
... View more
02-04-2021
10:18 AM
|
0
|
3
|
2025
|
|
POST
|
That's interesting. I went to the Portal settings page and found the following: Federated Server - https://servername:6443/arcgis Hosted Server - https://servername/server Here are the results when I make different method calls: get("HOSTED_SERVER") - https://servername/server get("FEDERATED_SERVER") - [] list() - https://servername:6443/arcgis You can see how that is kind of strange behavior. It's almost as if list really means list the federated servers. Also, I really don't understand why list takes one minute and get takes one second.
... View more
01-28-2021
09:18 AM
|
0
|
0
|
1031
|
|
POST
|
Thanks, I will add that one to my toolbox. I can see the url attribute now.
... View more
01-27-2021
03:39 PM
|
0
|
0
|
1877
|
|
POST
|
Yes, I was thinking of that but the documentation only shows constructor arguments, not available properties. I printed the __dict__ property of the Server objects and _url was listed, but I did not want to use a private variable. I do see how url is a property if you just try to access it. It would be nice if the documentation was more thorough like the JavaScript API. I prefer having the public attributes described.
... View more
01-27-2021
11:19 AM
|
0
|
2
|
1885
|
|
POST
|
I'm trying to learn the ArcGIS API for Python and get used to this pattern of iterating over lists to get the resource you want. I just don't see in the documentation how you would use the list method to list the servers from a ServerManager object and select one of them specifically. If I had multiple servers, how would I use the URL to select a server from the list. I don't like the answer just list them in a Jupyter notebook and choose which one you need. I'm going to be putting this in a script and I also don't like the idea of just hardcoding the index either. I don't trust that the order will always be the same in the future. I can see all the arguments for the class constructor, but I don't see much in general for class attributes.
... View more
01-26-2021
07:19 PM
|
0
|
4
|
1931
|
|
POST
|
I am migrating from my own Python 2.7 package for performing administrative tasks against the various ArcGIS REST API endpoints to the ArcGIS API for Python. The biggest question for day one is why do I get different results when I use the arcgis.gis.server.ServerManager.get method versus the arcgis.gis.server.ServerManager.list method. For example, list gives me a list of one server that references the web adaptor URL while get returns a similar list with the direct administrative URL on the server. From here, I tested some code to find and start or stop a service. The problem is that the list method server works and the get method server doesn't. Now I can think hard about why one works and the other doesn't from an ArcGIS Server standpoint, but I don't see why the two different methods in the ArcGIS API for Python yield different results. Second, the list method is very slow (about 1 minute), while the get method is very fast. That is why I tried the get approach in the first place, namely to speed up the process. If I were to make the REST requests directly, I wouldn't have to wait this minute for no apparent reason.
... View more
01-26-2021
07:04 PM
|
0
|
2
|
1074
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2025 03:29 PM | |
| 1 | 11-30-2022 09:47 AM | |
| 2 | 03-04-2022 01:16 PM | |
| 1 | 04-10-2024 05:21 PM | |
| 1 | 08-23-2023 10:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|