8

You can use in to check for membership: if FIELD in veg: return 'Vegetable' elif FIELD in fruit: return 'Fruit' For bonus points use sets, which offer better performance for this: veg = {'Carrot', 'Celery', 'Broccoli'} fruit = {'Apple', 'Banana', 'Grape'}


6

You can use strptime but it is probably easier to use pandas.to_datetime to convert the strings to datetimes. It is smarter/more flexible and can handle different string formats. Add a date field, create a function in Field Calculator or use da.UpdateCursor: import arcpy import pandas as pd table = r'C:\folder\Default.gdb\datedata' #Change to match your ...


2

When you "opened [the LPKX file] in ArcGIS Pro [and] found out that the functionality to add proportional piecharts is not (yet) implemented" I think you must have been using a version from before ArcGIS Pro supported chart symbology: A chart is a type of statistical graphic that represents data. Charts can be used as multivariate symbology in ...


2

I always prefer to use an UpdateCursor to update feature attributes, mainly because I find the syntax more readable and Esri has gone a long way in optimizing cursor performance. I would also recommend using the .lower() method to make sure case does not matter when checking your check lists. For example: import arcpy fc = r'C:\path\to\your\geodatabase.gdb\...


2

You will need to write a little bit of Python. You can add Calculate Value from the Utilities menu in ModelBuilder. You don't need to write a full function, you can supply the following as an expression: str(tuple(%Types%.split(";"))) This assumes you have a parameter named Types as you've mentioned in your question. Input: "foo;bar;foo2;bar2&...


2

In ArcGIS Pro, a thumbnail refers to the small image which appears in the item's metadata in the catalog, and, if published, in the item's content page of a portal. From your description, you want to include your images in the point's pop-up. There are a couple ways to do this. 1. File Path in Pop-up Image Requirement: the points layer must have some ...


1

For coordinate your X,Y field should be numbers. You have to convert them in DD, you can do it quite easy in excel by extracting firstly DDMMSS by using functions (left and right) than convert them into Decimal Degree DD=dd+(mm+(SS/60))/60.


1

Explore the Geographic Distribution Toolset in the Spatial Statistics Toolbox. There are tools that locate a central feature for a set of points. You would typically set the case field for grouping, so in your case your memberID.


1

For your arcade expression try something like this: var veges= ['Carrot','Celery','Broccoli'] IIF( indexof(veges, food ) > -1 , 'Vegetable', 'Fruit')


1

There are many reasons you can get this error, but here are some of the most common: Rasters do not have same extent or scale Rasters not in same geodatabase Rasters do not share same projection Output filename too long "Spatial Analyst" extension has not been enabled


1

The way to do it is using the <dyn type="layout" name="LayoutName" property="name"/> formatting tag.


1

I was able to paste this link https://spartagis.ncem.org/arcgis/rest/services/Public/NC_AllBuildings/MapServer/0 in the Portal search bar which allowed me to add the layer as a Feature Layer. I was then able to perform geoprocessing tasks on the layer.


1

Did you correctly install deep learning packages? Because I received same error message after I updated my ArcGIS Pro 2.6 from 2.5. I reinstalled the deep learning packages and it was solved. When you update the app your previous Python environments become useless and you should re-install the libraries and modules. So every time you update the app, the ...


1

I talked to the Editing team and this behavior is by design - they'll consider adding an option to change/disable it. In the meantime they suggested a workaround: if you hit Esc after the paste is completed, it will de-activate the tool. Hope this helps!


1

Tile Packages are produced from ArcPro by using the Create Map Tile Package processing tool (documentation.) This tool is available from arcpy; the documentation includes python syntax examples. Once the tile package is produced, you can publish it using python.


Only top voted, non community-wiki answers of a minimum length are eligible