Changeset a15a05a in osmose-backend


Ignore:
Timestamp:
Jun 17, 2014 5:15:21 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
53abe8b
Parents:
926e95d
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (17/06/2014 17:13:36)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (17/06/2014 17:15:21)
Message:

Fix is_in into analyser_merge_school_FR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_merge_school_FR.py

    rd53a9cf ra15a05a  
    3939            Load("X", "Y", srid = srid, table = "School_FR", 
    4040                filter = lambda t: t.replace("; ", ";null").replace(";.", ";null").replace("Ecole", u"École").replace("Saint ", "Saint-").replace("Sainte ", "Sainte-").replace(u"élementaire", u"élémentaire"), 
    41                 where = self.where), 
     41                where = lambda res: res["_x"] and res["_y"] and self.is_in(float(res["_x"]), float(res["_y"]))), 
    4242            Mapping( 
    4343                select = Select( 
     
    7474                return v 
    7575        return res["lib_nature"] 
    76  
    77     # No overlaping bbox 
    78     def where(self, res): 
    79         self.sourceWhere = lambda res: res["_x"] and res["_y"] and self.is_in(float(res["_x"]), float(res["_y"])) 
    8076 
    8177 
Note: See TracChangeset for help on using the changeset viewer.