AnsweredAssumed Answered

Finding Number of Edges a Plot Shares with a Street

Question asked by Ankita_Diwan on Jul 2, 2015
Latest reply on Jul 5, 2015 by Ankita_Diwan

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 :

 

@Range("CLASS_A","CLASS_B", "CLASS_C")

attr Type = "CLASS_A"

 

Lot -->

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.

 

Thanks

Outcomes