Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

citygml-validate-shell

polygon-city22MIT0.1.25

Validate a CityGML shell against the QIE suite

citygml, validation, geometry, shell, solid, 3d, mapping, gis

readme

CityGML Validate Shell

Validate a CityGML shell against the QIE suite

Usage

var _ = require("lodash");
var citygmlPolygons = require("citygml-polygons");
var citygmlValidateShell = require("citygml-validate-shell");

var xml = "..."; // Some CityGML
var polygons = citygmlPolygons(xml);

// Validate shell as a whole
citygmlValidateShell(polygons, function(err, results) {
  _.each(results, function(vError) {
    // Should always be an error, but check anyway
    if (!vError || !vError[0]) {
      return;
    }

    // Output validation error name
    console.log(vError[0].message);
  });
});