-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while populating layer in layer loader. #71
Comments
Hello @behjani, Can you triple check that the "postgis" extension is enabled, not only for the default schema but also for the additional schemas that the plugin installs in the db? Sometimes depending on how PostGIS is installed or loaded, "postgis" may not be accessed in schemas outside of the search path. In psql you can use to see what versions you have installed and also what schema they are installed.
from: https://postgis.net/docs/postgis_installation.html Let us know :) |
Hello @pancost :) Thank you very much for the quick response. All schemas are included in search_path and all users have full access rights. List of installed extensions However, the error still exists. |
Thanks for checking, you're correct. Did you already try to reinstall the QGIS Package to your DB? Sorry for the "IT101" type of support, I am not able to reproduce the issue. @gioagu maybe you stumbled upon this issue before? |
Dear @behjani, sorry for the belated answer. I am now first of all trying to understand your issue. I may need some further details (read later on). FYI: I am using Windows 11, 3DCityDB 4.4.1, Importer/Exporter 5.5.0, PostgreSQL 16, PostGIS 3.5, and the current dev version of the plugin (soon to be 0.8.10). Please be aware that no changes were done to any SQL function for the building module so far, so you can still use 0.8.9 for testing!
Am I doing anything different from what you did (besides having just one tile instead of the whole city)? |
Addendum 1:
Now, I could not reproduce your issue. At the moment, it sounds like a configuration or installation issue and not a bug in the plugin. If not, let me know. Merry Christmas! |
Hello @gioagu thanks for your help. I will redo it from scratch and let u know if its based on a configuration error after Christmas. Exporting the data as .json using the importer/exporter and importing it into QGIS with the JSONLoader Plugin worked just fine, so the data itself seems alright. Merry Christmas |
Thank you for your efforts and developing this plugin to process CityGML data.
I have tried applying and the following error message appears several times when updating the layer:
CRITICAL Refreshing layers ERROR at citydb-tools\cdb4\gui_loader\functions\threads.py>refresh_all_gviews_thread
ERROR: FEHLER: Typ »geometry« existiert nicht
LINE 5: snapped_poly geometry(PolygonZ);
^
QUERY:
DECLARE
dec_prec numeric;
srid_id integer;
snapped_poly geometry(PolygonZ);
num_geoms integer;
is_empty_geom boolean;
ring geometry(LinestringZ);
o_ring geometry(LinestringZ);
i_ring geometry(LinestringZ);
i_rings geometry(LinestringZ)[];
n_int_rings integer;
i integer; r RECORD;
area_poly numeric;
new_polygon geometry(PolygonZ);
As a result, I am unable to complete the task of populating the layer and am stuck at this point.
I am using PostgreSQL 17, PostGIS 3.5.0, QGIS 3.34.13, 3DCityDB Tools 0.8.9 and 3D City Database Importer/Exporter 5.4.0. The data contains the building model of the city of Hamburg in LOD 2 (Link: https://suche.transparenz.hamburg.de/dataset/3d-gebaeudemodell-lod2-de-hamburg2)
Thank you for any help. Keep up the good work.
The text was updated successfully, but these errors were encountered: