Changeset 97e20eb in osmose-backend


Ignore:
Timestamp:
Jan 5, 2013 9:11:48 PM (7 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Children:
c0fdfd6
Parents:
c41e743
git-author:
Frédéric Rodrigo <frodrigo@…> (03/01/2013 21:47:10)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (05/01/2013 21:11:48)
Message:

Add post analysis error filter based on polygon

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • README

    rc97d32a r97e20eb  
    1919  python > 2.6 recommended 
    2020  python-psycopg2 > 2.4 
     21  python-shapely >= 1.2 
    2122  postgresql-9.1           # for osmosis and osm2pgsql database dumps 
    2223  postgresql-9.1-postgis 
  • modules/OsmoseErrorFile.py

    r1aa2482 r97e20eb  
    2323 
    2424import OsmSax 
     25from OsmoseErrorFile_ErrorFilter import PolygonErrorFilter 
    2526 
    2627 
     
    2930    def __init__(self, config): 
    3031        self.config = config 
     32        self.filter = None 
    3133        self.geom_type_renderer = {"node": self.node, "way": self.way, "relation": self.relation, "position": self.position} 
    3234 
     
    6365 
    6466    def error(self, classs, subclass, text, res, fixType, fix, geom): 
     67        if self.filter and not self.filter.apply(classs, subclass, geom): 
     68            return 
     69 
    6570        if subclass != None: 
    6671            self.outxml.startElement("error", {"class":str(classs), "subclass":str(int(subclass) % 2147483647)}) 
Note: See TracChangeset for help on using the changeset viewer.