In Python you should avoid naming variables or arguments the same as anyīuilt-ins, and input() is the name of a built-in function. I am not familiar with ArcGIS Pro, but do know Python fairly well. I'd rather not take this approach as the if/elif possibilities could wind up being extensive in nature and I'd like to run the routine only once.Ĭan you see any obvious issues with the setup below #Target Field NameĮlif 'Transport/Infrastructure' in input:Įlif 'Conservation/National Park' in input:Įlif 'Rural/Primary Production' in input: If I try a ternary statement, which means using a single term at a time, it seems to work just fine. If the field "assettype" contains a portion of the search string, then set the value of assettype_groupup to the value I return.Įg, if "assetttype" contains the string "Building |Residential |Large ", and I test whether it contains the term "Residential", and that evaluates to true, then return the string "Residential".Ĭurrently the code does not seem to be returning any result / has no effect, and appears to run too quickly (2-3 seconds for 3,000,000 lines). I have what should be a fairly straightforward operation failing in ArcGIS Pro 2.4, and cannot for the life of me work out why.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |