Python GIS Examples - Killer One-Line Expression to Get You Some Python Chops

Опубликовано: 09 Октябрь 2024
на канале: GIS Chops
3,036
215

Here's a one line Python example you can use to extract a string of text from a longer string of text using the Calculate Field tool or Field Calculator in ArcGIS Pro.

This expression uses Python's built-in string split() method. I failed to mention in the video that the default (no parameter) option uses white space to split the text - white space means space characters, tab characters and a few more.