From 4e41d336fce805e6c5dca2c519939070006ec033 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 2 Oct 2013 22:43:20 +0200 Subject: [PATCH] disable multipolygons for polygon=1 again --- lib/Geocode.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Geocode.php b/lib/Geocode.php index 545d3b71..78b0716f 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1435,10 +1435,12 @@ { preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER); } + /* elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#',$aPointPolygon['astext'],$aMatch)) { preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER); } + */ elseif (preg_match('#POINT\\((-?[0-9.]+) (-?[0-9.]+)\\)#',$aPointPolygon['astext'],$aMatch)) { $fRadius = 0.01; -- 2.39.5