Comments (6)
Hey, the 3DCityDB Importer/Exporter supports CityJSON too.
https://github.com/3dcitydb/importer-exporter
You can use e.g. an SQL Filter to extract GroundSurfaces:
https://3dcitydb-docs.readthedocs.io/en/latest/impexp/export-filters/sql.html
from 3dcitydb.
For Oracle Spatial you can use SDO_UTIL.GET_2D_FOOTPRINT in combination with SDO_UTIL.TO_GEOJSON.
from 3dcitydb.
Thank you for your feedback :)
@karinpatenge We are looking for an open source solution, so unfortunately I think the Oracle solution we could not use.
@BWibo If I understand CityJSON right, it does not help us. We need to extract the 2D floor geometries.
Can the SQL export filter also filter geometries? I am used to working with geojson - however never much touched CityGML. Is there a way to tell which geometry is a footprint/floor one? Are they usually annotated as 1 continuous polygon for a building - or is it many neighboring geometries per floor?
Thank you for your help,
Best
Andre
from 3dcitydb.
Dear all,
Maybe not really a solution, but a suggestion to solve the problem from another angle...
Have you considered using the 3DCityDB-Tools plugin for QGIS?
It will allow you to interact with data in the 3DCityDB and create "sort of" traditional GIS layers (including lod0 footprints and roofprints). From QGIS, you could then generate GeoJSON using the usual export as...
Beware, layers are generated directly in PostgreSQL, so you could use Python (or whatever you prefer) to convert the layers into GeoJSON from there.
Link: https://github.com/tudelft3d/3DCityDB-Tools-for-QGIS
(Check the user manual) ;-)
from 3dcitydb.
Can the SQL export filter also filter geometries?
If you have LoD2 data, you can filter for BuildingGroundSurfaces
using SQL. Check the Building module of 3DCityDB and look for the ThematicSurfaces
. UsingPostGIS functions you can for this to 2D.
https://3dcitydb-docs.readthedocs.io/en/latest/3dcitydb/schema/building.html
For LoD1 data this should be possible using PostGIS functions.
I'd recommend to take a look at the building model of CityGML. It won't take very long to get a basic understanding of the model and it will help you a lot!
https://www.ogc.org/standard/citygml/
from 3dcitydb.
@gioagu @BWibo thank you a lot, both of you. I think I can go from there :)
from 3dcitydb.
Related Issues (20)
- Enhance Github labels
- Github issue form templates
- High number of export files HOT 6
- [Question] CityGML coordinates understanding problem HOT 2
- rename "val_reference_type" to "feature_reference_type" HOT 1
- change index on "name" column of "property"
- Change xal_source column of address to support more content besides xAL
- Remove column supertype_id of table datatype HOT 2
- Drop the "type" column from the geometry_data table
- Drop "val_implicitgeom_transform" column HOT 1
- Change gt_orientation to json HOT 1
- Drop "val_implicitgeom_refpoint" coulmn?
- Data creation learning-curve barrier HOT 3
- Some changes to indexes HOT 1
- Drop the "objectid" column from the geometry_data table HOT 1
- Minor changes to "property" table HOT 2
- Resolve inconsistency between objectclass and datatype HOT 2
- Harmonize file names and directory names HOT 3
- Error on import of 2.0 model HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dcitydb.