Giter Site home page Giter Site logo

kkimmy / cityjson2gltf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tudelft3d/cityjson2gltf

1.0 0.0 0.0 2.44 MB

An experimental python utility to convert CityJSON datasets to glTF 2.0 and schematically validate glTF datasets

License: MIT License

Python 100.00%

cityjson2gltf's Introduction

CityJSON2glTF

An experimental python utility to convert CityJSON datasets to glTF and schematically validate glTF datasets.

Things to know

CityJSON

CityJSON is a format for encoding a subset of the CityGML data model using JSON (JavaScript Object Notation). It offers an alternative to the GML encoding of CityGML.

glTF

A glTF asset is represented by a JSON based scene description file and a binary (.bin) file containing the geometry (vertices, indexes and/or animation data) of the asset.

System requirements

Python packages:

OS and Python version

The software has been developed on Mac OSX in Python 3.7, and has not been tested with other configurations. Hence, it is possible that some of the functions will not work on Windows.

How to use?

CityJSON2glTF

To convert CityGML data into COLLADA, use the following command:

python3 cityjson2gltf.py -i /path/to/CityJSONfile/ -o /path/to/new/glTFfile/

CityJSON requirements

Mandatory:

  • LOD1 CityJSON files (works with LOD2 or higher too but does not thematically differentiate surfaces such as roofs, walls, etc.)
  • CityJSON version 0.7 or higher (We did not test files with version < 0.7)
  • Files must end with .json, or .JSON
  • Your files must be valid (see the next section)

Data validation

CityJSON

Hugo Ledoux built val3dity, a thorough GML validator which is available for free through a web interface. It can also validate CityJSON files. Use this tool to test your CityJSON files.

glTF

To validate your glTF files against the schema (1.0 or 2.0) you can use our validator.

python3 glTF_schema_validator.py -i /path/to/COLLADAfile/ -schema /path/to/glTFschema/

Conditions for use

This software is free to use. You are kindly asked to acknowledge its use by citing it in a research paper you are writing, reports, and/or other applicable materials. Yo can cite this paper:

Kumar, K., Ledoux, H., and Stoter, J.: Dynamic 3D visualization of floods: case of the Netherlands, Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci., XLII-4/W10, 83-87, https://doi.org/10.5194/isprs-archives-XLII-4-W10-83-2018, 2018.

cityjson2gltf's People

Contributors

kkimmy avatar

Stargazers

Norena Martin-Dorta avatar

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.