0.1.3 • Published 9 years ago

citygml-validate-ring v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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) {
  if (err) {
    console.log("Exterior ring not valid:", err, results);
  } else {
    console.log("Exterior ring valid");
  }
});