Socket
Socket
Sign inDemoInstall

terraformer-wkt-parser

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraformer-wkt-parser - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

4

package.json
{
"name": "terraformer-wkt-parser",
"version": "0.1.7",
"version": "0.1.8",
"description": "Well-Known Text parser",

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"terraformer": "latest"
"terraformer": "~0.1.7"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -44,5 +44,5 @@ (function (root, factory) {

yy: {},
symbols_: {"error":2,"expressions":3,"point":4,"EOF":5,"linestring":6,"polygon":7,"multipoint":8,"multilinestring":9,"multipolygon":10,"coordinate":11,"DOUBLE_TOK":12,"ptarray":13,"COMMA":14,"ring_list":15,"ring":16,"(":17,")":18,"POINT":19,"Z":20,"M":21,"EMPTY":22,"point_untagged":23,"polygon_list":24,"polygon_untagged":25,"point_list":26,"LINESTRING":27,"POLYGON":28,"MULTIPOINT":29,"MULTILINESTRING":30,"MULTIPOLYGON":31,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"M",22:"EMPTY",27:"LINESTRING",28:"POLYGON",29:"MULTIPOINT",30:"MULTILINESTRING",31:"MULTIPOLYGON"},
productions_: [0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,6],[4,5],[4,2],[23,1],[23,3],[24,3],[24,1],[25,3],[26,3],[26,1],[6,4],[6,5],[6,5],[6,6],[6,2],[7,4],[7,5],[7,5],[7,6],[7,2],[8,4],[8,5],[8,5],[8,6],[8,2],[9,4],[9,5],[9,5],[9,6],[9,2],[10,4],[10,5],[10,5],[10,6],[10,2]],
symbols_: {"error":2,"expressions":3,"point":4,"EOF":5,"linestring":6,"polygon":7,"multipoint":8,"multilinestring":9,"multipolygon":10,"coordinate":11,"DOUBLE_TOK":12,"ptarray":13,"COMMA":14,"ring_list":15,"ring":16,"(":17,")":18,"POINT":19,"Z":20,"ZM":21,"M":22,"EMPTY":23,"point_untagged":24,"polygon_list":25,"polygon_untagged":26,"point_list":27,"LINESTRING":28,"POLYGON":29,"MULTIPOINT":30,"MULTILINESTRING":31,"MULTIPOLYGON":32,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},
productions_: [0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$,_$) {

@@ -82,7 +82,7 @@

break;
case 16: this.$ = { "type": "Point", "coordinates": $[$0-2].data[0], "properties": { z: true } };
case 16: this.$ = { "type": "Point", "coordinates": $[$0-1].data[0], "properties": { z: true } };
break;
case 17: this.$ = { "type": "Point", "coordinates": $[$0-3].data[0], "properties": { z: true, m: true } };
case 17: this.$ = { "type": "Point", "coordinates": $[$0-1].data[0], "properties": { z: true, m: true } };
break;
case 18: this.$ = { "type": "Point", "coordinates": $[$0-2].data[0], "properties": { m: true } };
case 18: this.$ = { "type": "Point", "coordinates": $[$0-1].data[0], "properties": { m: true } };
break;

@@ -107,7 +107,7 @@ case 19: this.$ = { "type": "Point", "coordinates": [ ] };

break;
case 28: this.$ = { "type": "LineString", "coordinates": $[$0-2].data, "properties": { z: true } };
case 28: this.$ = { "type": "LineString", "coordinates": $[$0-1].data, "properties": { z: true } };
break;
case 29: this.$ = { "type": "LineString", "coordinates": $[$0-2].data, "properties": { m: true } };
case 29: this.$ = { "type": "LineString", "coordinates": $[$0-1].data, "properties": { m: true } };
break;
case 30: this.$ = { "type": "LineString", "coordinates": $[$0-3].data, "properties": { z: true, m: true } };
case 30: this.$ = { "type": "LineString", "coordinates": $[$0-1].data, "properties": { z: true, m: true } };
break;

@@ -118,7 +118,7 @@ case 31: this.$ = { "type": "LineString", "coordinates": [ ] };

break;
case 33: this.$ = { "type": "Polygon", "coordinates": $[$0-2].toJSON(), "properties": { z: true } };
case 33: this.$ = { "type": "Polygon", "coordinates": $[$0-1].toJSON(), "properties": { z: true } };
break;
case 34: this.$ = { "type": "Polygon", "coordinates": $[$0-2].toJSON(), "properties": { m: true } };
case 34: this.$ = { "type": "Polygon", "coordinates": $[$0-1].toJSON(), "properties": { m: true } };
break;
case 35: this.$ = { "type": "Polygon", "coordinates": $[$0-3].toJSON(), "properties": { z: true, m: true } };
case 35: this.$ = { "type": "Polygon", "coordinates": $[$0-1].toJSON(), "properties": { z: true, m: true } };
break;

@@ -129,7 +129,7 @@ case 36: this.$ = { "type": "Polygon", "coordinates": [ ] };

break;
case 38: this.$ = { "type": "MultiPoint", "coordinates": $[$0-2].data, "properties": { z: true } };
case 38: this.$ = { "type": "MultiPoint", "coordinates": $[$0-1].data, "properties": { z: true } };
break;
case 39: this.$ = { "type": "MultiPoint", "coordinates": $[$0-2].data, "properties": { m: true } };
case 39: this.$ = { "type": "MultiPoint", "coordinates": $[$0-1].data, "properties": { m: true } };
break;
case 40: this.$ = { "type": "MultiPoint", "coordinates": $[$0-3].data, "properties": { z: true, m: true } };
case 40: this.$ = { "type": "MultiPoint", "coordinates": $[$0-1].data, "properties": { z: true, m: true } };
break;

@@ -140,7 +140,7 @@ case 41: this.$ = { "type": "MultiPoint", "coordinates": [ ] }

break;
case 43: this.$ = { "type": "MultiLineString", "coordinates": $[$0-2].toJSON(), "properties": { z: true } };
case 43: this.$ = { "type": "MultiLineString", "coordinates": $[$0-1].toJSON(), "properties": { z: true } };
break;
case 44: this.$ = { "type": "MultiLineString", "coordinates": $[$0-2].toJSON(), "properties": { m: true } };
case 44: this.$ = { "type": "MultiLineString", "coordinates": $[$0-1].toJSON(), "properties": { m: true } };
break;
case 45: this.$ = { "type": "MultiLineString", "coordinates": $[$0-3].toJSON(), "properties": { z: true, m: true } };
case 45: this.$ = { "type": "MultiLineString", "coordinates": $[$0-1].toJSON(), "properties": { z: true, m: true } };
break;

@@ -151,7 +151,7 @@ case 46: this.$ = { "type": "MultiLineString", "coordinates": [ ] };

break;
case 48: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-2].toJSON(), "properties": { z: true } };
case 48: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-1].toJSON(), "properties": { z: true } };
break;
case 49: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-2].toJSON(), "properties": { m: true } };
case 49: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-1].toJSON(), "properties": { m: true } };
break;
case 50: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-3].toJSON(), "properties": { z: true, m: true } };
case 50: this.$ = { "type": "MultiPolygon", "coordinates": $[$0-1].toJSON(), "properties": { z: true, m: true } };
break;

