├── .github └── workflows │ ├── deploy.yml │ └── test.yml ├── .gitignore ├── Makefile ├── bin ├── format.js └── transform-package-json.js ├── license.md ├── package.json ├── readme.md ├── src └── schema │ ├── Feature.js │ ├── FeatureCollection.js │ ├── GeoJSON.js │ ├── Geometry.js │ ├── GeometryCollection.js │ ├── LineString.js │ ├── MultiLineString.js │ ├── MultiPoint.js │ ├── MultiPolygon.js │ ├── Point.js │ ├── Polygon.js │ └── ref │ ├── BoundingBox.js │ ├── LineStringCoordinates.js │ ├── LinearRingCoordinates.js │ ├── PointCoordinates.js │ └── PolygonCoordinates.js └── test ├── assert.js ├── fixtures ├── invalid │ ├── feature │ │ ├── 1d-point.json │ │ ├── boolean-id.json │ │ ├── no-geometry.json │ │ ├── no-properties.json │ │ ├── no-type.json │ │ └── object-id.json │ ├── featurecollection │ │ ├── no-features.json │ │ └── no-type.json │ ├── geometrycollection │ │ ├── 1d.json │ │ ├── bad-geometry.json │ │ ├── no-geometries.json │ │ └── no-type.json │ ├── linestring │ │ ├── 1d.json │ │ ├── bad-bbox.json │ │ ├── no-coordinates.json │ │ └── no-type.json │ ├── multilinestring │ │ ├── 1d.json │ │ ├── bad-bbox.json │ │ ├── no-coordinates.json │ │ └── no-type.json │ ├── multipoint │ │ ├── 1d.json │ │ ├── bad-bbox.json │ │ ├── no-coordinates.json │ │ └── no-type.json │ ├── multipolygon │ │ ├── 1d.json │ │ ├── bad-bbox.json │ │ ├── no-coordinates.json │ │ └── no-type.json │ ├── point │ │ ├── 1d.json │ │ ├── bad-bbox.json │ │ ├── no-coordinates.json │ │ └── no-type.json │ └── polygon │ │ ├── 1d.json │ │ ├── bad-type.json │ │ ├── no-coordinates.json │ │ └── no-type.json └── valid │ ├── feature │ ├── basic.json │ ├── empty-polygon.json │ ├── null-geometry.json │ ├── with-number-id.json │ └── with-string-id.json │ ├── featurecollection │ ├── basic.json │ └── empty.json │ ├── geometrycollection │ ├── 3d.json │ ├── basic.json │ └── bbox.json │ ├── linestring │ ├── 3d.json │ ├── basic.json │ └── bbox.json │ ├── multilinestring │ ├── 3d.json │ ├── basic.json │ └── bbox.json │ ├── multipoint │ ├── 3d.json │ ├── basic.json │ └── bbox.json │ ├── multipolygon │ ├── 3d.json │ ├── basic.json │ └── bbox.json │ ├── point │ ├── 3d.json │ ├── basic.json │ ├── bbox.json │ └── extended.json │ └── polygon │ ├── 3d.json │ ├── basic.json │ ├── bbox.json │ └── extended.json └── test.js /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /node_modules/ 3 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/Makefile -------------------------------------------------------------------------------- /bin/format.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/bin/format.js -------------------------------------------------------------------------------- /bin/transform-package-json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/bin/transform-package-json.js -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/license.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/readme.md -------------------------------------------------------------------------------- /src/schema/Feature.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/Feature.js -------------------------------------------------------------------------------- /src/schema/FeatureCollection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/FeatureCollection.js -------------------------------------------------------------------------------- /src/schema/GeoJSON.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/GeoJSON.js -------------------------------------------------------------------------------- /src/schema/Geometry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/Geometry.js -------------------------------------------------------------------------------- /src/schema/GeometryCollection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/GeometryCollection.js -------------------------------------------------------------------------------- /src/schema/LineString.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/LineString.js -------------------------------------------------------------------------------- /src/schema/MultiLineString.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/MultiLineString.js -------------------------------------------------------------------------------- /src/schema/MultiPoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/MultiPoint.js -------------------------------------------------------------------------------- /src/schema/MultiPolygon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/MultiPolygon.js -------------------------------------------------------------------------------- /src/schema/Point.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/Point.js -------------------------------------------------------------------------------- /src/schema/Polygon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/Polygon.js -------------------------------------------------------------------------------- /src/schema/ref/BoundingBox.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/ref/BoundingBox.js -------------------------------------------------------------------------------- /src/schema/ref/LineStringCoordinates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/ref/LineStringCoordinates.js -------------------------------------------------------------------------------- /src/schema/ref/LinearRingCoordinates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/ref/LinearRingCoordinates.js -------------------------------------------------------------------------------- /src/schema/ref/PointCoordinates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/ref/PointCoordinates.js -------------------------------------------------------------------------------- /src/schema/ref/PolygonCoordinates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/src/schema/ref/PolygonCoordinates.js -------------------------------------------------------------------------------- /test/assert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/assert.js -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/1d-point.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/1d-point.json -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/boolean-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/boolean-id.json -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/no-geometry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/no-geometry.json -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/no-properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/no-properties.json -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/feature/object-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/feature/object-id.json -------------------------------------------------------------------------------- /test/fixtures/invalid/featurecollection/no-features.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection" 3 | } -------------------------------------------------------------------------------- /test/fixtures/invalid/featurecollection/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/featurecollection/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/geometrycollection/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/geometrycollection/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/geometrycollection/bad-geometry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/geometrycollection/bad-geometry.json -------------------------------------------------------------------------------- /test/fixtures/invalid/geometrycollection/no-geometries.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/geometrycollection/no-geometries.json -------------------------------------------------------------------------------- /test/fixtures/invalid/geometrycollection/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/geometrycollection/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/linestring/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/linestring/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/linestring/bad-bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/linestring/bad-bbox.json -------------------------------------------------------------------------------- /test/fixtures/invalid/linestring/no-coordinates.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/linestring/no-coordinates.json -------------------------------------------------------------------------------- /test/fixtures/invalid/linestring/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/linestring/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multilinestring/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multilinestring/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multilinestring/bad-bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multilinestring/bad-bbox.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multilinestring/no-coordinates.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multilinestring/no-coordinates.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multilinestring/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multilinestring/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipoint/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipoint/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipoint/bad-bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipoint/bad-bbox.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipoint/no-coordinates.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipoint/no-coordinates.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipoint/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipoint/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipolygon/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipolygon/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipolygon/bad-bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipolygon/bad-bbox.json -------------------------------------------------------------------------------- /test/fixtures/invalid/multipolygon/no-coordinates.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "MultiPolygon" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/invalid/multipolygon/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/multipolygon/no-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/point/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/point/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/point/bad-bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/point/bad-bbox.json -------------------------------------------------------------------------------- /test/fixtures/invalid/point/no-coordinates.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "Point" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/invalid/point/no-type.json: -------------------------------------------------------------------------------- 1 | { 2 | "coordinates": [0, 0] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/invalid/polygon/1d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/polygon/1d.json -------------------------------------------------------------------------------- /test/fixtures/invalid/polygon/bad-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/polygon/bad-type.json -------------------------------------------------------------------------------- /test/fixtures/invalid/polygon/no-coordinates.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "Polygon" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/invalid/polygon/no-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/invalid/polygon/no-type.json -------------------------------------------------------------------------------- /test/fixtures/valid/feature/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/feature/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/feature/empty-polygon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/feature/empty-polygon.json -------------------------------------------------------------------------------- /test/fixtures/valid/feature/null-geometry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/feature/null-geometry.json -------------------------------------------------------------------------------- /test/fixtures/valid/feature/with-number-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/feature/with-number-id.json -------------------------------------------------------------------------------- /test/fixtures/valid/feature/with-string-id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/feature/with-string-id.json -------------------------------------------------------------------------------- /test/fixtures/valid/featurecollection/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/featurecollection/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/featurecollection/empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/featurecollection/empty.json -------------------------------------------------------------------------------- /test/fixtures/valid/geometrycollection/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/geometrycollection/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/geometrycollection/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/geometrycollection/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/geometrycollection/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/geometrycollection/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/linestring/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/linestring/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/linestring/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/linestring/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/linestring/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/linestring/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/multilinestring/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multilinestring/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/multilinestring/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multilinestring/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/multilinestring/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multilinestring/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipoint/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipoint/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipoint/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipoint/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipoint/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipoint/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipolygon/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipolygon/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipolygon/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipolygon/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/multipolygon/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/multipolygon/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/point/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/point/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/point/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/point/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/point/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/point/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/point/extended.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/point/extended.json -------------------------------------------------------------------------------- /test/fixtures/valid/polygon/3d.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/polygon/3d.json -------------------------------------------------------------------------------- /test/fixtures/valid/polygon/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/polygon/basic.json -------------------------------------------------------------------------------- /test/fixtures/valid/polygon/bbox.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/polygon/bbox.json -------------------------------------------------------------------------------- /test/fixtures/valid/polygon/extended.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/fixtures/valid/polygon/extended.json -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geojson/schema/HEAD/test/test.js --------------------------------------------------------------------------------