Skip to content

polygon-city/citygml-validate-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  });
});

About

Validate a CityGML shell against the QIE suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published