qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

No Geometry by LoD2 CityGML #43874

Closed StefanCiesilski closed 3 years ago

StefanCiesilski commented 3 years ago

By load the CityGML File. No Geometry in the 2D View.

LoD2_566_5690_2_TH.zip

QGIS and OS versions

QGIS-Version | 3.18.0-Zürich | QGIS-Codeversion | bdef9fb3 -- | -- | -- | -- Kompiliert gegen Qt | 5.15.2 | Laufendes Qt | 5.15.2 Kompiliert mit GDAL/OGR | 3.2.1 | Läuft mit GDAL/OGR | 3.2.1 Kompiliert mit GEOS | 3.9.1-CAPI-1.14.2 | Läuft mit GEOS | 3.9.1-CAPI-1.14.2 Kompiliert mit SQLite | 3.33.0 | Läuft mit SQLite | 3.33.0 Gegen PDAL kompiliert | 2.2.0 | Läuft mit PDAL | 2.2.0 (git-version: 38aa11) PostgreSQL-Client-Version | 13.0 | SpatiaLite-Version | 5.0.1-rc1 QWT-Version | 6.1.3 | QScintilla2-Version | 2.11.5 Kompiliert mit PROJ | 7.2.1 | Läuft mit PROJ | Rel. 7.2.1, January 1st, 2021 BS-Version | Windows 10 Version 2009 Aktive Python-Erweiterungen | BGTImport; CityJSON-loader; gml_application_schema_toolbox; slyr_community; db_manager; MetaSearch; processing

Additional context

gioman commented 3 years ago

@StefanCiesilski seems to me that the GML attached is a complex one, that needs the GMLAS driver to be correctly read, and that probably QGIS do not use by default:

ogrinfo -so GMLAS:LoD2_566_5690_2_TH.gml Building
INFO: Open of `GMLAS:LoD2_566_5690_2_TH.gml'
      using driver `GMLAS' successful.

Layer name: building
Geometry (lod1solid): PolyhedralSurface
Geometry (lod1multisurface): Multi Surface
Geometry (lod1terrainintersection): Multi Curve
Geometry (lod2solid): PolyhedralSurface
Geometry (lod2multisurface): Multi Surface
Geometry (lod2multicurve): Multi Curve
Geometry (lod2terrainintersection): Multi Curve
Geometry (lod3solid): PolyhedralSurface
Geometry (lod3multisurface): Multi Surface
Geometry (lod3multicurve): Multi Curve
Geometry (lod3terrainintersection): Multi Curve
Geometry (lod4solid): PolyhedralSurface
Geometry (lod4multisurface): Multi Surface
Geometry (lod4multicurve): Multi Curve
Geometry (lod4terrainintersection): Multi Curve
Feature Count: 365
SRS WKT (lod1solid):
(unknown)
SRS WKT (lod1multisurface):
(unknown)
SRS WKT (lod1terrainintersection):
(unknown)
SRS WKT (lod2solid):
(unknown)
SRS WKT (lod2multisurface):
(unknown)
SRS WKT (lod2multicurve):
(unknown)
SRS WKT (lod2terrainintersection):
(unknown)
SRS WKT (lod3solid):
(unknown)
SRS WKT (lod3multisurface):
(unknown)
SRS WKT (lod3multicurve):
(unknown)
SRS WKT (lod3terrainintersection):
(unknown)
SRS WKT (lod4solid):
(unknown)
SRS WKT (lod4multisurface):
(unknown)
SRS WKT (lod4multicurve):
(unknown)
SRS WKT (lod4terrainintersection):
(unknown)
Geometry Column 1 = lod1solid
Geometry Column 2 = lod1multisurface
Geometry Column 3 = lod1terrainintersection
Geometry Column 4 = lod2solid
Geometry Column 5 = lod2multisurface
Geometry Column 6 = lod2multicurve
Geometry Column 7 = lod2terrainintersection
Geometry Column 8 = lod3solid
Geometry Column 9 = lod3multisurface
Geometry Column 10 = lod3multicurve
Geometry Column 11 = lod3terrainintersection
Geometry Column 12 = lod4solid
Geometry Column 13 = lod4multisurface
Geometry Column 14 = lod4multicurve
Geometry Column 15 = lod4terrainintersection
ogr_pkid: String (0.0) NOT NULL
id: String (0.0)
description_href: String (0.0)
description_title: String (0.0)
description: String (0.0)
location_location_pkid: String (0.0)
creationdate: Date (0.0)
terminationdate: Date (0.0)
class: String (0.0)
function: StringList (0.0)
usage: StringList (0.0)
yearofconstruction: Integer (0.0)
yearofdemolition: Integer (0.0)
rooftype: String (0.0)
measuredheight_uom: String (0.0)
measuredheight: Real (0.0)
storeysaboveground: Integer (0.0)
storeysbelowground: Integer (0.0)
storeyheightsaboveground_uom: String (0.0)
storeyheightsaboveground: String (0.0)
storeyheightsbelowground_uom: String (0.0)
storeyheightsbelowground: String (0.0)
ogrinfo -so LoD2_566_5690_2_TH.gml Building
Warning 1: Unrecognized geometry type : 15
INFO: Open of `LoD2_566_5690_2_TH.gml'
      using driver `GML' successful.
Metadata:
  NAME=LoD2_566_5690_2_TH

Layer name: Building
Geometry: Unknown (any)
Feature Count: 365
Layer SRS WKT:
(unknown)
gml_id: String (0.0) NOT NULL
creationDate: String (10.0)
informationSystem: String (66.0)
name: String (16.0)
DatenquelleDachhoehe: IntegerList (0.0)
DatenquelleLage: IntegerList (0.0)
Geometrietyp2DReferenz: Integer (0.0)
Gemeindeschluessel: Integer (0.0)
DatenquelleBodenhoehe: IntegerList (0.0)
Grundrissaktualitaet: StringList (0.0)
function: String (10.0)
roofType: Integer (0.0)
measuredHeight: Real (0.0)
measuredHeight_uom: String (13.0)
CountryName: StringList (0.0)
LocalityName: StringList (0.0)
consistsOfBuildingPart|BuildingPart|creationDate: StringList (0.0)
consistsOfBuildingPart|BuildingPart|roofType: IntegerList (0.0)
consistsOfBuildingPart|BuildingPart|measuredHeight: RealList (0.0)
consistsOfBuildingPart|BuildingPart|measuredHeight_uom: StringList (0.0)
ThoroughfareNumber: StringList (0.0)
ThoroughfareName: StringList (0.0)
github-actions[bot] commented 3 years ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

StefanCiesilski commented 3 years ago

OK. Is there a plugin or is it only possible via the command line?

gioman commented 3 years ago

https://brgm.github.io/gml_application_schema_toolbox/

github-actions[bot] commented 3 years ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

github-actions[bot] commented 3 years ago

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. Or, if you have any further questions, there are also further support channels that can help you.