Giter VIP home page Giter VIP logo

pg2i3s's Introduction

pg2i3s

Tools for converting 3D geometries (like buildings) from PostGIS to I3S Scene Layer Package file.

See multipatch2slpk.md for initial experiment creating slpk file from multipatch features using ArcGIS Pro.

Disclaimer

At the moment, this project really does nothing. Developers are welcome to contribute and get this project started.

I3S Specs

Spec: https://github.com/Esri/i3s-spec/blob/master/format/Indexed%203d%20Scene%20Layer%20Format%20Specification.md#_6_7

OGC Indexed 3d Scene Layer (I3S) and Scene Layer Package Format Specification: http://docs.opengeospatial.org/cs/17-014r5/17-014r5.html

Getting started

Start a POSTGIS database

$ docker run --name some-postgis -e POSTGRES_PASSWORD=postgres -p 5432:5432 mdillon/postgis

Create table according to the SQL in sample_Data/buildings.sql:

$ psql -h localhost -U postgres -f buildings.sql

The testtable contains 100 polyhedredalsurface geometries in Amsterdam consisting of triangles:

$  psql -U postgres

Password for user postgres:
psql (11.5 (Ubuntu 11.5-3.pgdg16.04+1), server 11.2 (Debian 11.2-1.pgdg90+1))
Type "help" for help.

postgres=# select count(*) from public.buildings_3857;
 count
-------
   100
(1 row)

postgres=#

Now change the connection string in Program.cs and get the project running.

Docker

Docker image or other releases not there yet.

Work priorities

First milestone is to read 3D building geometries from database and produce a slpk file thats usable in one of the existing (Javascript) clients for visualization.

Dependencies

Sample data

  • Folder Boston

  • Folder Germany

Input multipatch shapefile with sample buildings. Process to create see https://github.com/Geodan/pg2b3dm/blob/master/dataprocessing/dataprocessing_citygml.md

Output slpk is generated from the FME esrishape2i3s.fmw workbench using the i3s transformer.

pg2i3s's People

Contributors

bertt avatar

Stargazers

Fidel Lynn avatar  avatar Jim Young avatar Tisham Dhar avatar gis_zhong avatar

Watchers

 avatar James Cloos avatar  avatar

pg2i3s's Issues

Do you have any plans for converting geometries to i3s format?

Hi,
I want to ask some questions about converting geometries , is there any plan for that. I have 3d data that located on database . I can convert them to b3dm,obj,gltf... , But I dint implemented slpk yet. Can you give me opinion about it how it will be.

And also I want to thank yo for your other projects they gave me help too much

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.