Skip to content

Commit

Permalink
Added support for MultiPoint coordinates encapsulated in parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCamus committed Oct 27, 2015
1 parent 2ca1332 commit 727f568
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wellknown.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ function parse (input) {
function multipoint () {
if (!$(/^(multipoint)/i)) return null;
white();
var newCoordsFormat = _
.substring(_.indexOf('(') + 1, _.length - 1)
.replace(/\(/g, '')
.replace(/\)/g, '');

_ = 'MULTIPOINT (' + newCoordsFormat + ')';
var c = multicoords();
if (!c) return null;
white();
Expand Down Expand Up @@ -270,4 +276,4 @@ function stringify (gj) {
}

},{}]},{},[1])(1)
});
});

0 comments on commit 727f568

Please sign in to comment.