New answers tagged

2

On the Properties tab for the layer, go to the Display tab. Use the dropdown under Display Expression to set the field to Struct_ID. Then save that option. If you don't want to have to do this every time you add the feature to a map, save the layer to an lyr file and add the data using that lyr file. Or, add it to a template map if you use those. ...


1

Not 100% sure the Try is helping here. But I would say it doesn't look like you're dealing with the condition where "SRC_NAME" is NOT in lstFields. I wonder does the below work? Using the else statement to catch these occurrences? Also combines the calculate and delete together as I assume you only want the delete to occur if the calculation has ...


2

First, it's important to understand that a feature collection is, itself, a sort of feature — or in the lesser-known terminology of the API, an “element”. Thus, like any other feature (or an image or image collection), the collection itself can have properties, which are completely separate from properties of features within the collection. As an example, ...


1

regex could be used to identify the suffix without having to know what exists ahead of time, so you could do something like this: import re # retrieve all field names field_names = [field.name for field in arcpy.ListFields(fc)] drop_fields = [] for name in field_names: # check to see if the field name contains a literal underscore followed by # ...


1

You can try the script below. Paste the script into a new editor in the Python console and click run. With this script, you can have all of your 125 shapefiles together in a folder and just change the file path in the src_folder variable to point to that folder (see comments in script). This means you don't need to have all 125 files loaded as layers in a ...


0

A little delayed, but I had the same problem. I solved it by signing into ArcGIS Pro as the owner of the item. I had to close the attribute table and re-open before I was able to edit the schema.


0

Using DPSSpatial SQL function I tried to subquery two tables which where NOT ascending ordered with DB Manager virtual layers as following : WITH query_name1 AS ( SELECT * FROM layer1 ORDER BY field ASC ) , query_name2 AS ( SELECT * FROM layer2 ORDER BY field ASC ) SELECT row_number() over () AS newunique_id , data.* from ( SELECT * ...


0

I just found that this can be achieved not under the fields tab of your layer properties or the attributes table but under layer properties > symbology > select "categorized" at the very top of the dialogue instead of single band > select a value > press the classify button and then you can set styles for each field.


0

No need for plugins. There is something called the Rename field tool. It can be found by: Go to the top-most menu bar Processing › Toolbox In the Processsing Toolbox, go to Vector Table › Rename field The Rename Field window will open In the Input layer field, select the layer that has the attribute table In the Field to rename field, select the field you ...


Top 50 recent answers are included