@@ -162,4 +162,4 @@ case 51: this.$ = { "type": "MultiPolygon", "coordinates": [ ] };

},
table: [{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],27:[1,9],28:[1,10],29:[1,11],30:[1,12],31:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23]},{17:[1,24],20:[1,25],21:[1,26],22:[1,27]},{17:[1,28],20:[1,29],21:[1,30],22:[1,31]},{17:[1,32],20:[1,33],21:[1,34],22:[1,35]},{17:[1,36],20:[1,37],21:[1,38],22:[1,39]},{17:[1,40],20:[1,41],21:[1,42],22:[1,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:45,12:[1,46],13:44},{17:[1,47],21:[1,48]},{17:[1,49]},{5:[2,19]},{11:52,12:[1,46],17:[1,53],23:51,26:50},{17:[1,54],21:[1,55]},{17:[1,56]},{5:[2,31]},{15:57,16:58,17:[1,59]},{17:[1,60],21:[1,61]},{17:[1,62]},{5:[2,36]},{11:52,12:[1,46],17:[1,53],23:51,26:63},{17:[1,64],21:[1,65]},{17:[1,66]},{5:[2,41]},{15:67,16:58,17:[1,59]},{17:[1,68],21:[1,69]},{17:[1,70]},{5:[2,46]},{17:[1,73],24:71,25:72},{17:[1,74],21:[1,75]},{17:[1,76]},{5:[2,51]},{14:[1,78],18:[1,77]},{14:[2,11],18:[2,11]},{12:[1,79]},{11:45,12:[1,46],13:80},{17:[1,81]},{11:45,12:[1,46],13:82},{14:[1,84],18:[1,83]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:85,12:[1,46]},{11:52,12:[1,46],17:[1,53],23:51,26:86},{17:[1,87]},{11:52,12:[1,46],17:[1,53],23:51,26:88},{14:[1,90],18:[1,89]},{14:[2,13],18:[2,13]},{11:45,12:[1,46],13:91},{15:92,16:58,17:[1,59]},{17:[1,93]},{15:94,16:58,17:[1,59]},{14:[1,84],18:[1,95]},{11:52,12:[1,46],17:[1,53],23:51,26:96},{17:[1,97]},{11:52,12:[1,46],17:[1,53],23:51,26:98},{14:[1,90],18:[1,99]},{15:100,16:58,17:[1,59]},{17:[1,101]},{15:102,16:58,17:[1,59]},{14:[1,104],18:[1,103]},{14:[2,23],18:[2,23]},{15:105,16:58,17:[1,59]},{17:[1,73],24:106,25:72},{17:[1,107]},{17:[1,73],24:108,25:72},{5:[2,15]},{11:109,12:[1,46]},{12:[1,110],14:[2,7],18:[2,7]},{14:[1,78],18:[1,111]},{11:45,12:[1,46],13:112},{14:[1,78],18:[1,113]},{5:[2,27]},{11:52,12:[1,46],17:[1,53],23:114},{18:[1,115]},{14:[1,84],18:[1,116]},{11:52,12:[1,46],17:[1,53],23:51,26:117},{14:[1,84],18:[1,118]},{5:[2,32]},{16:119,17:[1,59]},{14:[1,78],18:[1,120]},{14:[1,90],18:[1,121]},{15:122,16:58,17:[1,59]},{14:[1,90],18:[1,123]},{5:[2,37]},{14:[1,84],18:[1,124]},{11:52,12:[1,46],17:[1,53],23:51,26:125},{14:[1,84],18:[1,126]},{5:[2,42]},{14:[1,90],18:[1,127]},{15:128,16:58,17:[1,59]},{14:[1,90],18:[1,129]},{5:[2,47]},{17:[1,73],25:130},{14:[1,90],18:[1,131]},{14:[1,104],18:[1,132]},{17:[1,73],24:133,25:72},{14:[1,104],18:[1,134]},{14:[2,10],18:[2,10]},{12:[1,135],14:[2,8],18:[2,8]},{5:[2,16]},{14:[1,78],18:[1,136]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{14:[1,84],18:[1,137]},{5:[2,29]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{14:[1,90],18:[1,138]},{5:[2,34]},{5:[2,38]},{14:[1,84],18:[1,139]},{5:[2,39]},{5:[2,43]},{14:[1,90],18:[1,140]},{5:[2,44]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{14:[1,104],18:[1,141]},{5:[2,49]},{14:[2,9],18:[2,9]},{5:[2,17]},{5:[2,30]},{5:[2,35]},{5:[2,40]},{5:[2,45]},{5:[2,50]}],
defaultActions: {14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],23:[2,19],27:[2,31],31:[2,36],35:[2,41],39:[2,46],43:[2,51],77:[2,15],83:[2,27],89:[2,32],95:[2,37],99:[2,42],103:[2,47],111:[2,16],113:[2,18],116:[2,28],118:[2,29],121:[2,33],123:[2,34],124:[2,38],126:[2,39],127:[2,43],129:[2,44],132:[2,48],134:[2,49],136:[2,17],137:[2,30],138:[2,35],139:[2,40],140:[2,45],141:[2,50]},
table: [{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:[1,52],13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:[1,52],17:[1,59],24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:[1,65]},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:[1,52],17:[1,59],24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:[1,65]},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:[1,79],25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:[1,84],18:[1,83]},{14:[2,11],18:[2,11]},{12:[1,85]},{11:51,12:[1,52],13:86},{11:51,12:[1,52],13:87},{11:51,12:[1,52],13:88},{14:[1,90],18:[1,89]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:91,12:[1,52]},{11:58,12:[1,52],17:[1,59],24:57,27:92},{11:58,12:[1,52],17:[1,59],24:57,27:93},{11:58,12:[1,52],17:[1,59],24:57,27:94},{14:[1,96],18:[1,95]},{14:[2,13],18:[2,13]},{11:51,12:[1,52],13:97},{15:98,16:64,17:[1,65]},{15:99,16:64,17:[1,65]},{15:100,16:64,17:[1,65]},{14:[1,90],18:[1,101]},{11:58,12:[1,52],17:[1,59],24:57,27:102},{11:58,12:[1,52],17:[1,59],24:57,27:103},{11:58,12:[1,52],17:[1,59],24:57,27:104},{14:[1,96],18:[1,105]},{15:106,16:64,17:[1,65]},{15:107,16:64,17:[1,65]},{15:108,16:64,17:[1,65]},{14:[1,110],18:[1,109]},{14:[2,23],18:[2,23]},{15:111,16:64,17:[1,65]},{17:[1,79],25:112,26:78},{17:[1,79],25:113,26:78},{17:[1,79],25:114,26:78},{5:[2,15]},{11:115,12:[1,52]},{12:[1,116],14:[2,7],18:[2,7]},{14:[1,84],18:[1,117]},{14:[1,84],18:[1,118]},{14:[1,84],18:[1,119]},{5:[2,27]},{11:58,12:[1,52],17:[1,59],24:120},{18:[1,121]},{14:[1,90],18:[1,122]},{14:[1,90],18:[1,123]},{14:[1,90],18:[1,124]},{5:[2,32]},{16:125,17:[1,65]},{14:[1,84],18:[1,126]},{14:[1,96],18:[1,127]},{14:[1,96],18:[1,128]},{14:[1,96],18:[1,129]},{5:[2,37]},{14:[1,90],18:[1,130]},{14:[1,90],18:[1,131]},{14:[1,90],18:[1,132]},{5:[2,42]},{14:[1,96],18:[1,133]},{14:[1,96],18:[1,134]},{14:[1,96],18:[1,135]},{5:[2,47]},{17:[1,79],26:136},{14:[1,96],18:[1,137]},{14:[1,110],18:[1,138]},{14:[1,110],18:[1,139]},{14:[1,110],18:[1,140]},{14:[2,10],18:[2,10]},{12:[1,141],14:[2,8],18:[2,8]},{5:[2,16]},{5:[2,17]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{5:[2,29]},{5:[2,30]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{5:[2,49]},{5:[2,50]},{14:[2,9],18:[2,9]}],
defaultActions: {14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},
parseError: function parseError(str, hash) {

@@ -455,28 +455,30 @@ throw new Error(str);

break;
case 5:return 27
case 5:return 28
break;
case 6:return 28
case 6:return 29
break;
case 7:return 29
case 7:return 30
break;
case 8:return 30
case 8:return 31
break;
case 9:return 31
case 9:return 32
break;
case 10:return 14
break;
case 11:return 22
case 11:return 23
break;
case 12:return 21
case 12:return 22
break;
case 13:return 20
break;
case 14:return 5
case 14:return 21
break;
case 15:return "INVALID"
case 15:return 5
break;
case 16:return "INVALID"
break;
}
};
lexer.rules = [/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:$)/,/^(?:.)/];
lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"inclusive":true}};
lexer.rules = [/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/];
lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"inclusive":true}};
return lexer;})()

