All Projects → tudelft3d → val3dity

tudelft3d / val3dity

Licence: GPL-3.0 license
Validation of 3D primitives according to the international standard ISO19107

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CMake
9771 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to val3dity

g3d
Realtime WebGL rendering maps and big data visualizations based on MXFramework and Three.js.
Stars: ✭ 52 (-20%)
Mutual labels:  gis, 3d-gis
InEditor
A web-based editor for drawing and creating OGC IndoorGML data
Stars: ✭ 26 (-60%)
Mutual labels:  gml, indoorgml
deegree3
Official deegree repository providing geospatial core libraries, data access and advanced OGC web service implementations
Stars: ✭ 118 (+81.54%)
Mutual labels:  gis, gml
InViewer
A Three.js-based viewer for visualizing OGC IndoorGML data
Stars: ✭ 18 (-72.31%)
Mutual labels:  gml, indoorgml
importer-exporter
3D City Database client for high-performance import and export of 3D city model data
Stars: ✭ 104 (+60%)
Mutual labels:  gis, cityjson
twkb
A small GO parser for the TWKB format
Stars: ✭ 17 (-73.85%)
Mutual labels:  gis
climbing-data
Open license climbing data
Stars: ✭ 42 (-35.38%)
Mutual labels:  gis
platform
Mapseed is a simple, beautiful way to collect information and tell geographic stories.
Stars: ✭ 81 (+24.62%)
Mutual labels:  gis
CityEngine-Twitter
Visualise Twitter activity using a procedurally-generated 3D city model
Stars: ✭ 68 (+4.62%)
Mutual labels:  gis
shapefile-rs
Rust library to read & write shapefiles
Stars: ✭ 38 (-41.54%)
Mutual labels:  gis
FAST
A GML supplement library for GMS 2.3+
Stars: ✭ 22 (-66.15%)
Mutual labels:  gml
geologic-symbols-qgis
Geologic symbols library and development for QGIS
Stars: ✭ 63 (-3.08%)
Mutual labels:  gis
geokey
Platform for participatory mapping
Stars: ✭ 53 (-18.46%)
Mutual labels:  gis
AdvantEDGE
AdvantEDGE, Mobile Edge Emulation Platform
Stars: ✭ 36 (-44.62%)
Mutual labels:  gis
searchmap
Find places and Draw on Map using Google Maps API
Stars: ✭ 53 (-18.46%)
Mutual labels:  gis
cntms
Tile Map Server reverse proxy with coordinates regularization
Stars: ✭ 19 (-70.77%)
Mutual labels:  gis
geojson-to-wfs-t-2
A lightweight javascript module to format WFS-T-2 statements from GeoJSON features
Stars: ✭ 21 (-67.69%)
Mutual labels:  gis
eemont
A python package that extends Google Earth Engine.
Stars: ✭ 290 (+346.15%)
Mutual labels:  gis
GSFLOW-GRASS
Generates inputs for and runs the coupled groundwater-surface water model "GSFLOW"
Stars: ✭ 24 (-63.08%)
Mutual labels:  gis
Learning-R
R Tutorials
Stars: ✭ 26 (-60%)
Mutual labels:  gis

GitHub license docs webapp DOI

val3dity

val3dity---pronounced 'val-three-dity'---allows us to validate 3D primitives according to the international standard ISO19107. Think of it as PostGIS ST_IsValid, but for 3D primitives (PostGIS only validates 2D primitives).

In short, it verifies whether a 3D primitive respects the definition as given in ISO19107 and GML.

The validation of the following 3D primitives is fully supported:

  • MultiSurface
  • CompositeSurface
  • Solid
  • MultiSolid
  • CompositeSolid

Unlike many other validation tools in 3D GIS, inner rings in polygons/surfaces are supported and so are cavities in solids (also called voids or inner shells). However, as is the case for many formats used in practice, only planar and linear primitives are allowed: no curves or spheres or other parametrically-modelled primitives are supported. There is no plan to support these geometries.

val3dity accepts as input:

For the CityJSON and IndoorGML formats, extra validations are performed (specific to the format), eg the overlap between different parts of a building, or the validation of the navigation graph in IndoorGML.

Usage

val3dity is a command-line interface (CLI) programme only, with several options.

val3dity cli demo
No demo visible here? View it on asciinema.

Web application

If you don't want to go through the troubles of compiling and/or installing val3dity, we suggest you use the web application. Simply upload your file to our server and get a validation report back. We delete the file as soon as it has been validated (promised!). However, a file is limited to 50MB.

Installation of the command-line tool

macOS

The simplest, if you have Homebrew, is:

$ brew tap tudelft3d/software
$ brew install val3dity

You can also get the code, and compile it yourself. You first need to install the following free libraries:

  1. CGAL v5.0+
  2. Eigen library
  3. GEOS
  4. CMake

Under macOS, it's super easy, we suggest using Homebrew:

$ brew install cgal
$ brew install eigen
$ brew install geos
$ brew install cmake

and then

$ mkdir build
$ cd build
$ cmake ..
$ make

linux

Under Linux (at least Ubuntu), CGAL has to be compiled because apt-get doesn't give you a version with Eigen. Thus, in a nutshell,

  1. install Eigen library: $ sudo apt install libeigen3-dev
  2. install GEOS library: $ sudo apt install libgeos++-dev
  3. install CGAL: $ sudo apt-get install libcgal-dev - if it's not CGAL5 that is installed, download latest CGAL code and unzip somewhere - set CGAL_DIR to that folder, eg export CGAL_DIR=/home/hledoux/software/CGAL-5.0.2, this will tell your shell to use that version of CGAL (thus more version of CGAL can be installed on the same computer; see that handy manual)

Windows

For Windows, we offer an executable.

It's also possible to compile val3dity yourself with the CMake file we offer, but it's slightly more complex with the dependencies. We suggest you look at how we build it on GitHub Actions to get some inspirate (and help).

Usage

To compile and run val3dity (from the val3dity folder):

$ ./val3dity /data/cityjson/cube.json

The summary of the validation is reported, and you should see that cube.json contains one valid primitive.

Finally, to see all the options possible:

$ ./val3dity --help

Using val3dity as a library

val3dity can be compiled as a library:

$ cmake .. -DLIBRARY=true

There is a simple example of how to use it in ./demo_lib with instructions to compile it.

Unit tests

To verify that everything went fine during the compilation, run the unit tests (from the root folder of val3dity) (this requires pip install pytest pyyaml):

$ python -m pytest --runfull

You shouldn't get any errors.

Usage of Docker

To run val3dity over Docker simply execute:

$ docker run --rm  -v <local path where your files are>:/data tudelft3d/val3dity:<tag> <name of the dedicated file>

Where <tag> is docker image tag from https://hub.docker.com/r/tudelft3d/val3dity/tags

If you are using the --report option, then keep in mind that <local path where your files are> need to be writable by any user, otherwise your output won't be saved.

Documentation and help

Read the full documentation at https://val3dity.rtfd.io.

The primary channel to communicate with the developers is the Issues section.

If you have a question or came across a bug, please submit an issue there. However we ask you check first whether your problem has already been solved by someone else.

If you use val3dity in a scientific context, please cite these articles:

Ledoux, Hugo (2019). val3dity: validation of 3D GIS primitives according to the international standards. Open Geospatial Data, Software and Standards, 3(1), 2018, pp.1 [PDF] [DOI]

Ledoux, Hugo (2013). On the validation of solids represented with the international standards for geographic information. Computer-Aided Civil and Infrastructure Engineering, 28(9):693-706. [PDF] [DOI]

Error codes

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].