Software GIS para el diseño de redes FTTH | GeoFibra › Foros › Foro del Usuario GeoFibra › Error al calcular UUII
Este debate contiene 1 respuesta, tiene 1 mensaje y lo actualizó mrsanfru hace 5 años, 8 meses.
Buenas
A la hora de calcular el número de UUII me salta el siguiente error de python :
<span style=”color: #c80000;”>CRITICAL </span>Error : set-returning functions are not allowed in CASE
LINE 3: … WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(ge…
^
HINT: You might be able to move the set-returning function into a LATERAL FROM item.
QUERY: SELECT array_agg((CASE WHEN VAR_is_polygon THEN ST_ExteriorRing((rdump).geom) ELSE (rdump).geom END) ORDER BY (rdump).path[1]) AS geoms
FROM (
SELECT row_number() OVER () AS r, (CASE WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(geom) END) AS rdump
FROM (SELECT (ST_Dump(PAR_geom)).geom) AS p
) AS d
GROUP BY r
CONTEXT: función PL/pgSQL normalize_geometry(geometry,double precision,double precision,double precision,double precision,boolean) en la línea 34 en bucle FOR en torno a filas de un SELECT
<span style=”color: #dc7d00;”> WARNING </span>Traceback (most recent call last):
File “C:/Users/PcCom/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geofibra\geofibra_pro_utils.py”, line 193, in ejecutaSQL
cur.execute(sql)
psycopg2.NotSupportedError: set-returning functions are not allowed in CASE
LINE 3: … WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(ge…
^
HINT: You might be able to move the set-returning function into a LATERAL FROM item.
QUERY: SELECT array_agg((CASE WHEN VAR_is_polygon THEN ST_ExteriorRing((rdump).geom) ELSE (rdump).geom END) ORDER BY (rdump).path[1]) AS geoms
FROM (
SELECT row_number() OVER () AS r, (CASE WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(geom) END) AS rdump
FROM (SELECT (ST_Dump(PAR_geom)).geom) AS p
) AS d
GROUP BY r
CONTEXT: función PL/pgSQL normalize_geometry(geometry,double precision,double precision,double precision,double precision,boolean) en la línea 34 en bucle FOR en torno a filas de un SELECT
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:/Users/PcCom/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geofibra\GeoFibra.py”, line 341, in uuii
calculaUUII(almacen,residencial,industrial,oficinas,comercial,deportivo,espectaculos,ocio_hosteleria,sanidad_beneficiencia,cultural,religioso,suelo_sin_edificar,edificio_singular,almacen_agrario,industrial_agrario,agrario, sqlCreateCont,nombreBBDD, usuario, host, password, ”,pluginRoot, 0, numeroUUII)
File “C:/Users/PcCom/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geofibra\geofibra_pro_sqlDef.py”, line 178, in calculaUUII
ejecutaSQL(nombreBBDD, usuario, host, password, sqlDef+’;’)
File “C:/Users/PcCom/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geofibra\geofibra_pro_utils.py”, line 197, in ejecutaSQL
raise Exception(mensaje)
Exception: set-returning functions are not allowed in CASE
LINE 3: … WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(ge…
^
HINT: You might be able to move the set-returning function into a LATERAL FROM item.
QUERY: SELECT array_agg((CASE WHEN VAR_is_polygon THEN ST_ExteriorRing((rdump).geom) ELSE (rdump).geom END) ORDER BY (rdump).path[1]) AS geoms
FROM (
SELECT row_number() OVER () AS r, (CASE WHEN VAR_is_polygon THEN ST_DumpRings(geom) ELSE ST_Dump(geom) END) AS rdump
FROM (SELECT (ST_Dump(PAR_geom)).geom) AS p
) AS d
GROUP BY r
CONTEXT: función PL/pgSQL normalize_geometry(geometry,double precision,double precision,double precision,double precision,boolean) en la línea 34 en bucle FOR en torno a filas de un SELECT
Y por otro lado quería comentar que al igual que otros usuarios por el foro, a la hora de cargar el archivo.cat me da un error de permiso de lectura( la carpeta /temps posee permisos tanto de escritura como de lectura). Pero si importo el archivo.cat marcando la opción de servidor remoto lo hace sin ningún error. ¿Esto a que puede deberse?
Gracias de antemano
El archivo .cat ya ha cargado correctamente. Pero sigue produciéndose el mismo error al calcular las UI.
Debes estar registrado para responder a este debate.