|
POST
|
Will the changes actually remove records or just some fields? If the row count remains the same across the board, you can download the old data, make the changes, join the old data to the new data on the common key field and then field calculate the old data over to the new format. Whipping up a dummy survey to test the workflow is a good idea, you can never tell what Survey123 might do on schema changes!
... View more
02-01-2024
01:40 PM
|
0
|
1
|
1823
|
|
POST
|
You could maybe get jagged arrays working with a ValueTable but you might run into ergonomics issues. My preferred solution is a multivalue string parameter where each value is delimited with a known character. As long as you validate each value in the updateParameters validation step you should be good to go.
... View more
01-25-2024
10:48 AM
|
0
|
0
|
1504
|
|
POST
|
Does subclassing the tool and overriding the category work? You'd have to duplicate things like metadata between both tools but this seems like the lowest cost solution.
... View more
01-25-2024
10:33 AM
|
0
|
0
|
697
|
|
POST
|
If all the info you need is in the same record, the Field Calculator is the usual solution, here's an overview. If you need to work other records into each record's results, you might find something appropriate in the Analysis toolbox. If that fails, you may need to dig into arcpy and use the cursor objects to implement a custom solution.
... View more
01-11-2024
01:35 PM
|
0
|
0
|
756
|
|
POST
|
As a one-line function: def sub_to_zero(a, b): return a - b if a > b else 0
... View more
01-11-2024
12:50 PM
|
1
|
0
|
4564
|
|
POST
|
Just create a new project in each user's share folder, this includes a gdb and toolbox along with all the other project items. That said, treating Pro like ArcMap is going to lead to endless friction. If you structure your work around what you're doing vs. who's doing it then you can create projects for each discrete task. Client wants a new set of maps? Make a project! Need to process a big folder of soil samples or road network updates? Make a project! Projects also work for long running jobs, like keeping all your web service sources in one place.
... View more
12-22-2023
08:39 AM
|
0
|
1
|
4074
|
|
IDEA
|
This would be a massive boon for our org, our #1 source of user issues is failing to login correctly. The two biggest features we'd like to see are: A customizable header that includes our logo and instructions. The ability to make one of the login options much less prominent (in our case, the ArcGIS Login section). The current login layout treats both methods as equally valid which is unsuitable for 99% of our users and leads to confusion, an option to make that section harder to interact with would be great.
... View more
12-19-2023
09:24 AM
|
0
|
0
|
2576
|
|
POST
|
You can do this by: Looking for a text file with config options in a known location and populating those values in the tool's validation section if they exist, and Writing the user's chosen values to said config file if no default value exists. For the location of the file, the best practice for Windows is to use a folder with your team's name in the %APPDATA% folder, which is set per user. You can get the config file like so: import os
from os import path
folder = path.expandvars("%APPDATA%\\AlfredSoft")
if not path.exists(folder):
os.mkdir(folder)
config_path = path.join(folder, "tool_config.json") # Or whatever format works for you
if path.exists(config_path):
with open(config_path) as config:
pass # Work with the file here! As for creating or editing the config file, you should do that in the tool itself or in the validator's updateParameters method, depending on how you want to lay your code out. If you get reading working then writing shouldn't be much more work.
... View more
12-01-2023
03:15 PM
|
2
|
0
|
2041
|
|
POST
|
One last place to look is the map itself, there may be an option set there that the designer doesn't override
... View more
12-01-2023
12:56 PM
|
1
|
0
|
1844
|
|
POST
|
It might be worth a quick trip to the official Python docs for file objects. In short, the "open" function returns a file object with various settings from the function, including the file's encoding. The "writer" object from the "csv" module is just a wrapper around the file object that translates raw CSV data to and from Python data types; you can write a CSV file without the wrapper but it makes it easier.
... View more
11-28-2023
01:49 PM
|
0
|
0
|
5195
|
|
POST
|
You open the file on line 27, try adding encoding="utf-8" as parameter and see if that fixes things.
... View more
11-27-2023
12:38 PM
|
0
|
0
|
5217
|
|
POST
|
Based on the encoding the CSV writer pulled in you're trying to write the data to a file that isn't Unicode compatible. Specify a suitable encoding when you open the file ("utf-8" works in virtually every case) and you should make more progress.
... View more
11-27-2023
11:27 AM
|
0
|
2
|
5232
|
|
POST
|
Here's a summary of Shapefiles from the docs: link. In short: a shapefile is made of multiple files all in the same folder with the same filename. ArcGIS applications will show these files as a single ".shp" item in the catalog as there's no reason to work with each file separately in the apps. Just make sure you always keep your files grouped together in the same folder and it should all work out. Each file will be modified as required based on the processing you do so you don't have to babysit anything.
... View more
11-24-2023
09:33 AM
|
0
|
1
|
3006
|
|
POST
|
This is a solid script, one minor tweak that can be handy with massive datasets is: fc_dataframe = DataFrame((row for row in SearchCursor(input_fc, final_fields, query)), columns=final_fields) This avoids creating a list for the data before it hits the DataFrame, saving a decent chunk of memory. Might even be faster in some cases.
... View more
11-15-2023
05:21 PM
|
0
|
1
|
9479
|
|
POST
|
From the SQL end, any registered table that's branch versioned will have some special fields to track the branch version info. In my environment the GDB_IS_DELETE field is a solid indicator, your EGDB configuration may create different fields. I'm not a SQL wizard but if you can get the schema for every table programmatically that should do you.
... View more
11-01-2023
02:03 PM
|
0
|
0
|
4887
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-24-2023 11:47 AM | |
| 2 | 04-09-2026 11:36 AM | |
| 1 | 09-08-2023 10:07 AM | |
| 3 | 03-26-2026 08:11 AM | |
| 2 | 03-12-2026 01:41 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|