From 4abbf0c95e46ae4561d0ca58eb859333dde0c762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Reiers=C3=B8lmoen?= Date: Wed, 30 Oct 2019 14:35:48 +0100 Subject: [PATCH] add support for MULTIPOINT Z, MULTILINESTRING Z and MULTIPOLYGON Z --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index dbac338..f7749f0 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ function parse (input) { } function multipoint () { - if (!$(/^(multipoint)/i)) return null; + if (!$(/^(multipoint(\sz)?)/i)) return null; white(); var newCoordsFormat = _ .substring(_.indexOf('(') + 1, _.length - 1) @@ -142,7 +142,7 @@ function parse (input) { } function multilinestring () { - if (!$(/^(multilinestring)/i)) return null; + if (!$(/^(multilinestring(\sz)?)/i)) return null; white(); var c = multicoords(); if (!c) return null; @@ -178,7 +178,7 @@ function parse (input) { } function multipolygon () { - if (!$(/^(multipolygon)/i)) return null; + if (!$(/^(multipolygon(\sz)?)/i)) return null; white(); var c = multicoords(); if (!c) return null;