Skip to content
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

Publishing layer from external DB with QML #818

Closed
jirik opened this issue Apr 5, 2023 · 1 comment
Closed

Publishing layer from external DB with QML #818

jirik opened this issue Apr 5, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jirik
Copy link
Member

jirik commented Apr 5, 2023

Traceback (most recent call last):
  File "/code/src/layman/layer/db/__init__.py", line 589, in get_geometry_types
    cur.execute(query)
psycopg2.errors.UndefinedColumn: column "wkb_geometry" does not exist
LINE 2:     select distinct ST_GeometryType("wkb_geometry") as geome...
                                            ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/code/src/layman/make_celery.py", line 36, in __call__
    return self.run(*args, **kwargs)
  File "/code/src/layman/layer/qgis/tasks.py", line 29, in refresh_wms
    wms.save_qgs_file(workspace, layername)
  File "/code/src/layman/layer/qgis/wms.py", line 76, in save_qgs_file
    db_types = db.get_geometry_types(db_schema, table_name, conn_cur=conn_cur)
  File "/code/src/layman/layer/db/__init__.py", line 592, in get_geometry_types
    raise LaymanError(7) from exc
layman.http.LaymanError: LaymanError code=7 message=Database query error data=None private_info=None
@jirik jirik added the bug Something isn't working label Apr 5, 2023
@jirik jirik added this to the Release 1.21 milestone Apr 5, 2023
@jirik
Copy link
Member Author

jirik commented Apr 5, 2023

Forgot to pass column name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant