equal
deleted
inserted
replaced
143 const "g", "$geometry[@Id = $elt/@id]"; |
143 const "g", "$geometry[@Id = $elt/@id]"; |
144 const "candidates", "$geometry[@Id != $elt/@id]"; |
144 const "candidates", "$geometry[@Id != $elt/@id]"; |
145 result """$candidates[(@Id = $groups/@id and (func:intersect($g, .) = 9)) or |
145 result """$candidates[(@Id = $groups/@id and (func:intersect($g, .) = 9)) or |
146 (not(@Id = $groups/@id) and (func:intersect($g, .) > 0 ))]"""; |
146 (not(@Id = $groups/@id) and (func:intersect($g, .) > 0 ))]"""; |
147 } |
147 } |
|
148 |
|
149 def "func:offset" { |
|
150 param "elt1"; |
|
151 param "elt2"; |
|
152 const "g1", "$geometry[@Id = $elt1/@id]"; |
|
153 const "g2", "$geometry[@Id = $elt2/@id]"; |
|
154 const "result" vector { |
|
155 attrib "x" value "$g2/@x - $g1/@x"; |
|
156 attrib "y" value "$g2/@y - $g1/@y"; |
|
157 } |
|
158 result "exsl:node-set($result)"; |
|
159 } |
|
160 |