Package Exports
- citygml-validate-shell
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (citygml-validate-shell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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);
});
});