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

Complex Attributes in OGC API Feature-Items have empty content #54275

Closed
1 of 2 tasks
hebersgit opened this issue Aug 17, 2023 · 0 comments
Closed
1 of 2 tasks

Complex Attributes in OGC API Feature-Items have empty content #54275

hebersgit opened this issue Aug 17, 2023 · 0 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@hebersgit
Copy link

What is the bug or the crash?

If an item of the result of an OGC API Feature query contains a complex property, that means a property with sub-nodes, the content of the resulting field is always empty.

Steps to reproduce the issue

Call an OGC-Feature-API which delivers a property with a complex result, e.g. the property center in the following example:

  {
            "type": "Feature",
            "id": "item123",
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                       [...],
                       [...]
                    ]
                ]
            },
            "geometry_name": "geom",
            "properties": {
                "prop1": 2,
                "prop2": "abc",
                "center": {
                    "type": "Point",
                    "coordinates": [
                        6.50,
                        51.80
                    ]
                }
            },
            "bbox": [...]
        }

This happens if delivering a polygon-layer with a representative point with geoserver.

If inserting this layer into QGIS, all columns are generated correctly, the column "center" as Type=Map, Type Name=JSON. But the content of field center is empty for all features.

Versions

QGIS version
3.32.1-Lima
QGIS code revision
4a078ec
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.7.1
PROJ version
9.2.1
EPSG Registry database version
v10.088 (2023-05-13)
GEOS version
3.12.0-CAPI-1.18.0
SQLite version
3.41.1
PDAL version
2.5.5
PostgreSQL client version
15.2
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
excel_sync
3.6
pluginbuilder3
3.2.1
plugin_reloader
0.9.1
qgis2web
3.16.0
topojson_writer
0.1.1
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@hebersgit hebersgit added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 17, 2023
@agiudiceandrea agiudiceandrea added the Data Provider Related to specific vector, raster or mesh data providers label Aug 24, 2023
@rouault rouault self-assigned this Sep 17, 2023
rouault added a commit that referenced this issue Sep 20, 2023
[OAPIF] Handle features with complex attribute of QMap type (fixes #54275)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

3 participants