Code Monkey home page Code Monkey logo

Comments (6)

BWibo avatar BWibo commented on June 16, 2024

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.

karinpatenge avatar karinpatenge commented on June 16, 2024

For Oracle Spatial you can use SDO_UTIL.GET_2D_FOOTPRINT in combination with SDO_UTIL.TO_GEOJSON.

from 3dcitydb.

andredaa avatar andredaa commented on June 16, 2024

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.

gioagu avatar gioagu commented on June 16, 2024

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.

BWibo avatar BWibo commented on June 16, 2024

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.

andredaa avatar andredaa commented on June 16, 2024

@gioagu @BWibo thank you a lot, both of you. I think I can go from there :)

from 3dcitydb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.