Select to view content in your preferred language

isBlankShape function (shape is null, or geometry is nil or null)

551
3
12-07-2023 11:49 PM
Status: Open
Bud
by
Esteemed Contributor

It would help to have an Arcade function called isBlankShape where you pass in a shape value and the function checks to see if the shape is blank or not:

  1. False: Has shape and geometry. Normal feature with populated coordinates; visible in the map
  2. True: Shape is not null, but geometry is nil/zero-vertex
  3. True: Shape is not null, but geometry is null
  4. True: Shape field is completely null
3 Comments
AmirBar-Maor

Another option could be to enhance IsEmpty() method to work on the shape field.

AndrewQuee

Good idea.  I was going to suggest ST_GEOMETRY SQL functions (which is what we use) but I see you've already gone down that road.