Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Package, travis

  • Loading branch information...
commit 073ce597312424bef76238d4201beaed0b1acd10 1 parent dff0d8e
@tmcw tmcw authored
View
3  .travis.yml
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.10
View
2  README.md
@@ -1 +1,3 @@
+[![Build Status](https://secure.travis-ci.org/tmcw/geojsonhint.png?branch=master)](http://travis-ci.org/tmcw/geojsonhint)
+
# geojson lint in js
View
29 package.json
@@ -0,0 +1,29 @@
+{
+ "name": "geojsonhint",
+ "version": "0.0.0",
+ "description": "validate and sanity-check geojson files",
+ "main": "index.js",
+ "directories": {
+ "test": "test"
+ },
+ "devDependencies": {
+ "expect.js": "~0.2.0",
+ "mocha": "~1.12.0"
+ },
+ "scripts": {
+ "test": "mocha -R spec"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/tmcw/geojsonhint.git"
+ },
+ "keywords": [
+ "geojson",
+ "hint"
+ ],
+ "author": "Tom MacWright",
+ "license": "BSD",
+ "bugs": {
+ "url": "https://github.com/tmcw/geojsonhint/issues"
+ }
+}
View
33 test/data/featurecollection.geojson
@@ -0,0 +1,33 @@
+{ "type": "FeatureCollection",
+ "features": [
+ { "type": "Feature",
+ "geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
+ "properties": {"prop0": "value0"}
+ },
+ { "type": "Feature",
+ "geometry": {
+ "type": "LineString",
+ "coordinates": [
+ [102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]
+ ]
+ },
+ "properties": {
+ "prop0": "value0",
+ "prop1": 0.0
+ }
+ },
+ { "type": "Feature",
+ "geometry": {
+ "type": "Polygon",
+ "coordinates": [
+ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
+ [100.0, 1.0], [100.0, 0.0] ]
+ ]
+ },
+ "properties": {
+ "prop0": "value0",
+ "prop1": {"this": "that"}
+ }
+ }
+ ]
+ }
View
10 test/data/geometrycollection.geojson
@@ -0,0 +1,10 @@
+{ "type": "GeometryCollection",
+ "geometries": [
+ { "type": "Point",
+ "coordinates": [100.0, 0.0]
+ },
+ { "type": "LineString",
+ "coordinates": [ [101.0, 0.0], [102.0, 1.0] ]
+ }
+ ]
+}
View
3  test/data/linestring.geojson
@@ -0,0 +1,3 @@
+{ "type": "LineString",
+ "coordinates": [ [100.0, 0.0], [101.0, 1.0] ]
+ }
View
6 test/data/multilinestring.geojson
@@ -0,0 +1,6 @@
+{ "type": "MultiLineString",
+ "coordinates": [
+ [ [100.0, 0.0], [101.0, 1.0] ],
+ [ [102.0, 2.0], [103.0, 3.0] ]
+ ]
+ }
View
1  test/data/point.geojson
@@ -0,0 +1 @@
+{ "type": "Point", "coordinates": [100.0, 0.0] }
View
5 test/data/polygon.geojson
@@ -0,0 +1,5 @@
+{ "type": "Polygon",
+ "coordinates": [
+ [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
+ ]
+ }
View
6 test/hint.test.js
@@ -0,0 +1,6 @@
+var expect = require('expect.js');
+
+describe('geojsonhint', function() {
+ it('validates correct files', function() {
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.