From: Sarah Hoffmann Date: Wed, 2 Oct 2013 20:43:20 +0000 (+0200) Subject: disable multipolygons for polygon=1 again X-Git-Tag: deploy~572 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/4e41d336fce805e6c5dca2c519939070006ec033?ds=sidebyside;hp=4563750453ede7af40a7ffd75c90327f4e56bff8 disable multipolygons for polygon=1 again --- 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;