Skip to content

Commit

Permalink
Merge pull request #628 from gisce/fix-a1-no-xy
Browse files Browse the repository at this point in the history
Solo utilizar la tabla de bloques si no hay geometría en la acometida
  • Loading branch information
ecarreras authored Mar 15, 2024
2 parents 7469f21 + 233d568 commit 3151d6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcnmc/cir_8_2021/FA1.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ def consumer(self):
)
id_escomesa = cups.get("id_escomesa")
o_nom_node = ''
vertex = ''
if id_escomesa:
escomesa = O.GiscedataCupsEscomesa.read(id_escomesa[0], ["node_id", "geom"])
if escomesa.get("geom",False):
Expand All @@ -519,7 +520,7 @@ def consumer(self):
bloc_escomesa = O.GiscegisBlocsEscomeses.read(
bloc_escomesa_id[0], ['node', 'vertex']
)
if bloc_escomesa['vertex']:
if bloc_escomesa['vertex'] and not vertex:
vertex = O.GiscegisVertex.read(
bloc_escomesa['vertex'][0], ['x', 'y']
)
Expand Down

0 comments on commit 3151d6e

Please sign in to comment.