]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
Handle multipolygon geometry a little bit (return first outer ring)
[nominatim.git] / website / search.php
index f71874049bdfbae82b1d86c9ecb6bc515a149ec2..1d544df44be50752b2da40e8d6787f8e975cfa6f 100755 (executable)
                                {
                                        preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER);
                                }
+                               elseif (preg_match('#MULTIPOLYGON\\(\\(\\(([- 0-9.,]+)#',$aPointPolygon['outlinestring'],$aMatch))
+                               {
+                                       preg_match_all('/(-?[0-9.]+) (-?[0-9.]+)/',$aMatch[1],$aPolyPoints,PREG_SET_ORDER);
+                               }
                                elseif (preg_match('#POINT\\((-?[0-9.]+) (-?[0-9.]+)\\)#',$aPointPolygon['outlinestring'],$aMatch))
                                {
                                        $fRadius = 0.01;