Changeset e53467c in osmose-backend


Ignore:
Timestamp:
Jan 13, 2013 5:10:07 PM (7 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
7b8c839
Parents:
adc0078
git-author:
Frédéric Rodrigo <frodrigo@…> (13/01/2013 16:07:20)
git-committer:
Frédéric Rodrigo <frodrigo@…> (13/01/2013 17:10:07)
Message:

Fix analyser_osmosis_polygon since is_polygon is only for valid polygon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_osmosis_polygon.py

    rfeccd33 re53467c  
    5050                {0}ways AS ways 
    5151            WHERE 
    52                 is_polygon 
     52                NOT is_polygon AND 
     53                NOT (tags ? 'attraction' AND tags->'attraction' = 'roller_coaster') AND 
     54                nodes[array_lower(nodes,1)] = nodes[array_upper(nodes,1)] AND 
     55                ST_NumPoints(linestring) > 3 AND ST_IsClosed(linestring) AND 
     56                NOT ST_IsValid(ST_MakePolygon(linestring)) 
    5357        ) AS p 
    54     WHERE 
    55         NOT ST_IsValid(polygon) 
    5658) AS tmp 
    57 WHERE NOT ST_IsEmpty(selfinter) 
     59WHERE 
     60    NOT ST_IsEmpty(selfinter) 
    5861""" 
    5962 
Note: See TracChangeset for help on using the changeset viewer.