I have code that reused on different feature classes that does a basic intersects functionality to retrieve field values and insert into the $feature. Yet the code should by pass some functions if $feature is a point feature class verses $feature being a polygon feature. Is this possible?
if (Geometry($feature)== "point"){
# do this
}
if (Geometry($feature)== "polygon"){
# do that
}
Something to that effect.
Thanks in advance
~JS
Solved! Go to Solution.
Haven't tried it, but I think you could use Geometry type for that.
R_
Haven't tried it, but I think you could use Geometry type for that.
R_
Brilliant @RhettZufelt
You could also use
Lower(Geometry($feature).type)
For me the surrounding "Lower()" was needed in order to get lower case results (e.g. "polygon").
For more information about the "Geometry" object and its properties: