citygml-validate-file
Run a full geometry validation suite on a CityGML file
Last updated 5 years ago by robhawkes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install citygml-validate-file 
SYNC missed versions from official npm registry.

CityGML Validate File

Run a full geometry validation suite on a CityGML file. By default, this will run on all bldg:Building elements.

Usage

var _ = require("lodash");
var citygmlValidateFile = require("citygml-validate-file");
var results = citygmlValidateFile("some/file/path.gml", "bldg:Building", function(err, results){
  _.each(results, function(buildingResults, buildingIndex) {
    console.log("Building:", buildingIndex);

    _.each(buildingResults, function(result) {
      _.each(result, function(vError) {
        // Should always be an error, but check anyway
        if (!vError || !vError[0]) {
          return;
        }

        // Output validation error name
        console.log(vError[0].message);
      });
    });
  })
});

Current Tags

  • 0.1.16                                ...           latest (5 years ago)

6 Versions

  • 0.1.16                                ...           5 years ago
  • 0.1.15                                ...           5 years ago
  • 0.1.14                                ...           5 years ago
  • 0.1.13                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (12)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |