diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/dist/browser/LICENSE b/dist/browser/LICENSE old mode 100644 new mode 100755 diff --git a/dist/browser/Store/LocalStorage.js b/dist/browser/Store/LocalStorage.js old mode 100644 new mode 100755 index 15fffe9..3393b90 --- a/dist/browser/Store/LocalStorage.js +++ b/dist/browser/Store/LocalStorage.js @@ -17,7 +17,7 @@ }(this, function() { var exports = { }; - var Terraformer; + var Terraformer, callback; // Local Reference To Browser Global if(typeof this.navigator === "object") { @@ -41,7 +41,7 @@ } // store the data at id returns true if stored successfully - LocalStorage.prototype.add = function(geojson, dfd){ + LocalStorage.prototype.add = function(geojson, callback){ if(geojson.type === "FeatureCollection"){ for (var i = 0; i < geojson.features.length; i++) { this.set(geojson.features[i]); @@ -49,8 +49,7 @@ } else { this.set(geojson); } - dfd.resolve(geojson); - return dfd; + if ( callback ) callback( null, geojson ); }; LocalStorage.prototype.key = function(id){ @@ -58,26 +57,23 @@ }; // remove the data from the index and data with id returns true if removed successfully. - LocalStorage.prototype.remove = function(id, dfd){ - localStorage.removeItem(this.key(id)); - dfd.resolve(id); - return dfd; + LocalStorage.prototype.remove = function( id, callback ){ + localStorage.removeItem( this.key( id ) ); + if ( callback ) callback( null, id ); }; // return the data stored at id - LocalStorage.prototype.get = function(id, dfd){ - dfd.resolve(JSON.parse(localStorage.getItem(this.key(id)))); - return dfd; + LocalStorage.prototype.get = function(id, callback){ + if ( callback ) callback( null, JSON.parse(localStorage.getItem(this.key(id)))); }; LocalStorage.prototype.set = function(feature){ - localStorage.setItem(this.key(feature.id), JSON.stringify(feature)); + if ( callback ) localStorage.setItem(this.key(feature.id), JSON.stringify(feature)); }; - LocalStorage.prototype.update = function(geojson, dfd){ + LocalStorage.prototype.update = function(geojson, callback){ this.set(geojson); - dfd.resolve(geojson); - return dfd; + if ( callback ) callback( null, geojson ); }; LocalStorage.prototype.toJSON = function(){ @@ -93,27 +89,13 @@ LocalStorage.prototype.serialize = function(callback){ var objs = []; - // make a new deferred - var dfd = new Terraformer.Deferred(); - - // map callback to dfd if we have one - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - for (var key in localStorage){ if(key.match(this._key)){ objs.push(localStorage.getItem(key)); } } - dfd.resolve(JSON.stringify(objs)); - - return dfd; + if ( callback ) callback(null, JSON.stringify(objs)); }; LocalStorage.prototype.deserialize = function(serial){ @@ -127,4 +109,4 @@ exports.LocalStorage = LocalStorage; return exports; -})); \ No newline at end of file +})); diff --git a/dist/browser/Store/Memory.js b/dist/browser/Store/Memory.js old mode 100644 new mode 100755 index 2571cd9..1e81f07 --- a/dist/browser/Store/Memory.js +++ b/dist/browser/Store/Memory.js @@ -45,7 +45,7 @@ } // store the data at id returns true if stored successfully - Memory.prototype.add = function(geojson, dfd){ + Memory.prototype.add = function(geojson, callback){ if(geojson.type === "FeatureCollection"){ for (var i = 0; i < geojson.features.length; i++) { this.data[geojson.features[i].id] = geojson.features[i]; @@ -53,46 +53,28 @@ } else { this.data[geojson.id] = geojson; } - dfd.resolve(geojson); - return dfd; + if ( callback ) callback( null, geojson); }; // remove the data from the index and data with id returns true if removed successfully. - Memory.prototype.remove = function(id, dfd){ + Memory.prototype.remove = function(id, callback){ delete this.data[id]; - dfd.resolve(id); - return dfd; + if ( callback ) callback( null, id ); }; // return the data stored at id - Memory.prototype.get = function(id, dfd){ - dfd.resolve(this.data[id]); - return dfd; + Memory.prototype.get = function(id, callback){ + if ( callback ) callback( null, this.data[id] ); }; - Memory.prototype.update = function(geojson, dfd){ + Memory.prototype.update = function(geojson, callback){ this.data[geojson.id] = geojson; - dfd.resolve(); - return dfd; + if ( callback ) callback( null ); }; Memory.prototype.serialize = function(callback){ - // make a new deferred - var dfd = new Terraformer.Deferred(); var data = JSON.stringify(this.data); - - // map callback to dfd if we have one - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - - dfd.resolve(data); - - return dfd; + if ( callback ) callback( null, data ); }; Memory.prototype.deserialize = function(serializedStore){ @@ -103,4 +85,4 @@ exports.Memory = Memory; return exports; -})); \ No newline at end of file +})); diff --git a/dist/browser/arcgis.js b/dist/browser/arcgis.js old mode 100644 new mode 100755 diff --git a/dist/browser/geostore.js b/dist/browser/geostore.js old mode 100644 new mode 100755 index e8ea1ec..9d7f9ac --- a/dist/browser/geostore.js +++ b/dist/browser/geostore.js @@ -66,15 +66,6 @@ // calculate the envelope and add it to the rtree // should return a deferred GeoStore.prototype.add = function(geojson, callback){ - var dfd = new this.deferred(), bbox; - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } if (!geojson.type.match(/Feature/)) { throw new Error("Terraform.GeoStore : only Features and FeatureCollections are supported"); @@ -99,7 +90,7 @@ h: Math.abs(bbox[1] - bbox[3]) }, feature.id); } - this.store.add(geojson, dfd); + this.store.add(geojson, callback ); } else { bbox = Terraformer.Tools.calculateBounds(geojson); this.index.insert({ @@ -108,39 +99,26 @@ w: Math.abs(bbox[0] - bbox[2]), h: Math.abs(bbox[1] - bbox[3]) }, geojson.id); - this.store.add(geojson, dfd); + this.store.add(geojson, callback ); } // store the data (use the stores store method to decide how to do this.) - - // return the deferred; - return dfd; }; GeoStore.prototype.remove = function(id, callback){ - var dfd = new this.deferred(); - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - - this.get(id).then(bind(this, function(geojson){ - this.index.remove(geojson, id, bind(this, function(error, leaf){ - if(error){ - dfd.reject("Could not remove from index"); - } else { - this.store.remove(id, dfd); - } - })); - }), function(error){ - dfd.reject("Could not remove feature"); - }); - - return dfd; + this.get(id, bind(this, function(error, geojson){ + if ( error ){ + callback("Could not get feature to remove", null); + } else { + this.index.remove(geojson, id, bind(this, function(error, leaf){ + if(error){ + callback("Could not remove from index", null); + } else { + this.store.remove(id, callback); + } + })); + } + })); }; GeoStore.prototype.contains = function(geojson, callback){ @@ -168,22 +146,24 @@ // the function to evalute results from the index var evaluate = function(primitive){ completed++; - var geometry = new Terraformer.Primitive(primitive.geometry); + if ( primitive ){ + var geometry = new Terraformer.Primitive(primitive.geometry); - if(shape.within(geometry)){ - results.push(primitive); - } + if(shape.within(geometry)){ + results.push(primitive); + } - if(completed >= found.length){ - if(!errors){ - dfd.resolve(results); - } else { - dfd.reject("Could not get all geometries"); + if(completed >= found.length){ + if(!errors){ + dfd.resolve(results); + } else { + dfd.reject("Could not get all geometries"); + } } - } - if(completed >= found.length && errors){ - dfd.reject("Could not get all geometries"); + if(completed >= found.length && errors){ + dfd.reject("Could not get all geometries"); + } } }; @@ -198,12 +178,17 @@ // for each result see if the polygon contains the point if(found.length){ + var getCB = function(err, result){ + if (err) error(); + else evaluate( result ); + }; for (var i = 0; i < found.length; i++) { - this.get(found[i]).then(evaluate, error); + this.get(found[i], getCB); } } else { dfd.resolve(results); + //if ( callback ) callback( null, results ); } })); @@ -237,24 +222,25 @@ // the function to evalute results from the index var evaluate = function(primitive){ completed++; - var geometry = new Terraformer.Primitive(primitive.geometry); + if ( primitive ){ + var geometry = new Terraformer.Primitive(primitive.geometry); - if(geometry.within(shape)){ - results.push(primitive); - } + if(geometry.within(shape)){ + results.push(primitive); + } - if(completed >= found.length){ - if(!errors){ - dfd.resolve(results); - } else { - dfd.reject("Could not get all geometries"); + if(completed >= found.length){ + if(!errors){ + dfd.resolve(results); + } else { + dfd.reject("Could not get all geometries"); + } } - } - if(completed >= found.length && errors){ - dfd.reject("Could not get all geometries"); + if(completed >= found.length && errors){ + dfd.reject("Could not get all geometries"); + } } - }; var error = function(){ @@ -267,9 +253,13 @@ // for each result see if the polygon contains the point if(found.length){ + var getCB = function(err, result){ + if (err) error(); + else evaluate( result ); + }; for (var i = 0; i < found.length; i++) { - this.get(found[i]).then(evaluate, error); + this.get(found[i], getCB); } } else { dfd.resolve(results); @@ -301,38 +291,29 @@ throw new Error("Terraform.GeoStore : Feature does not have an id property"); } - this.get(feature.id).then(bind(this, function(oldFeatureGeoJSON){ - var oldFeature = new Terraformer.Primitive(oldFeatureGeoJSON); - this.index.remove(oldFeature.envelope(), oldFeature.id); - this.index.insert(feature.envelope(), feature.id); - this.store.update(feature, dfd); - }), function(error){ - dfd.reject("Could find feature"); - }); + this.get(feature.id, bind(this, function( error, oldFeatureGeoJSON ){ + if ( error ){ + callback("Could find feature", null); + } else { + var oldFeature = new Terraformer.Primitive(oldFeatureGeoJSON); + this.index.remove(oldFeature.envelope(), oldFeature.id); + this.index.insert(feature.envelope(), feature.id); + this.store.update(feature, callback); + } + })); + //, function(error){ + // dfd.reject("Could find feature"); + //}); return dfd; }; // gets an item by id GeoStore.prototype.get = function(id, callback){ - - // make a new deferred - var dfd = new this.deferred(); - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - - this.store.get(id, dfd); - - return dfd; + this.store.get( id, callback ); }; exports.GeoStore = GeoStore; return exports; -})); \ No newline at end of file +})); diff --git a/dist/browser/rtree.js b/dist/browser/rtree.js old mode 100644 new mode 100755 index 2696948..61cc210 --- a/dist/browser/rtree.js +++ b/dist/browser/rtree.js @@ -702,7 +702,7 @@ var RTree = function (width) { } // convert shape (the first arg) to a bbox if its geojson - if(args[0].type){ + if(args && args[0] && args[0].type){ var b = Terraformer.Tools.calculateBounds(args[0]); args[0] = { x: b[0], diff --git a/dist/browser/terraformer.js b/dist/browser/terraformer.js old mode 100644 new mode 100755 diff --git a/dist/browser/wkt.js b/dist/browser/wkt.js old mode 100644 new mode 100755 diff --git a/dist/minified/Store/LocalStorage.min.js b/dist/minified/Store/LocalStorage.min.js old mode 100644 new mode 100755 index 9e4b1f7..6df48eb --- a/dist/minified/Store/LocalStorage.min.js +++ b/dist/minified/Store/LocalStorage.min.js @@ -1 +1 @@ -!function(a,b){"function"==typeof define&&define.amd&&define([],b),"object"==typeof a.navigator&&("undefined"==typeof a.Terraformer&&(a.Terraformer={}),"undefined"==typeof a.Terraformer.Store&&(a.Terraformer.Store={}),a.Terraformer.Store.LocalStorage=b().LocalStorage)}(this,function(){function a(){var a=arguments[0]||{};this._key=a.key||"_terraformer"}var b,c={};return"object"==typeof this.navigator&&(b=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(b=require("terraformer")),arguments[0]&&"function"==typeof define&&define.amd&&(b=arguments[0]),a.prototype.add=function(a,b){if("FeatureCollection"===a.type)for(var c=0;c=0;c--)this.set(b[c]);return this},c.LocalStorage=a,c}); \ No newline at end of file +!function(a,b){"function"==typeof define&&define.amd&&define([],b),"object"==typeof a.navigator&&("undefined"==typeof a.Terraformer&&(a.Terraformer={}),"undefined"==typeof a.Terraformer.Store&&(a.Terraformer.Store={}),a.Terraformer.Store.LocalStorage=b().LocalStorage)}(this,function(){function a(){var a=arguments[0]||{};this._key=a.key||"_terraformer"}var b,c,d={};return"object"==typeof this.navigator&&(b=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(b=require("terraformer")),arguments[0]&&"function"==typeof define&&define.amd&&(b=arguments[0]),a.prototype.add=function(a,b){if("FeatureCollection"===a.type)for(var c=0;c=0;c--)this.set(b[c]);return this},d.LocalStorage=a,d}); \ No newline at end of file diff --git a/dist/minified/Store/Memory.min.js b/dist/minified/Store/Memory.min.js old mode 100644 new mode 100755 index 0a34519..af7fd1a --- a/dist/minified/Store/Memory.min.js +++ b/dist/minified/Store/Memory.min.js @@ -1 +1 @@ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports&&(exports=module.exports=b()),"function"==typeof define&&define.amd&&define([],b),"object"==typeof a.navigator&&("undefined"==typeof a.Terraformer&&(a.Terraformer={}),"undefined"==typeof a.Terraformer.Store&&(a.Terraformer.Store={}),a.Terraformer.Store.Memory=b().Memory)}(this,function(){function a(){this.data={}}var b,c={};return"object"==typeof this.navigator&&(b=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(b=require("../terraformer.js")),arguments[0]&&"function"==typeof define&&define.amd&&(b=arguments[0]),a.prototype.add=function(a,b){if("FeatureCollection"===a.type)for(var c=0;c2?Array.prototype.slice.call(arguments,2):null;return function(){return b.apply(a,c||arguments)}}function b(a){if(!a.store||!a.index)throw new Error("Terraformer.GeoStore requires an instace of a Terraformer.Store and a instance of Terraformer.RTree");this.deferred=a.deferred?a.deferred:c.Deferred,this.index=a.index,this.store=a.store}var c,d={};return"object"==typeof this.navigator&&(c=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(c=require("terraformer")),arguments[0]&&"function"==typeof define&&define.amd&&(c=arguments[0]),b.prototype.add=function(a,b){var d,e=new this.deferred;if(b&&e.then(function(a){b(null,a)},function(a){b(a,null)}),!a.type.match(/Feature/))throw new Error("Terraform.GeoStore : only Features and FeatureCollections are supported");if("Feature"===a.type&&!a.id)throw new Error("Terraform.GeoStore : Feature does not have an id property");if("FeatureCollection"===a.type){for(var f=0;f=a.length&&(g?f.reject("Could not get all geometries"):f.resolve(b)),d>=a.length&&g&&f.reject("Could not get all geometries")},i=function(){d++,g++,d>=a.length&&f.reject("Could not get all geometries")};if(a.length)for(var j=0;j=a.length&&(g?f.reject("Could not get all geometries"):f.resolve(b)),d>=a.length&&g&&f.reject("Could not get all geometries")},i=function(){d++,g++,d>=a.length&&f.reject("Could not get all geometries")};if(a.length)for(var j=0;j2?Array.prototype.slice.call(arguments,2):null;return function(){return b.apply(a,c||arguments)}}function b(a){if(!a.store||!a.index)throw new Error("Terraformer.GeoStore requires an instace of a Terraformer.Store and a instance of Terraformer.RTree");this.deferred=a.deferred?a.deferred:c.Deferred,this.index=a.index,this.store=a.store}var c,d={};return"object"==typeof this.navigator&&(c=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(c=require("terraformer")),arguments[0]&&"function"==typeof define&&define.amd&&(c=arguments[0]),b.prototype.add=function(a,b){if(!a.type.match(/Feature/))throw new Error("Terraform.GeoStore : only Features and FeatureCollections are supported");if("Feature"===a.type&&!a.id)throw new Error("Terraform.GeoStore : Feature does not have an id property");if("FeatureCollection"===a.type){for(var d=0;d=a.length&&(g?f.reject("Could not get all geometries"):f.resolve(b)),d>=a.length&&g&&f.reject("Could not get all geometries")}},i=function(){d++,g++,d>=a.length&&f.reject("Could not get all geometries")};if(a.length)for(var j=function(a,b){a?i():h(b)},k=0;k=a.length&&(g?f.reject("Could not get all geometries"):f.resolve(b)),d>=a.length&&g&&f.reject("Could not get all geometries")}},i=function(){d++,g++,d>=a.length&&f.reject("Could not get all geometries")};if(a.length)for(var j=function(a,b){a?i():h(b)},k=0;k=0;){var m=k.nodes[l];if(d.Rectangle.overlap_rectangle(j,m)){if(j.target&&"leaf"in m&&m.leaf===j.target||!j.target&&("leaf"in m||d.Rectangle.contains_rectangle(m,j))){"nodes"in m?(h=n(m,!0,[],m),k.nodes.splice(l,1)):h=k.nodes.splice(l,1),d.Rectangle.make_MBR(k.nodes,k),delete j.target,k.nodes.length0&&d.Rectangle.make_MBR(k.nodes,k);for(var o=0;o0&&k.nodes.length0);return h},i=function(a,b){var c,e=-1,f=[];f.push(b);var g=b.nodes;do{-1!==e&&(f.push(g[e]),g=g[e].nodes,e=-1);for(var h=g.length-1;h>=0;h--){var i=g[h];if("leaf"in i){e=-1;break}var j=d.Rectangle.squarified_ratio(i.w,i.h,i.nodes.length+1),k=Math.max(i.x+i.w,a.x+a.w)-Math.min(i.x,a.x),l=Math.max(i.y+i.h,a.y+a.h)-Math.min(i.y,a.y),m=d.Rectangle.squarified_ratio(k,l,i.nodes.length+2);(0>e||Math.abs(m-j)0;)k(a,b[0],b[1]);return b},k=function(a,b,c){for(var f,g,h,i=d.Rectangle.squarified_ratio(b.w,b.h,b.nodes.length+1),j=d.Rectangle.squarified_ratio(c.w,c.h,c.nodes.length+1),k=a.length-1;k>=0;k--){var l=a[k],m={};m.x=Math.min(b.x,l.x),m.y=Math.min(b.y,l.y),m.w=Math.max(b.x+b.w,l.x+l.w)-m.x,m.h=Math.max(b.y+b.h,l.y+l.h)-m.y;var n=Math.abs(d.Rectangle.squarified_ratio(m.w,m.h,b.nodes.length+2)-i),o={};o.x=Math.min(c.x,l.x),o.y=Math.min(c.y,l.y),o.w=Math.max(c.x+c.w,l.x+l.w)-o.x,o.h=Math.max(c.y+c.h,l.y+l.h)-o.y;var p=Math.abs(d.Rectangle.squarified_ratio(o.w,o.h,c.nodes.length+2)-j);(!g||!f||Math.abs(p-n)p?c:b)}var q=a.splice(g,1)[0];b.nodes.length+a.length+1<=e?(b.nodes.push(q),d.Rectangle.expand_rectangle(b,q)):c.nodes.length+a.length+1<=e?(c.nodes.push(q),d.Rectangle.expand_rectangle(c,q)):(h.nodes.push(q),d.Rectangle.expand_rectangle(h,q))},l=function(a){for(var b,c,d=a.length-1,e=0,f=a.length-1,g=0,h=a.length-2;h>=0;h--){var i=a[h];i.x>a[e].x?e=h:i.x+i.wa[g].y?g=h:i.y+i.hk?d>e?(b=a.splice(d,1)[0],c=a.splice(e,1)[0]):(c=a.splice(e,1)[0],b=a.splice(d,1)[0]):f>g?(b=a.splice(f,1)[0],c=a.splice(g,1)[0]):(c=a.splice(g,1)[0],b=a.splice(f,1)[0]),[{x:b.x,y:b.y,w:b.w,h:b.h,nodes:[b]},{x:c.x,y:c.y,w:c.w,h:c.h,nodes:[c]}]},m=function(a,b){return a.nodes=b.nodes,a.x=b.x,a.y=b.y,a.w=b.w,a.h=b.h,a},n=function(a,b,c,e){var f=[];if(!d.Rectangle.overlap_rectangle(a,e))return c;f.push(e.nodes);do for(var g=f.pop(),h=g.length-1;h>=0;h--){var i=g[h];d.Rectangle.overlap_rectangle(a,i)&&("nodes"in i?f.push(i.nodes):"leaf"in i&&(b?c.push(i):c.push(i.leaf)))}while(f.length>0);return c},o=function(a,b,c,e){var f=[];if(!d.Rectangle.overlap_rectangle(e,a))return c;f.push(e.nodes);do for(var g=f.pop(),h=g.length-1;h>=0;h--){var i=g[h];d.Rectangle.overlap_rectangle(i,a)&&("nodes"in i?f.push(i.nodes):"leaf"in i&&(b?c.push(i):c.push(i.leaf)))}while(f.length>0);return c},p=function(b,c){var e;if(0===c.nodes.length)return c.x=b.x,c.y=b.y,c.w=b.w,c.h=b.h,c.nodes.push(b),void 0;var g=i(b,c),h=b;do{if(e&&"nodes"in e&&0===e.nodes.length){var k=e;e=g.pop();for(var l=0;l0)};this.serialize=function(a){var c=new b.Deferred;return a&&c.then(function(b){a(null,b)},function(b){a(b,null)}),c.resolve(g),c},this.deserialize=function(a,c,d){var e=Array.prototype.slice.call(arguments),f=new b.Deferred;switch(e.length){case 1:c=g;break;case 2:"function"==typeof e[1]&&(c=g,d=e[1])}return d&&f.then(function(a){d(null,a)},function(a){d(a,null)}),f.resolve(m(c,a)),f},this.search=function(a,c){var d;if(a.type){var e=b.Tools.calculateBounds(a);d={x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}else d=a;var f=new b.Deferred,h=[d,!1,[],g];if(void 0===d)throw"Wrong number of arguments. RT.Search requires at least a bounding rectangle.";return c&&f.then(function(a){c(null,a)},function(a){c(a,null)}),f.resolve(n.apply(this,h)),f},this.within=function(a,c){var d;if(a.type){var e=b.Tools.calculateBounds(a);d={x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}else d=a;var f=new b.Deferred,h=[d,!1,[],g];if(void 0===d)throw"Wrong number of arguments. RT.Search requires at least a bounding rectangle.";return c&&f.then(function(a){c(null,a)},function(a){c(a,null)}),f.resolve(o.apply(this,h)),f},this.remove=function(a,c,d){var e=Array.prototype.slice.call(arguments),f=new b.Deferred;if(1===e.length&&e.push(!1),3===e.length&&(d=e.pop(),f.then(function(a){d(null,a)},function(a){d(a,null)})),e[0].type){var i=b.Tools.calculateBounds(e[0]);e[0]={x:i[0],y:i[1],w:Math.abs(i[0]-i[2]),h:Math.abs(i[1]-i[3])}}if(e.push(g),c===!1){var j=0,k=[];do j=k.length,k=k.concat(h.apply(this,e));while(j!==k.length);f.resolve(k)}else f.resolve(h.apply(this,e))},this.insert=function(a,c,d){var e;if(a.type){var f=b.Tools.calculateBounds(a);e={x:f[0],y:f[1],w:Math.abs(f[0]-f[2]),h:Math.abs(f[1]-f[3])}}else e=a;var h=new b.Deferred;if(arguments.length<2)throw"Wrong number of arguments. RT.Insert requires at least a bounding rectangle or GeoJSON and an object.";return d&&h.then(function(a){d(null,a)},function(a){d(a,null)}),h.resolve(p({x:e.x,y:e.y,w:e.w,h:e.h,leaf:c},g)),h}};return d.Rectangle=function(a,b,c,d){var e,f,g,h,i,j;a.x?(e=a.x,g=a.y,0!==a.w&&!a.w&&a.x2?(i=a.x2-a.x,j=a.y2-a.y):(i=a.w,j=a.h),f=e+i,h=g+j):(e=a,g=b,i=c,j=d,f=e+i,h=g+j),this.x1=this.x=function(){return e},this.y1=this.y=function(){return g},this.x2=function(){return f},this.y2=function(){return h},this.w=function(){return i},this.h=function(){return j},this.toJSON=function(){return'{"x":'+e.toString()+', "y":'+g.toString()+', "w":'+i.toString()+', "h":'+j.toString()+"}"},this.overlap=function(a){return this.x()a.x()&&this.y()a.y()},this.expand=function(a){var b=Math.min(this.x(),a.x()),c=Math.min(this.y(),a.y());return i=Math.max(this.x2(),a.x2())-b,j=Math.max(this.y2(),a.y2())-c,e=b,g=c,this},this.setRect=function(a,b,c,d){var e,f,g,h,i,j;a.x?(e=a.x,g=a.y,0!==a.w&&!a.w&&a.x2?(i=a.x2-a.x,j=a.y2-a.y):(i=a.w,j=a.h),f=e+i,h=g+j):(e=a,g=b,i=c,j=d,f=e+i,h=g+j)}},d.Rectangle.overlap_rectangle=function(a,b){return a.xb.x&&a.yb.y},d.Rectangle.contains_rectangle=function(a,b){return a.x+a.w<=b.x+b.w&&a.x>=b.x&&a.y+a.h<=b.y+b.h&&a.y>=b.y},d.Rectangle.expand_rectangle=function(a,b){var c,d;return c=a.xb.x+b.w?a.x+a.w-c:b.x+b.w-c,a.h=a.y+a.h>b.y+b.h?a.y+a.h-d:b.y+b.h-d,a.x=c,a.y=d,a},d.Rectangle.make_MBR=function(a,b){if(a.length<1)return{x:0,y:0,w:0,h:0};b?(b.x=a[0].x,b.y=a[0].y,b.w=a[0].w,b.h=a[0].h):b={x:a[0].x,y:a[0].y,w:a[0].w,h:a[0].h};for(var c=a.length-1;c>0;c--)d.Rectangle.expand_rectangle(b,a[c]);return b},c.RTree=d,c}); \ No newline at end of file +!function(a,b){"object"==typeof module&&"object"==typeof module.exports&&(exports=module.exports=b()),"function"==typeof define&&define.amd&&define(["terraformer/terraformer"],b),"undefined"==typeof a.Terraformer&&(a.Terraformer={}),a.Terraformer.RTree=b().RTree}(this,function(){function a(a){return"[object Array]"===Object.prototype.toString.call(a)}var b,c={};"object"==typeof this.navigator&&(b=this.Terraformer),"object"==typeof module&&"object"==typeof module.exports&&(b=require("terraformer")),arguments[0]&&"function"==typeof define&&define.amd&&(b=arguments[0]);var d=function(c){var e=3,f=6;isNaN(c)||(e=Math.floor(c/2),f=c),this.min_width=e,this.max_width=f;var g={x:0,y:0,w:0,h:0,id:"root",nodes:[]};!function(){var a={};return function(b){var c=0;return b in a?c=a[b]++:a[b]=0,b+"_"+c}}(),d.Rectangle.squarified_ratio=function(a,b,c){var d=(a+b)/2,e=a*b,f=e/(d*d);return e*c/f};var h=function(a,b,c){var f=[],g=[],h=[],i=1;if(!a||!d.Rectangle.overlap_rectangle(a,c))return h;var j={x:a.x,y:a.y,w:a.w,h:a.h,target:b};g.push(c.nodes.length),f.push(c);do{var k=f.pop(),l=g.pop()-1;if("target"in j)for(;l>=0;){var m=k.nodes[l];if(d.Rectangle.overlap_rectangle(j,m)){if(j.target&&"leaf"in m&&m.leaf===j.target||!j.target&&("leaf"in m||d.Rectangle.contains_rectangle(m,j))){"nodes"in m?(h=n(m,!0,[],m),k.nodes.splice(l,1)):h=k.nodes.splice(l,1),d.Rectangle.make_MBR(k.nodes,k),delete j.target,k.nodes.length0&&d.Rectangle.make_MBR(k.nodes,k);for(var o=0;o0&&k.nodes.length0);return h},i=function(a,b){var c,e=-1,f=[];f.push(b);var g=b.nodes;do{-1!==e&&(f.push(g[e]),g=g[e].nodes,e=-1);for(var h=g.length-1;h>=0;h--){var i=g[h];if("leaf"in i){e=-1;break}var j=d.Rectangle.squarified_ratio(i.w,i.h,i.nodes.length+1),k=Math.max(i.x+i.w,a.x+a.w)-Math.min(i.x,a.x),l=Math.max(i.y+i.h,a.y+a.h)-Math.min(i.y,a.y),m=d.Rectangle.squarified_ratio(k,l,i.nodes.length+2);(0>e||Math.abs(m-j)0;)k(a,b[0],b[1]);return b},k=function(a,b,c){for(var f,g,h,i=d.Rectangle.squarified_ratio(b.w,b.h,b.nodes.length+1),j=d.Rectangle.squarified_ratio(c.w,c.h,c.nodes.length+1),k=a.length-1;k>=0;k--){var l=a[k],m={};m.x=Math.min(b.x,l.x),m.y=Math.min(b.y,l.y),m.w=Math.max(b.x+b.w,l.x+l.w)-m.x,m.h=Math.max(b.y+b.h,l.y+l.h)-m.y;var n=Math.abs(d.Rectangle.squarified_ratio(m.w,m.h,b.nodes.length+2)-i),o={};o.x=Math.min(c.x,l.x),o.y=Math.min(c.y,l.y),o.w=Math.max(c.x+c.w,l.x+l.w)-o.x,o.h=Math.max(c.y+c.h,l.y+l.h)-o.y;var p=Math.abs(d.Rectangle.squarified_ratio(o.w,o.h,c.nodes.length+2)-j);(!g||!f||Math.abs(p-n)p?c:b)}var q=a.splice(g,1)[0];b.nodes.length+a.length+1<=e?(b.nodes.push(q),d.Rectangle.expand_rectangle(b,q)):c.nodes.length+a.length+1<=e?(c.nodes.push(q),d.Rectangle.expand_rectangle(c,q)):(h.nodes.push(q),d.Rectangle.expand_rectangle(h,q))},l=function(a){for(var b,c,d=a.length-1,e=0,f=a.length-1,g=0,h=a.length-2;h>=0;h--){var i=a[h];i.x>a[e].x?e=h:i.x+i.wa[g].y?g=h:i.y+i.hk?d>e?(b=a.splice(d,1)[0],c=a.splice(e,1)[0]):(c=a.splice(e,1)[0],b=a.splice(d,1)[0]):f>g?(b=a.splice(f,1)[0],c=a.splice(g,1)[0]):(c=a.splice(g,1)[0],b=a.splice(f,1)[0]),[{x:b.x,y:b.y,w:b.w,h:b.h,nodes:[b]},{x:c.x,y:c.y,w:c.w,h:c.h,nodes:[c]}]},m=function(a,b){return a.nodes=b.nodes,a.x=b.x,a.y=b.y,a.w=b.w,a.h=b.h,a},n=function(a,b,c,e){var f=[];if(!d.Rectangle.overlap_rectangle(a,e))return c;f.push(e.nodes);do for(var g=f.pop(),h=g.length-1;h>=0;h--){var i=g[h];d.Rectangle.overlap_rectangle(a,i)&&("nodes"in i?f.push(i.nodes):"leaf"in i&&(b?c.push(i):c.push(i.leaf)))}while(f.length>0);return c},o=function(a,b,c,e){var f=[];if(!d.Rectangle.overlap_rectangle(e,a))return c;f.push(e.nodes);do for(var g=f.pop(),h=g.length-1;h>=0;h--){var i=g[h];d.Rectangle.overlap_rectangle(i,a)&&("nodes"in i?f.push(i.nodes):"leaf"in i&&(b?c.push(i):c.push(i.leaf)))}while(f.length>0);return c},p=function(b,c){var e;if(0===c.nodes.length)return c.x=b.x,c.y=b.y,c.w=b.w,c.h=b.h,c.nodes.push(b),void 0;var g=i(b,c),h=b;do{if(e&&"nodes"in e&&0===e.nodes.length){var k=e;e=g.pop();for(var l=0;l0)};this.serialize=function(a){var c=new b.Deferred;return a&&c.then(function(b){a(null,b)},function(b){a(b,null)}),c.resolve(g),c},this.deserialize=function(a,c,d){var e=Array.prototype.slice.call(arguments),f=new b.Deferred;switch(e.length){case 1:c=g;break;case 2:"function"==typeof e[1]&&(c=g,d=e[1])}return d&&f.then(function(a){d(null,a)},function(a){d(a,null)}),f.resolve(m(c,a)),f},this.search=function(a,c){var d;if(a.type){var e=b.Tools.calculateBounds(a);d={x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}else d=a;var f=new b.Deferred,h=[d,!1,[],g];if(void 0===d)throw"Wrong number of arguments. RT.Search requires at least a bounding rectangle.";return c&&f.then(function(a){c(null,a)},function(a){c(a,null)}),f.resolve(n.apply(this,h)),f},this.within=function(a,c){var d;if(a.type){var e=b.Tools.calculateBounds(a);d={x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}else d=a;var f=new b.Deferred,h=[d,!1,[],g];if(void 0===d)throw"Wrong number of arguments. RT.Search requires at least a bounding rectangle.";return c&&f.then(function(a){c(null,a)},function(a){c(a,null)}),f.resolve(o.apply(this,h)),f},this.remove=function(a,c,d){var e=Array.prototype.slice.call(arguments),f=new b.Deferred;if(1===e.length&&e.push(!1),3===e.length&&(d=e.pop(),f.then(function(a){d(null,a)},function(a){d(a,null)})),e&&e[0]&&e[0].type){var i=b.Tools.calculateBounds(e[0]);e[0]={x:i[0],y:i[1],w:Math.abs(i[0]-i[2]),h:Math.abs(i[1]-i[3])}}if(e.push(g),c===!1){var j=0,k=[];do j=k.length,k=k.concat(h.apply(this,e));while(j!==k.length);f.resolve(k)}else f.resolve(h.apply(this,e))},this.insert=function(a,c,d){var e;if(a.type){var f=b.Tools.calculateBounds(a);e={x:f[0],y:f[1],w:Math.abs(f[0]-f[2]),h:Math.abs(f[1]-f[3])}}else e=a;var h=new b.Deferred;if(arguments.length<2)throw"Wrong number of arguments. RT.Insert requires at least a bounding rectangle or GeoJSON and an object.";return d&&h.then(function(a){d(null,a)},function(a){d(a,null)}),h.resolve(p({x:e.x,y:e.y,w:e.w,h:e.h,leaf:c},g)),h}};return d.Rectangle=function(a,b,c,d){var e,f,g,h,i,j;a.x?(e=a.x,g=a.y,0!==a.w&&!a.w&&a.x2?(i=a.x2-a.x,j=a.y2-a.y):(i=a.w,j=a.h),f=e+i,h=g+j):(e=a,g=b,i=c,j=d,f=e+i,h=g+j),this.x1=this.x=function(){return e},this.y1=this.y=function(){return g},this.x2=function(){return f},this.y2=function(){return h},this.w=function(){return i},this.h=function(){return j},this.toJSON=function(){return'{"x":'+e.toString()+', "y":'+g.toString()+', "w":'+i.toString()+', "h":'+j.toString()+"}"},this.overlap=function(a){return this.x()a.x()&&this.y()a.y()},this.expand=function(a){var b=Math.min(this.x(),a.x()),c=Math.min(this.y(),a.y());return i=Math.max(this.x2(),a.x2())-b,j=Math.max(this.y2(),a.y2())-c,e=b,g=c,this},this.setRect=function(a,b,c,d){var e,f,g,h,i,j;a.x?(e=a.x,g=a.y,0!==a.w&&!a.w&&a.x2?(i=a.x2-a.x,j=a.y2-a.y):(i=a.w,j=a.h),f=e+i,h=g+j):(e=a,g=b,i=c,j=d,f=e+i,h=g+j)}},d.Rectangle.overlap_rectangle=function(a,b){return a.xb.x&&a.yb.y},d.Rectangle.contains_rectangle=function(a,b){return a.x+a.w<=b.x+b.w&&a.x>=b.x&&a.y+a.h<=b.y+b.h&&a.y>=b.y},d.Rectangle.expand_rectangle=function(a,b){var c,d;return c=a.xb.x+b.w?a.x+a.w-c:b.x+b.w-c,a.h=a.y+a.h>b.y+b.h?a.y+a.h-d:b.y+b.h-d,a.x=c,a.y=d,a},d.Rectangle.make_MBR=function(a,b){if(a.length<1)return{x:0,y:0,w:0,h:0};b?(b.x=a[0].x,b.y=a[0].y,b.w=a[0].w,b.h=a[0].h):b={x:a[0].x,y:a[0].y,w:a[0].w,h:a[0].h};for(var c=a.length-1;c>0;c--)d.Rectangle.expand_rectangle(b,a[c]);return b},c.RTree=d,c}); \ No newline at end of file diff --git a/dist/minified/terraformer.min.js b/dist/minified/terraformer.min.js old mode 100644 new mode 100755 diff --git a/dist/minified/wkt.min.js b/dist/minified/wkt.min.js old mode 100644 new mode 100755 diff --git a/dist/node/.npmignore b/dist/node/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/AUTHORS b/dist/node/AUTHORS old mode 100644 new mode 100755 diff --git a/dist/node/GeoStore/AUTHORS b/dist/node/GeoStore/AUTHORS old mode 100644 new mode 100755 diff --git a/dist/node/GeoStore/LICENSE b/dist/node/GeoStore/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/GeoStore/Readme.md b/dist/node/GeoStore/Readme.md old mode 100644 new mode 100755 diff --git a/dist/node/GeoStore/index.js b/dist/node/GeoStore/index.js old mode 100644 new mode 100755 index e8ea1ec..9d7f9ac --- a/dist/node/GeoStore/index.js +++ b/dist/node/GeoStore/index.js @@ -66,15 +66,6 @@ // calculate the envelope and add it to the rtree // should return a deferred GeoStore.prototype.add = function(geojson, callback){ - var dfd = new this.deferred(), bbox; - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } if (!geojson.type.match(/Feature/)) { throw new Error("Terraform.GeoStore : only Features and FeatureCollections are supported"); @@ -99,7 +90,7 @@ h: Math.abs(bbox[1] - bbox[3]) }, feature.id); } - this.store.add(geojson, dfd); + this.store.add(geojson, callback ); } else { bbox = Terraformer.Tools.calculateBounds(geojson); this.index.insert({ @@ -108,39 +99,26 @@ w: Math.abs(bbox[0] - bbox[2]), h: Math.abs(bbox[1] - bbox[3]) }, geojson.id); - this.store.add(geojson, dfd); + this.store.add(geojson, callback ); } // store the data (use the stores store method to decide how to do this.) - - // return the deferred; - return dfd; }; GeoStore.prototype.remove = function(id, callback){ - var dfd = new this.deferred(); - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - - this.get(id).then(bind(this, function(geojson){ - this.index.remove(geojson, id, bind(this, function(error, leaf){ - if(error){ - dfd.reject("Could not remove from index"); - } else { - this.store.remove(id, dfd); - } - })); - }), function(error){ - dfd.reject("Could not remove feature"); - }); - - return dfd; + this.get(id, bind(this, function(error, geojson){ + if ( error ){ + callback("Could not get feature to remove", null); + } else { + this.index.remove(geojson, id, bind(this, function(error, leaf){ + if(error){ + callback("Could not remove from index", null); + } else { + this.store.remove(id, callback); + } + })); + } + })); }; GeoStore.prototype.contains = function(geojson, callback){ @@ -168,22 +146,24 @@ // the function to evalute results from the index var evaluate = function(primitive){ completed++; - var geometry = new Terraformer.Primitive(primitive.geometry); + if ( primitive ){ + var geometry = new Terraformer.Primitive(primitive.geometry); - if(shape.within(geometry)){ - results.push(primitive); - } + if(shape.within(geometry)){ + results.push(primitive); + } - if(completed >= found.length){ - if(!errors){ - dfd.resolve(results); - } else { - dfd.reject("Could not get all geometries"); + if(completed >= found.length){ + if(!errors){ + dfd.resolve(results); + } else { + dfd.reject("Could not get all geometries"); + } } - } - if(completed >= found.length && errors){ - dfd.reject("Could not get all geometries"); + if(completed >= found.length && errors){ + dfd.reject("Could not get all geometries"); + } } }; @@ -198,12 +178,17 @@ // for each result see if the polygon contains the point if(found.length){ + var getCB = function(err, result){ + if (err) error(); + else evaluate( result ); + }; for (var i = 0; i < found.length; i++) { - this.get(found[i]).then(evaluate, error); + this.get(found[i], getCB); } } else { dfd.resolve(results); + //if ( callback ) callback( null, results ); } })); @@ -237,24 +222,25 @@ // the function to evalute results from the index var evaluate = function(primitive){ completed++; - var geometry = new Terraformer.Primitive(primitive.geometry); + if ( primitive ){ + var geometry = new Terraformer.Primitive(primitive.geometry); - if(geometry.within(shape)){ - results.push(primitive); - } + if(geometry.within(shape)){ + results.push(primitive); + } - if(completed >= found.length){ - if(!errors){ - dfd.resolve(results); - } else { - dfd.reject("Could not get all geometries"); + if(completed >= found.length){ + if(!errors){ + dfd.resolve(results); + } else { + dfd.reject("Could not get all geometries"); + } } - } - if(completed >= found.length && errors){ - dfd.reject("Could not get all geometries"); + if(completed >= found.length && errors){ + dfd.reject("Could not get all geometries"); + } } - }; var error = function(){ @@ -267,9 +253,13 @@ // for each result see if the polygon contains the point if(found.length){ + var getCB = function(err, result){ + if (err) error(); + else evaluate( result ); + }; for (var i = 0; i < found.length; i++) { - this.get(found[i]).then(evaluate, error); + this.get(found[i], getCB); } } else { dfd.resolve(results); @@ -301,38 +291,29 @@ throw new Error("Terraform.GeoStore : Feature does not have an id property"); } - this.get(feature.id).then(bind(this, function(oldFeatureGeoJSON){ - var oldFeature = new Terraformer.Primitive(oldFeatureGeoJSON); - this.index.remove(oldFeature.envelope(), oldFeature.id); - this.index.insert(feature.envelope(), feature.id); - this.store.update(feature, dfd); - }), function(error){ - dfd.reject("Could find feature"); - }); + this.get(feature.id, bind(this, function( error, oldFeatureGeoJSON ){ + if ( error ){ + callback("Could find feature", null); + } else { + var oldFeature = new Terraformer.Primitive(oldFeatureGeoJSON); + this.index.remove(oldFeature.envelope(), oldFeature.id); + this.index.insert(feature.envelope(), feature.id); + this.store.update(feature, callback); + } + })); + //, function(error){ + // dfd.reject("Could find feature"); + //}); return dfd; }; // gets an item by id GeoStore.prototype.get = function(id, callback){ - - // make a new deferred - var dfd = new this.deferred(); - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } - - this.store.get(id, dfd); - - return dfd; + this.store.get( id, callback ); }; exports.GeoStore = GeoStore; return exports; -})); \ No newline at end of file +})); diff --git a/dist/node/GeoStore/package.json b/dist/node/GeoStore/package.json old mode 100644 new mode 100755 diff --git a/dist/node/LICENSE b/dist/node/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/.npmignore b/dist/node/Parsers/ArcGIS/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/AUTHORS b/dist/node/Parsers/ArcGIS/AUTHORS old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/LICENSE b/dist/node/Parsers/ArcGIS/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/index.js b/dist/node/Parsers/ArcGIS/index.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/.npmignore b/dist/node/Parsers/ArcGIS/node_modules/vows/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/.travis.yml b/dist/node/Parsers/ArcGIS/node_modules/vows/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/LICENSE b/dist/node/Parsers/ArcGIS/node_modules/vows/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/Makefile b/dist/node/Parsers/ArcGIS/node_modules/vows/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/README.md b/dist/node/Parsers/ArcGIS/node_modules/vows/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/error.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/error.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/macros.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/macros.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/utils.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/assert/utils.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/utils/wildcard.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/utils/wildcard.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/console.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/console.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/context.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/context.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/extras.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/extras.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/dot-matrix.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/dot-matrix.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/json.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/json.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/silent.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/silent.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/spec.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/spec.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/tap.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/tap.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/watch.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/watch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/xunit.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/reporters/xunit.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/suite.js b/dist/node/Parsers/ArcGIS/node_modules/vows/lib/vows/suite.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.jshintrc b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.jshintrc old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.npmignore b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.travis.yml b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/LICENSE b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/README.md b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/diff.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/diff.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/index.html b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/index.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/package.json b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/style.css b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/style.css old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/applyPatch.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/applyPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/createPatch.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/createPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/diffTest.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/diffTest.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/mocha.opts b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/diff/test/mocha.opts old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/LICENSE b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/Makefile b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/README.md b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/lib/eyes.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/lib/eyes.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/package.json b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/test/eyes-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/node_modules/eyes/test/eyes-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/package.json b/dist/node/Parsers/ArcGIS/node_modules/vows/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/VowsCamelCaseTest.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/VowsCamelCaseTest.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/assert-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/assert-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/failing.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/failing.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/log.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/log.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/passing.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/passing.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/stderr.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/isolate/stderr.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/supress-stdout/output.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/fixtures/supress-stdout/output.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/isolate-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/isolate-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/supress-stdout-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/supress-stdout-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows-error-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows-error-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows-test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows_underscore_test.js b/dist/node/Parsers/ArcGIS/node_modules/vows/test/vows_underscore_test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/package.json b/dist/node/Parsers/ArcGIS/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/ArcGIS/test/arcgis-test.js b/dist/node/Parsers/ArcGIS/test/arcgis-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/.npmignore b/dist/node/Parsers/WKT/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/AUTHORS b/dist/node/Parsers/WKT/AUTHORS old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/LICENSE b/dist/node/Parsers/WKT/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/Readme.md b/dist/node/Parsers/WKT/Readme.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/feature_collection.json b/dist/node/Parsers/WKT/examples/feature_collection.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/linestring.json b/dist/node/Parsers/WKT/examples/linestring.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/linestring.wkt b/dist/node/Parsers/WKT/examples/linestring.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multi_linestring.json b/dist/node/Parsers/WKT/examples/multi_linestring.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multi_linestring.wkt b/dist/node/Parsers/WKT/examples/multi_linestring.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multi_polygon.json b/dist/node/Parsers/WKT/examples/multi_polygon.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multi_polygon.wkt b/dist/node/Parsers/WKT/examples/multi_polygon.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multi_polygon_with_hole.wkt b/dist/node/Parsers/WKT/examples/multi_polygon_with_hole.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multipoint.json b/dist/node/Parsers/WKT/examples/multipoint.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multipoint.wkt b/dist/node/Parsers/WKT/examples/multipoint.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/multipoint_alternate.wkt b/dist/node/Parsers/WKT/examples/multipoint_alternate.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/point.json b/dist/node/Parsers/WKT/examples/point.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/point.wkt b/dist/node/Parsers/WKT/examples/point.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/polygon.json b/dist/node/Parsers/WKT/examples/polygon.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/polygon.wkt b/dist/node/Parsers/WKT/examples/polygon.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/polygon_with_dots.wkt b/dist/node/Parsers/WKT/examples/polygon_with_dots.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/polygon_with_hole.json b/dist/node/Parsers/WKT/examples/polygon_with_hole.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/examples/polygon_with_hole.wkt b/dist/node/Parsers/WKT/examples/polygon_with_hole.wkt old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/index.js b/dist/node/Parsers/WKT/index.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/.travis.yml b/dist/node/Parsers/WKT/node_modules/jison/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/Makefile b/dist/node/Parsers/WKT/node_modules/jison/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/README.md b/dist/node/Parsers/WKT/node_modules/jison/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/bnf.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/bnf.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/ebnf.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/ebnf.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/jisonlex.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/jisonlex.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/lexer.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/lexer.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/bnf-parser.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/bnf-parser.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/io.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/io.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/lex-parser.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/lex-parser.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/set.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/set.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/typal.js b/dist/node/Parsers/WKT/node_modules/jison/lib/jison/util/typal.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/.gitmodules b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/.gitmodules old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/JSONSelect.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/JSONSelect.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/LICENSE b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/README.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/package.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/jsonselect.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/jsonselect.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/conformance_tests.html b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/conformance_tests.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/css/style.css b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/css/style.css old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/conf_tests.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/conf_tests.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/doctest.css b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/doctest.css old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/doctest.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/doctest.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/jquery-1.6.1.min.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/js/jquery-1.6.1.min.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/lex_test.html b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/lex_test.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/match_test.html b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/match_test.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/parse_test.html b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/parse_test.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/run.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/run.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/README.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_first-child.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_first-child.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_first-child.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_first-child.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_grouping.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_grouping.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_grouping.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_grouping.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_multiple.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_multiple.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_multiple.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_multiple.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_quotes.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_quotes.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_quotes.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_quotes.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_with_type.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_with_type.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_with_type.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_id_with_type.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_last-child.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_last-child.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_last-child.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_last-child.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child-2.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child-2.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child-2.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child-2.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-child.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-last-child.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-last-child.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-last-child.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_nth-last-child.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_root_pseudo.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_root_pseudo.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_root_pseudo.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_root_pseudo.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type2.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type2.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type2.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type2.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type3.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type3.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type3.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_type3.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_universal.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_universal.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_universal.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/basic_universal.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_nested.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_nested.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_nested.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_nested.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_quoted-string.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_quoted-string.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_quoted-string.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_quoted-string.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_string.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_string.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_string.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_1/collision_string.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_childof.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_childof.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_childof.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_childof.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_descendantof.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_descendantof.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_descendantof.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_descendantof.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_unrooted.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_unrooted.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_unrooted.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_2/sibling_unrooted.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-multiple.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-multiple.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-multiple.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-multiple.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-root-in-expr.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-root-in-expr.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-root-in-expr.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-root-in-expr.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-first-paren.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-first-paren.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-first-paren.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-first-paren.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-paren.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-paren.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-paren.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-sans-paren.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-whitespace.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-whitespace.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-whitespace.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-whitespace.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-with-comma.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-with-comma.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-with-comma.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has-with-comma.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_has.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_multiple-has-with-strings.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_multiple-has-with-strings.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_multiple-has-with-strings.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/basic_multiple-has-with-strings.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_div.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_div.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_div.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_div.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_ends-with.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_ends-with.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_ends-with.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_ends-with.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_false-eq.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_false-eq.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_false-eq.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_false-eq.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_greater-than.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_greater-than.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_greater-than.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_greater-than.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_less-than.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_less-than.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_less-than.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_less-than.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mod.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mod.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mod.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mod.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mult.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mult.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mult.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_mult.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_null-eq.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_null-eq.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_null-eq.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_null-eq.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_number-eq.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_number-eq.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_number-eq.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_number-eq.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-1.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-1.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-1.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-1.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-2.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-2.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-2.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_precedence-2.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple-false.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple-false.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple-false.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple-false.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_simple.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_starts-with.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_starts-with.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_starts-with.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_starts-with.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_string-eq.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_string-eq.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_string-eq.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_string-eq.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_true-eq.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_true-eq.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_true-eq.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/expr_true-eq.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_has-with_descendant.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_has-with_descendant.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_has-with_descendant.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_has-with_descendant.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_val.output b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_val.output old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_val.selector b/dist/node/Parsers/WKT/node_modules/jison/node_modules/JSONSelect/src/test/tests/level_3/polykids_val.selector old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/README.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/CNAME b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/CNAME old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/CONTRIBUTING.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/LICENSE b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/README.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/favicon.ico b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/favicon.ico old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/index.html b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/index.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/index.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/index.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/package.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/raw/underscore.psd b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/raw/underscore.psd old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/underscore-min.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/underscore-min.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/underscore.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/node_modules/underscore/underscore.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/nomnom.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/nomnom.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/package.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/argv.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/argv.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/basic.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/basic.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/bool.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/bool.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/bug.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/bug.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/callback.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/callback.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/chain.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/chain.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/command.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/command.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/default.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/default.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/hash.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/hash.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/help.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/help.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/key.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/key.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/long.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/long.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/noopts.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/noopts.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/positional.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/positional.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/required.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/required.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/runtests.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/runtests.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/short.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/short.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/shortcut.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/shortcut.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/version.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/nomnom/test/version.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/Makefile b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/README.md b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/.npmignore b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/nodes.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/nodes.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/parser.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/parser.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/reflect.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/reflect.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/stringify.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/dist/stringify.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/package.json b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/reflectjs.png b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/reflectjs.png old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/scripts/standalone.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/scripts/standalone.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/all-tests.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/all-tests.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/match.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/match.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/reflect-parse.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/reflect-parse.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/stringify-test.js b/dist/node/Parsers/WKT/node_modules/jison/node_modules/reflect/test/stringify-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/package.json b/dist/node/Parsers/WKT/node_modules/jison/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/ports/php/jison.js b/dist/node/Parsers/WKT/node_modules/jison/ports/php/jison.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/ports/php/readme b/dist/node/Parsers/WKT/node_modules/jison/ports/php/readme old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/ports/php/template.php b/dist/node/Parsers/WKT/node_modules/jison/ports/php/template.php old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/script/web-bundle.js b/dist/node/Parsers/WKT/node_modules/jison/script/web-bundle.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/bnf.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/bnf.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/bnf_parse.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/bnf_parse.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/ebnf.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/ebnf.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/ebnf_parse.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/ebnf_parse.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/json2jison.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/json2jison.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex.jison b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex.jison old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/ansic.jisonlex b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/ansic.jisonlex old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/bnf.jisonlex b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/bnf.jisonlex old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/bnf.lex.json b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/bnf.lex.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/lex_grammar.jisonlex b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/lex_grammar.jisonlex old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/lex_grammar.lex.json b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex/lex_grammar.lex.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex_parse.js b/dist/node/Parsers/WKT/node_modules/jison/tests/grammar/lex_parse.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/lexer/regexplexer.js b/dist/node/Parsers/WKT/node_modules/jison/tests/lexer/regexplexer.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/actions.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/actions.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/api.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/api.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/errorlab.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/errorlab.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/generator.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/generator.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lalr.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lalr.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lr0.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lr0.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lr1.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/lr1.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/precedence.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/precedence.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/slr.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/slr.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/parser/tables.js b/dist/node/Parsers/WKT/node_modules/jison/tests/parser/tables.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/jison/tests/setup.js b/dist/node/Parsers/WKT/node_modules/jison/tests/setup.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/.npmignore b/dist/node/Parsers/WKT/node_modules/vows/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/.travis.yml b/dist/node/Parsers/WKT/node_modules/vows/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/LICENSE b/dist/node/Parsers/WKT/node_modules/vows/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/Makefile b/dist/node/Parsers/WKT/node_modules/vows/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/README.md b/dist/node/Parsers/WKT/node_modules/vows/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/assert/error.js b/dist/node/Parsers/WKT/node_modules/vows/lib/assert/error.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/assert/macros.js b/dist/node/Parsers/WKT/node_modules/vows/lib/assert/macros.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/assert/utils.js b/dist/node/Parsers/WKT/node_modules/vows/lib/assert/utils.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/utils/wildcard.js b/dist/node/Parsers/WKT/node_modules/vows/lib/utils/wildcard.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/console.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/console.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/context.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/context.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/extras.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/extras.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/dot-matrix.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/dot-matrix.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/json.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/json.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/silent.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/silent.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/spec.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/spec.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/tap.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/tap.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/watch.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/watch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/xunit.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/reporters/xunit.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/lib/vows/suite.js b/dist/node/Parsers/WKT/node_modules/vows/lib/vows/suite.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.jshintrc b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.jshintrc old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.npmignore b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.travis.yml b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/LICENSE b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/README.md b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/diff.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/diff.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/index.html b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/index.html old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/package.json b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/style.css b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/style.css old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/applyPatch.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/applyPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/createPatch.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/createPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/diffTest.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/diffTest.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/mocha.opts b/dist/node/Parsers/WKT/node_modules/vows/node_modules/diff/test/mocha.opts old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/LICENSE b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/Makefile b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/README.md b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/README.md old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/lib/eyes.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/lib/eyes.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/package.json b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/test/eyes-test.js b/dist/node/Parsers/WKT/node_modules/vows/node_modules/eyes/test/eyes-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/package.json b/dist/node/Parsers/WKT/node_modules/vows/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/VowsCamelCaseTest.js b/dist/node/Parsers/WKT/node_modules/vows/test/VowsCamelCaseTest.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/assert-test.js b/dist/node/Parsers/WKT/node_modules/vows/test/assert-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/failing.js b/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/failing.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/log.js b/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/log.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/passing.js b/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/passing.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/stderr.js b/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/isolate/stderr.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/supress-stdout/output.js b/dist/node/Parsers/WKT/node_modules/vows/test/fixtures/supress-stdout/output.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/isolate-test.js b/dist/node/Parsers/WKT/node_modules/vows/test/isolate-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/supress-stdout-test.js b/dist/node/Parsers/WKT/node_modules/vows/test/supress-stdout-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/vows-error-test.js b/dist/node/Parsers/WKT/node_modules/vows/test/vows-error-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/vows-test.js b/dist/node/Parsers/WKT/node_modules/vows/test/vows-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/node_modules/vows/test/vows_underscore_test.js b/dist/node/Parsers/WKT/node_modules/vows/test/vows_underscore_test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/package.json b/dist/node/Parsers/WKT/package.json old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/parser.js b/dist/node/Parsers/WKT/parser.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/test/convert-test.js b/dist/node/Parsers/WKT/test/convert-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/test/terraformer-parse-test.js b/dist/node/Parsers/WKT/test/terraformer-parse-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Parsers/WKT/test/wkt-parse-test.js b/dist/node/Parsers/WKT/test/wkt-parse-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/AUTHORS b/dist/node/RTree/AUTHORS old mode 100644 new mode 100755 diff --git a/dist/node/RTree/LICENSE b/dist/node/RTree/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/RTree/Readme.md b/dist/node/RTree/Readme.md old mode 100644 new mode 100755 diff --git a/dist/node/RTree/index.js b/dist/node/RTree/index.js old mode 100644 new mode 100755 index 2696948..61cc210 --- a/dist/node/RTree/index.js +++ b/dist/node/RTree/index.js @@ -702,7 +702,7 @@ var RTree = function (width) { } // convert shape (the first arg) to a bbox if its geojson - if(args[0].type){ + if(args && args[0] && args[0].type){ var b = Terraformer.Tools.calculateBounds(args[0]); args[0] = { x: b[0], diff --git a/dist/node/RTree/node_modules/vows/.npmignore b/dist/node/RTree/node_modules/vows/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/.travis.yml b/dist/node/RTree/node_modules/vows/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/LICENSE b/dist/node/RTree/node_modules/vows/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/Makefile b/dist/node/RTree/node_modules/vows/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/README.md b/dist/node/RTree/node_modules/vows/README.md old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/assert/error.js b/dist/node/RTree/node_modules/vows/lib/assert/error.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/assert/macros.js b/dist/node/RTree/node_modules/vows/lib/assert/macros.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/assert/utils.js b/dist/node/RTree/node_modules/vows/lib/assert/utils.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/utils/wildcard.js b/dist/node/RTree/node_modules/vows/lib/utils/wildcard.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows.js b/dist/node/RTree/node_modules/vows/lib/vows.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/console.js b/dist/node/RTree/node_modules/vows/lib/vows/console.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/context.js b/dist/node/RTree/node_modules/vows/lib/vows/context.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/extras.js b/dist/node/RTree/node_modules/vows/lib/vows/extras.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/dot-matrix.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/dot-matrix.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/json.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/json.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/silent.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/silent.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/spec.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/spec.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/tap.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/tap.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/watch.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/watch.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/reporters/xunit.js b/dist/node/RTree/node_modules/vows/lib/vows/reporters/xunit.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/lib/vows/suite.js b/dist/node/RTree/node_modules/vows/lib/vows/suite.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/.jshintrc b/dist/node/RTree/node_modules/vows/node_modules/diff/.jshintrc old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/.npmignore b/dist/node/RTree/node_modules/vows/node_modules/diff/.npmignore old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/.travis.yml b/dist/node/RTree/node_modules/vows/node_modules/diff/.travis.yml old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/LICENSE b/dist/node/RTree/node_modules/vows/node_modules/diff/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/README.md b/dist/node/RTree/node_modules/vows/node_modules/diff/README.md old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/diff.js b/dist/node/RTree/node_modules/vows/node_modules/diff/diff.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/index.html b/dist/node/RTree/node_modules/vows/node_modules/diff/index.html old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/package.json b/dist/node/RTree/node_modules/vows/node_modules/diff/package.json old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/style.css b/dist/node/RTree/node_modules/vows/node_modules/diff/style.css old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/test/applyPatch.js b/dist/node/RTree/node_modules/vows/node_modules/diff/test/applyPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/test/createPatch.js b/dist/node/RTree/node_modules/vows/node_modules/diff/test/createPatch.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/test/diffTest.js b/dist/node/RTree/node_modules/vows/node_modules/diff/test/diffTest.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/diff/test/mocha.opts b/dist/node/RTree/node_modules/vows/node_modules/diff/test/mocha.opts old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/LICENSE b/dist/node/RTree/node_modules/vows/node_modules/eyes/LICENSE old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/Makefile b/dist/node/RTree/node_modules/vows/node_modules/eyes/Makefile old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/README.md b/dist/node/RTree/node_modules/vows/node_modules/eyes/README.md old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/lib/eyes.js b/dist/node/RTree/node_modules/vows/node_modules/eyes/lib/eyes.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/package.json b/dist/node/RTree/node_modules/vows/node_modules/eyes/package.json old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/node_modules/eyes/test/eyes-test.js b/dist/node/RTree/node_modules/vows/node_modules/eyes/test/eyes-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/package.json b/dist/node/RTree/node_modules/vows/package.json old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/VowsCamelCaseTest.js b/dist/node/RTree/node_modules/vows/test/VowsCamelCaseTest.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/assert-test.js b/dist/node/RTree/node_modules/vows/test/assert-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/fixtures/isolate/failing.js b/dist/node/RTree/node_modules/vows/test/fixtures/isolate/failing.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/fixtures/isolate/log.js b/dist/node/RTree/node_modules/vows/test/fixtures/isolate/log.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/fixtures/isolate/passing.js b/dist/node/RTree/node_modules/vows/test/fixtures/isolate/passing.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/fixtures/isolate/stderr.js b/dist/node/RTree/node_modules/vows/test/fixtures/isolate/stderr.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/fixtures/supress-stdout/output.js b/dist/node/RTree/node_modules/vows/test/fixtures/supress-stdout/output.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/isolate-test.js b/dist/node/RTree/node_modules/vows/test/isolate-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/supress-stdout-test.js b/dist/node/RTree/node_modules/vows/test/supress-stdout-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/vows-error-test.js b/dist/node/RTree/node_modules/vows/test/vows-error-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/vows-test.js b/dist/node/RTree/node_modules/vows/test/vows-test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/node_modules/vows/test/vows_underscore_test.js b/dist/node/RTree/node_modules/vows/test/vows_underscore_test.js old mode 100644 new mode 100755 diff --git a/dist/node/RTree/package.json b/dist/node/RTree/package.json old mode 100644 new mode 100755 diff --git a/dist/node/RTree/test/rtree-test.js b/dist/node/RTree/test/rtree-test.js old mode 100644 new mode 100755 diff --git a/dist/node/Readme.md b/dist/node/Readme.md old mode 100644 new mode 100755 diff --git a/dist/node/package.json b/dist/node/package.json old mode 100644 new mode 100755 diff --git a/dist/node/terraformer.js b/dist/node/terraformer.js old mode 100644 new mode 100755 diff --git a/docs/ArcGIS.md b/docs/ArcGIS.md old mode 100644 new mode 100755 diff --git a/docs/GeoJSON.md b/docs/GeoJSON.md old mode 100644 new mode 100755 diff --git a/docs/GeoStore.md b/docs/GeoStore.md old mode 100644 new mode 100755 diff --git a/docs/Indexes.md b/docs/Indexes.md old mode 100644 new mode 100755 diff --git a/docs/Primitives.md b/docs/Primitives.md old mode 100644 new mode 100755 diff --git a/docs/Readme.md b/docs/Readme.md old mode 100644 new mode 100755 diff --git a/docs/Tools.md b/docs/Tools.md old mode 100644 new mode 100755 diff --git a/docs/WKT.md b/docs/WKT.md old mode 100644 new mode 100755 diff --git a/examples/Readme.md b/examples/Readme.md old mode 100644 new mode 100755 diff --git a/examples/counties/counties.js b/examples/counties/counties.js old mode 100644 new mode 100755 diff --git a/examples/counties/index.html b/examples/counties/index.html old mode 100644 new mode 100755 diff --git a/examples/counties/viewer.js b/examples/counties/viewer.js old mode 100644 new mode 100755 diff --git a/examples/geojson-viewer/index.html b/examples/geojson-viewer/index.html old mode 100644 new mode 100755 diff --git a/examples/geojson-viewer/viewer.js b/examples/geojson-viewer/viewer.js old mode 100644 new mode 100755 diff --git a/examples/googlemaps-wkt/index.html b/examples/googlemaps-wkt/index.html old mode 100644 new mode 100755 diff --git a/examples/polygons/geojson/us-counties.geojson b/examples/polygons/geojson/us-counties.geojson old mode 100644 new mode 100755 diff --git a/examples/polygons/geojson/waldocanyon.geojson b/examples/polygons/geojson/waldocanyon.geojson old mode 100644 new mode 100755 diff --git a/examples/polygons/wkt/waldocanyon.wkt b/examples/polygons/wkt/waldocanyon.wkt old mode 100644 new mode 100755 diff --git a/examples/require-js-leaflet/index.html b/examples/require-js-leaflet/index.html old mode 100644 new mode 100755 diff --git a/examples/require-js-leaflet/main.js b/examples/require-js-leaflet/main.js old mode 100644 new mode 100755 diff --git a/examples/require-js-leaflet/require.js b/examples/require-js-leaflet/require.js old mode 100644 new mode 100755 diff --git a/examples/timezone/.gitignore b/examples/timezone/.gitignore old mode 100644 new mode 100755 diff --git a/examples/timezone/README.md b/examples/timezone/README.md old mode 100644 new mode 100755 diff --git a/examples/timezone/index.js b/examples/timezone/index.js old mode 100644 new mode 100755 diff --git a/examples/timezone/package.json b/examples/timezone/package.json old mode 100644 new mode 100755 diff --git a/examples/wkt-viewer/index.html b/examples/wkt-viewer/index.html old mode 100644 new mode 100755 diff --git a/examples/wkt-viewer/viewer.js b/examples/wkt-viewer/viewer.js old mode 100644 new mode 100755 diff --git a/gruntfile.js b/gruntfile.js old mode 100644 new mode 100755 index 2181cab..cfbe872 --- a/gruntfile.js +++ b/gruntfile.js @@ -203,4 +203,4 @@ module.exports = function (grunt) { grunt.registerTask('test', ['build_source', 'concat', 'jasmine_node', 'jasmine']); grunt.registerTask('build_source', ['wkt-parser', 'rtree-exports']); grunt.registerTask('default', [ 'build_source', 'concat', 'jshint', 'jasmine', 'jasmine_node', 'uglify', 'complexity' ]); -}; \ No newline at end of file +}; diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/spec/arcgisSpec.js b/spec/arcgisSpec.js old mode 100644 new mode 100755 diff --git a/spec/geojsonHelpers.js b/spec/geojsonHelpers.js old mode 100644 new mode 100755 diff --git a/spec/geostoreSpec.js b/spec/geostoreSpec.js old mode 100644 new mode 100755 index d59144d..55c31a2 --- a/spec/geostoreSpec.js +++ b/spec/geostoreSpec.js @@ -75,7 +75,7 @@ describe("geostore", function() { gs.contains({ type:"Point", coordinates: [0, 0] - }).then(function(found){ + }, function(error, found){ expect(found.length).toEqual(0); }); }); @@ -85,7 +85,7 @@ describe("geostore", function() { gs.contains({ type:"Point", coordinates: [-122.676048, 45.516544] - }).then(function(found){ + }, function(error, found){ expect(found.length).toEqual(1); expect(found[0].id).toEqual("41051"); }); @@ -103,23 +103,19 @@ describe("geostore", function() { it("shouldn't find any results", function(){ var result; - var spy = jasmine.createSpy(); gs.contains({ type:"Point", coordinates: [-122.676048, 45.516544] - }, spy).then(function(found){ + }, function(error, found){ expect(found.length).toEqual(0); }); - expect(spy.callCount).toEqual(1); }); it("should get a single result by id", function(){ var result; - var spy = jasmine.createSpy(); - gs.get("41067", spy).then(function(found){ + gs.get("41067", function(error, found){ expect(found.id).toEqual("41067"); }); - expect(spy.callCount).toEqual(1); }); it("should update a feature and run a successful query", function(){ @@ -146,14 +142,10 @@ describe("geostore", function() { var serial; it("should serialize a Memory store", function(){ - var success = jasmine.createSpy("success"); - var error = jasmine.createSpy("error"); var callback = jasmine.createSpy("callback"); - gs.store.serialize(callback).then(success, error); + gs.store.serialize(callback); expect(callback).toHaveBeenCalled(); - expect(success).toHaveBeenCalled(); - expect(error).not.toHaveBeenCalled(); - expect(success).toHaveBeenCalledWith(JSON.stringify(gs.store.data)); + expect(callback).toHaveBeenCalledWith(null, JSON.stringify(gs.store.data)); }); it("should deserialize a memory store", function(){ @@ -172,17 +164,17 @@ describe("geostore", function() { var badStore = new Terraformer.GeoStore({ store: { - get: function(id, dfd){ - return dfd.reject("ERROR"); + get: function(id, callback){ + return callback("ERROR", null); }, - add: function(geo, dfd){ - return dfd.reject("ERROR"); + add: function(geo, callback){ + return callback("ERROR", null); }, - remove: function(id, dfd){ - return dfd.reject("ERROR"); + remove: function(id, callback){ + return callback("ERROR", null); }, - update: function(geo, dfd){ - return dfd.reject("ERROR"); + update: function(geo, callback){ + return callback("ERROR", null); } }, index: new Terraformer.RTree() @@ -200,16 +192,16 @@ describe("geostore", function() { expect(spy).toHaveBeenCalledWith('Could find feature', null); }); - it("should run an error callback when the store rejects the deferred when getting an item", function(){ + it("should return an error in the callback when the store cant get an item", function(){ var spy = jasmine.createSpy(); badStore.get("41067", spy); expect(spy).toHaveBeenCalledWith("ERROR", null); }); - it("should run an error callback when the store rejects the deferred when deleting an item", function(){ + it("should return an error in the callback when the store cant find a feature to remove", function(){ var spy = jasmine.createSpy(); badStore.remove("41067", spy); - expect(spy).toHaveBeenCalledWith('Could not remove feature', null); + expect(spy).toHaveBeenCalledWith('Could not get feature to remove', null); }); it("should run an error callback when the store rejects the deferred when querying an item", function(){ @@ -243,7 +235,7 @@ describe("geostore", function() { gs.contains({ type:"Point", coordinates: [-122.676048, 45.516544] - }).then(function(found){ + }, function(error, found){ expect(found.length).toEqual(1); expect(found[0].id).toEqual("41051"); }); @@ -255,7 +247,7 @@ describe("geostore", function() { gs.within({ type:"Point", coordinates: [-122.676048, 45.516544] - }).then(function(found){ + }, function(error, found){ expect(found.length).toEqual(0); }); }); @@ -266,7 +258,7 @@ describe("geostore", function() { gs.contains({ type:"Point", coordinates: [-122.676048, 45.516544] - }).then(function(found){ + }, function( error, found){ expect(found.length).toEqual(1); expect(found[0].id).toEqual("41067"); }); @@ -285,13 +277,9 @@ describe("geostore", function() { }); it("should serialize a LocalStore store", function(){ - var success = jasmine.createSpy("success"); - var error = jasmine.createSpy("error"); var callback = jasmine.createSpy("callback"); - gs.store.serialize(callback).then(success, error); + gs.store.serialize(callback); expect(callback).toHaveBeenCalled(); - expect(success).toHaveBeenCalled(); - expect(error).not.toHaveBeenCalled(); }); it("should deserialize a LocalStore store", function(){ @@ -341,4 +329,4 @@ describe("geostore", function() { }); }); -}); \ No newline at end of file +}); diff --git a/spec/rtreeSpec.js b/spec/rtreeSpec.js old mode 100644 new mode 100755 diff --git a/spec/spatialReferenceSpec.js b/spec/spatialReferenceSpec.js old mode 100644 new mode 100755 diff --git a/spec/terraformerSpec.js b/spec/terraformerSpec.js old mode 100644 new mode 100755 diff --git a/spec/wktSpec.js b/spec/wktSpec.js old mode 100644 new mode 100755 diff --git a/src/Parsers/ArcGIS/arcgis.js b/src/Parsers/ArcGIS/arcgis.js old mode 100644 new mode 100755 diff --git a/src/Parsers/WKT/partials/convert.js b/src/Parsers/WKT/partials/convert.js old mode 100644 new mode 100755 diff --git a/src/Parsers/WKT/partials/module-source.js b/src/Parsers/WKT/partials/module-source.js old mode 100644 new mode 100755 diff --git a/src/Parsers/WKT/partials/wkt.yy b/src/Parsers/WKT/partials/wkt.yy old mode 100644 new mode 100755 diff --git a/src/Parsers/WKT/wkt.js b/src/Parsers/WKT/wkt.js old mode 100644 new mode 100755 diff --git a/src/geostore.js b/src/geostore.js index 9720ae8..9d7f9ac 100755 --- a/src/geostore.js +++ b/src/geostore.js @@ -106,15 +106,6 @@ }; GeoStore.prototype.remove = function(id, callback){ - var dfd = new this.deferred(); - - if(callback){ - dfd.then(function(result){ - callback(null, result); - }, function(error){ - callback(error, null); - }); - } this.get(id, bind(this, function(error, geojson){ if ( error ){ callback("Could not get feature to remove", null); @@ -128,8 +119,6 @@ })); } })); - - return dfd; }; GeoStore.prototype.contains = function(geojson, callback){ diff --git a/src/partials/module-rtree.js b/src/partials/module-rtree.js old mode 100644 new mode 100755 diff --git a/src/rtree.js b/src/rtree.js old mode 100644 new mode 100755 index 4073ea2..63695f1 --- a/src/rtree.js +++ b/src/rtree.js @@ -661,7 +661,7 @@ var RTree = function (width) { } // convert shape (the first arg) to a bbox if its geojson - if(args[0].type){ + if(args && args[0] && args[0].type){ var b = Terraformer.Tools.calculateBounds(args[0]); args[0] = { x: b[0], diff --git a/src/terraformer.js b/src/terraformer.js old mode 100644 new mode 100755