citygml-validate-polygon

0.1.13 • Public • Published

CityGML Validate Polygon

Validate a CityGML polygon against the QIE suite

Usage

var citygmlPolygons = require("citygml-polygons");
var citygmlValidatePolygon = require("citygml-validate-polygon");
 
var xml = "..."; // Some CityGML
var polygons = citygmlPolygons(xml);
 
// Validate polygon as a whole
citygmlValidatePolygon(polygons[0], 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);
  });
});

Package Sidebar

Install

npm i citygml-validate-polygon

Weekly Downloads

2

Version

0.1.13

License

MIT

Last publish

Collaborators

  • bcamper
  • robhawkes