Can somebody help me in writing a rule which can tell how many edges does a plot share with the street and apply different rules according to it.
Example: If it is a corner plot then it shares 2 of its edges with the street. Hence a different rule applies to it than to a site which shares only one edge. For now it is a user defined value :
attr Type = "CLASS_A"
case Type == "CLASS_A" : LotA #shares one edge, apply rule LotA#
case Type == "CLASS_B" : LotB #shares two edges, apply rule LotB#
case Type == "CLASS_C" : LotC #shares three edges, apply rule LotC#
else : NIL
I want to write a rule that automatically does that. I can get the number of edges from geometry.egdes(correct me if I am wrong) but I dont know exactly how should I write the rule.