# citygml-validate-file

> Run a full geometry validation suite on a CityGML file

Latest version **0.1.16** (published 2015-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install citygml-validate-file
pnpm add citygml-validate-file
yarn add citygml-validate-file
bun add citygml-validate-file
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.16 |
| Published | 2015-06-17 |
| First published | 2015-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 (+14 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Robin Hawkes |
| Maintainers | robhawkes |
| Keywords | citygml, polygon, ring, shell, solid, geometry, validation, mapping, gis |

## Links

- npm: https://www.npmjs.com/package/citygml-validate-file
- Repository: https://github.com/polygon-city/citygml-validate-file
- Issues: https://github.com/polygon-city/citygml-validate-file/issues
- npm.io page: https://npm.io/package/citygml-validate-file

## Dependencies (12)

- [sax](https://npm.io/package/sax.md) ^1.1.1
- [async](https://npm.io/package/async.md) ^1.0.0
- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [xmldom](https://npm.io/package/xmldom.md) ^0.1.19
- [saxpath](https://npm.io/package/saxpath.md) git://github.com/robhawkes/saxpath#attributes-fix
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.18.4
- [citygml-points](https://npm.io/package/citygml-points.md) ^0.1.1
- [citygml-polygons](https://npm.io/package/citygml-polygons.md) ^0.1.1
- [citygml-boundaries](https://npm.io/package/citygml-boundaries.md) ^0.1.1
- [citygml-validate-ring](https://npm.io/package/citygml-validate-ring.md) ^0.1.3
- [citygml-validate-shell](https://npm.io/package/citygml-validate-shell.md) ^0.1.21
- [citygml-validate-polygon](https://npm.io/package/citygml-validate-polygon.md) ^0.1.13

## Alternatives

- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads
- [cra-template-particles-typescript](https://npm.io/package/cra-template-particles-typescript.md) — 227 weekly downloads

## Recent versions

- 0.1.16 (latest) — 2015-06-17
- 0.1.15 — 2015-06-12
- 0.1.14 — 2015-06-04
- 0.1.13 — 2015-06-02
- 0.1.1 — 2015-05-28
- 0.1.0 — 2015-05-28

## README

# CityGML Validate File

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

## Usage

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

---
_Source: https://npm.io/package/citygml-validate-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
