Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 701 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 701 Bytes

CityGML Validate Ring

Validate a CityGML ring against the QIE suite

Usage

var citygmlBoundaries = require("citygml-boundaries");
var citygmlValidateRing = require("citygml-validate-ring");

var xml = "..."; // Some CityGML
var boundaries = citygmlBoundaries(xml);

// Validate exterior ring
citygmlValidateRing(boundaries.exterior[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);
  });
});