Giter Site home page Giter Site logo

Moving to PostGIS? about cityjson-qgis-plugin HOT 1 OPEN

cityjson avatar cityjson commented on July 30, 2024
Moving to PostGIS?

from cityjson-qgis-plugin.

Comments (1)

liberostelios avatar liberostelios commented on July 30, 2024

Thanks for your kind words! Glad to see that you found the plugin useful.

It's definitely possible to store 3D data in PostGIS, but making it work can be a bit tricky. I am not sure if a simple copy-paste would work out of the box. Maybe that would work, as soon as your layer's geometry definition in PostGIS is defined specifically for 3D? But I am not sure if I would trust QGIS in the process.

My suggestion is that you export from QGIS using the GDL toolbox. You'll have to make an intermediate file, though:

  1. Export the imported CityJSON layer to a file by right-clicking on the layer and selecting Export->Save features as.... I would suggest that you choose a Geopackage or GeoJSON. Make sure that under the you set the Geometry type to Polygon and that you have the Include z-dimension checkbox checked.
  2. From the toolbox select GDAL->Vector miscellaneous->Export to PostgreSQL (available connection). Select your connection and, as input, the file that you just exported. Also, make sure that you set the Vector dimensions to 3.

When I tested this, I ended up with 3d geometries in PostGIS.

from cityjson-qgis-plugin.

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.