@@ -508,3 +510,3 @@ parser.lexer = lexer;

// 3d or time? default to 3d
if (primitive.properties.m === true) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -532,4 +534,4 @@ } else {

return ret;
} else if (primitive.coordinates[0][0].length === 3) {
if (primitive.properties.m === true) {
} else if (primitive.coordinates[0].length === 3) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -539,3 +541,3 @@ } else {

}
} else if (primitive.coordinates[0][0].length === 4) {
} else if (primitive.coordinates[0].length === 4) {
ret += 'ZM ';

@@ -557,3 +559,3 @@ }

} else if (primitive.coordinates[0][0].length === 3) {
if (primitive.properties.m === true) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -586,4 +588,4 @@ } else {

return ret;
} else if (primitive.coordinates[0][0].length === 3) {
if (primitive.properties.m === true) {
} else if (primitive.coordinates[0].length === 3) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -593,3 +595,3 @@ } else {

}
} else if (primitive.coordinates[0][0].length === 4) {
} else if (primitive.coordinates[0].length === 4) {
ret += 'ZM ';

@@ -611,3 +613,3 @@ }

} else if (primitive.coordinates[0][0].length === 3) {
if (primitive.properties.m === true) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -641,3 +643,3 @@ } else {

} else if (primitive.coordinates[0][0][0].length === 3) {
if (primitive.properties.m === true) {
if (primitive.properties && primitive.properties.m === true) {
ret += 'M ';

@@ -676,18 +678,12 @@ } else {

return pointToWKTPoint(primitive);
break;
case 'LineString':
return lineStringToWKTLineString(primitive);
break;
case 'Polygon':
return polygonToWKTPolygon(primitive);
break;
case 'MultiPoint':
return multiPointToWKTMultiPoint(primitive);
break;
case 'MultiLineString':
return multiLineStringToWKTMultiLineString(primitive);
break;
case 'MultiPolygon':
return multiPolygonToWKTMultiPolygon(primitive);
break;
default:

@@ -758,3 +754,2 @@ throw Error ("Unknown Type: " + primitive.type);

}
return data;
};

@@ -780,7 +775,2 @@

if (data.length === 1) {
return data;
} else {
return data;
}
return data;

@@ -799,3 +789,2 @@ };

} catch (err) {
console.dir(err);
throw Error("Unable to parse", err);

@@ -802,0 +791,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc