Git Product home page Git Product logo

cjval's Introduction

CityJSON

GitHub tag (latest SemVer) GitHub license

This repository is where the specifications and the schemas of CityJSON are kept. All previous versions are kept in tags in the commits.

For all the details, see the official CityJSON website: https://cityjson.org.

What is CityJSON?

CityJSON is a JSON-based encoding for a subset of the OGC CityGML data model (version 3.0.0), which is an open standardised data model and exchange format (in GML) to store digital 3D models of cities and landscapes.

The aim of CityJSON is to offer an alternative to the GML encoding of CityGML, which can be verbose and complex (and thus rather frustrating to work with). CityJSON aims at being easy-to-use, both for reading datasets, and for creating them. It was designed with programmers in mind, so that tools and APIs supporting it can be quickly built, and several software have been created already.

Contributing to the project

We invite anyone to contribute to the development and improvement of CityJSON, all discussions, issues, and developments are open to everyone.

If you use CityJSON in an academic context, please cite this article

Ledoux H, Arroyo Ohori K, Kumar K, Dukai B, Labetski A, Vitalis S (2019). CityJSON: A compact and easy-to-use encoding of the CityGML data model. Open Geospatial Data, Software and Standards, 4:4 (DOI) (PDF)

cjval's People

Contributors

hugoledoux avatar lordi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lordi lengelen

cjval's Issues

Warnings not visible when there is an error

I realised that when there is an error in a CityJSON file, cjval only outputs the error and not the warnings about that file. Only when the error is fixed, the warnings are outputted. Wouldn't it be better if it was possible to see both errors and warnings at the same time?

Cannot reference an extraCityObject within the same extension file

I am trying to map this part of Energy ADE to CityJSON where DHWFacilities, ElectricalAppliances and LightingFacilities inherit from Facilities, and they are all extraCityObjects.
Screenshot 2021-11-23 113319 copy

To reference Facilities in DHWFacilities object, I tried adding the line below:

"+DHWFacilities": {
      "allOf": [
        { "$ref": "#/extraCityObjects/+Facilities" },
        ...

But when I validate it with cjval, I get the error below:
image

nice to have: a "processing..." indicator

When processing a large file, It is unclear if the program is actually doing anything, untill the chrome / firefox popup of "this webpage is slowing down your browser". This could be fixed by introducing web workers (offloading the process to a different thread), and by adding a small indication to tell the user that the program is running.

CityJSON validator issue

Hi, I am trying to use the validator (cjval: a validator for CityJSON files) to validate my CityJSON models schema. However, it seems like the validator can only support CityJSON v1.0 or v1.1 schema.

My CityJSON model is converted from the FME. It seems like FME only support CityJSON v1.0.1 schema?

May I ask is there any solution so that I can use your CityJSON?

Thank you very much.

Zachary

cjval returns non-zero exit code

version: 0.5.0
os: ubuntu 22.04
command: cjval tmoaf.city.json || echo "error"

This prints "error" at the end, which is only printed if the return code is non-zero (in bash).

I think cjval should return 0 if it manages to validate a file, regardless if the valid or invalid. It should only return non-zero if cjval cannot run for some reason.

The file is from https://github.com/cityjson/themotherofallfiles

parents/children properties cannot be "inherited" from _AbstractCityObject

I am trying to create an extraCityObject as follows:

"+UsageZone": {
      "allOf": [
        {
          "$ref": "cityobjects.schema.json#/_AbstractCityObject"
        },
        {
          "properties": {
               ...
           },
          "additionalProperties": false
         }
      ]
}

I thought that I did not need to add extra "parents" and "children" properties since these are already defined in _AbstractCityObject, but I guess because I included additionalProperties: false, cjval gives an error when I try to use parents/children properties in my json file.

Could this be caused by the validator itself?

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.