当前位置: 首页>>代码示例>>Python>>正文


Python Analyser_Osmosis.__init__方法代码示例

本文整理汇总了Python中Analyser_Osmosis.Analyser_Osmosis.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Analyser_Osmosis.__init__方法的具体用法?Python Analyser_Osmosis.__init__怎么用?Python Analyser_Osmosis.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Analyser_Osmosis.Analyser_Osmosis的用法示例。


在下文中一共展示了Analyser_Osmosis.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item": 2090, "level": 3, "tag": ["tag", "highway", "fix:imagery"], "desc": T_(u"Possible crossing=traffic_signals") }
     self.callback10 = lambda res: {"class":1, "data":[self.node_full, self.node_full, self.positionAsText], "fix":[
         [{"+":{"crossing":"traffic_signals"}}],
         [{"+":{"crossing":"traffic_signals"}}, {"-":["crossing"]}]
     ] }
开发者ID:Olyon,项目名称:osmose-backend,代码行数:9,代码来源:analyser_osmosis_highway_crossing.py

示例2: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
    def __init__(self, config, logger, source = Source(), load = Load(), mapping = Mapping()):
        Analyser_Osmosis.__init__(self, config, logger)
        self.source = source
        self.load = load
        self.mapping = mapping

        if hasattr(self, 'missing_official'):
            self.classs[self.missing_official["class"]] = self.missing_official
        else:
            self.missing_official = None
        if hasattr(self, 'missing_osm'):
            self.classs[self.missing_osm["class"]] = self.missing_osm
        else:
            self.missing_osm = None
        if hasattr(self, 'possible_merge'):
            self.classs[self.possible_merge["class"]] = self.possible_merge
        else:
            self.possible_merge = None
        if hasattr(self, 'moved_official'):
            self.classs[self.moved_official["class"]] = self.moved_official
        else:
            self.moved_official = None
        if hasattr(self, 'update_official'):
            self.classs[self.update_official["class"]] = self.update_official
        else:
            self.update_official = None
开发者ID:pyrog,项目名称:osmose-backend,代码行数:28,代码来源:Analyser_Merge.py

示例3: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[1] = {"item":"7090", "level": 2, "tag": ["railway", "highway", "fix:imagery"], "desc": T_(u"Missing way on level crossing") }
     self.classs[3] = {"item":"7090", "level": 2, "tag": ["highway", "fix:chair"], "desc": T_(u"Lone highway or barrier node") }
     self.callback10 = lambda res: {"class":1, "subclass":1, "data":[self.node_full, self.positionAsText, self.way_full]}
     self.callback20 = lambda res: {"class":1, "subclass":2, "data":[self.node_full, self.positionAsText, self.way_full]}
     self.callback30 = lambda res: {"class":3, "data":[self.node_full, self.positionAsText]}
开发者ID:Olyon,项目名称:osmose-backend,代码行数:9,代码来源:analyser_osmosis_feature_on_way.py

示例4: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[1] = {"item": "1260", "level": 3, "tag": ["public_transport"], "desc": T_(u"Route in parts") }
     self.classs[2] = {"item": "1260", "level": 3, "tag": ["public_transport"], "desc": T_(u"Stop or platform away from route way") }
     self.classs_change[3] = {"item": "1260", "level": 3, "tag": ["public_transport"], "desc": T_(u"Non route relation member in route_master relation") }
     self.callback10 = lambda res: {"class":1, "data":[self.relation_full, self.positionAsText]}
     self.callback20 = lambda res: {"class":2, "data":[self.relation_full, self.any_full, self.positionAsText]}
     self.callback30 = lambda res: {"class":3, "data":[self.relation_full, self.any_full, self.positionAsText]}
开发者ID:tyndare,项目名称:osmose-backend,代码行数:10,代码来源:analyser_osmosis_relation_public_transport.py

示例5: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item":"1050", "level": 1, "tag": ["highway", "roundabout", "fix:chair"], "desc": T_(u"Reverse roundabout") } # FIXME "menu":"rond-point à l'envers", "menu":"reverse roundabout"
     self.callback10 = lambda res: {"class":1, "data":[self.way_full, self.positionAsText]}
     if self.config.options.get("driving_side") == "left":
         self.driving_side = "NOT "
     else:
         self.driving_side = ""
开发者ID:Olyon,项目名称:osmose-backend,代码行数:10,代码来源:analyser_osmosis_roundabout_reverse.py

示例6: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger=None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[11] = {
         "item": "2060",
         "level": 3,
         "tag": ["addr", "fix:chair"],
         "desc": T_(u"Multiple name for the same ref FANTOIR"),
     }
开发者ID:naoliv,项目名称:osmose-backend,代码行数:10,代码来源:analyser_osmosis_fantoir.py

示例7: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item":"1140", "level": 3, "tag": ["fix:chair"], "desc": T_(u"Missing tag or role on node") }
     self.classs_change[2] = {"item":"1140", "level": 3, "tag": ["fix:chair"], "desc": T_(u"Missing tag or role on way") }
     self.classs_change[3] = {"item":"1140", "level": 3, "tag": ["fix:chair"], "desc": T_(u"Missing tag or role on relation") }
     self.callback10 = lambda res: {"class":1, "data":[self.node_full, self.relation_full, self.positionAsText]}
     self.callback20 = lambda res: {"class":2, "data":[self.way_full, self.relation_full if res[1] else None, self.positionAsText]}
     self.callback30 = lambda res: {"class":3, "data":[self.relation_full, self.relation_full if res[1] else None, self.positionAsText]}
开发者ID:Olyon,项目名称:osmose-backend,代码行数:10,代码来源:analyser_osmosis_useless.py

示例8: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger=None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[1] = {
         "item": "1080",
         "level": 1,
         "tag": ["geom", "building", "fix:chair"],
         "desc": T_(u"Orphan nodes cluster")
     }
开发者ID:osm-fr,项目名称:osmose-backend,代码行数:10,代码来源:analyser_osmosis_orphan_nodes_cluster.py

示例9: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.tags = ( (10, "railway", ("rail",)),
                   (20, "waterway", ("river",)),
                   (30, "highway", ("motorway", "trunk", "primary", "secondary")),
                 )
     for t in self.tags:
         self.classs_change[t[0]] = {"item":"1190", "level": 3, "tag": ["geom", "highway", "railway", "fix:imagery"], "desc": T_(u"Approximate %s", t[1]) }
     self.callback10 = lambda res: {"class":res[4], "subclass":abs(int(hash(res[3]))), "data":[self.way_full, self.positionAsText], "text": {"en": u"%s discart from %sm" % (res[3], res[2]), "es": u"%s de %sm descartados" % (res[3], res[2]), "fr": u"Flèche de %sm sur %s" % (res[2], res[3])}}
开发者ID:nyampire,项目名称:osmose-backend,代码行数:11,代码来源:analyser_osmosis_way_approximate.py

示例10: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger=None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {
         "item": "0",
         "level": 3,
         "tag": ["building", "fix:imagery"],
         "desc": T_(u"Merge building (triangle)")
     }
     self.callback70 = lambda res: {"class":1, "data":[self.way_full, self.positionAsText]}
开发者ID:osm-fr,项目名称:osmose-backend,代码行数:11,代码来源:analyser_osmosis_building_3nodes.py

示例11: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[1] = {"item":"7040", "level": 3, "tag": ["power", "fix:imagery"], "desc": T_(u"Lone power tower or pole") }
     self.classs[2] = {"item":"7040", "level": 2, "tag": ["power", "fix:imagery"], "desc": T_(u"Unfinished power line") }
     self.classs[3] = {"item":"7040", "level": 3, "tag": ["power", "fix:chair"], "desc": T_(u"Connection between different voltages") }
     self.classs_change[4] = {"item":"7040", "level": 3, "tag": ["power", "fix:imagery"], "desc": T_(u"Non power node on power way") }
     self.classs_change[5] = {"item":"7040", "level": 3, "tag": ["power", "fix:imagery"], "desc": T_(u"Missing power tower or pole") }
     self.callback20 = lambda res: {"class":2, "data":[self.node_full, self.positionAsText]}
     self.callback40 = lambda res: {"class":4, "data":[self.node_full, self.positionAsText]}
     self.callback50 = lambda res: {"class":5, "data":[self.way_full, self.positionAsText]}
开发者ID:naoliv,项目名称:osmose-backend,代码行数:12,代码来源:analyser_osmosis_powerline.py

示例12: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item":"1070", "level": 2, "tag": ["highway", "building", "geom", "fix:imagery"], "desc": T_(u"Highway intersecting building") }
     self.classs_change[2] = {"item":"1070", "level": 2, "tag": ["tree", "building", "geom", "fix:imagery"], "desc": T_(u"Tree intersecting building") }
     self.classs_change[3] = {"item":"1070", "level": 2, "tag": ["highway", "tree", "geom", "fix:imagery"], "desc": T_(u"Tree and highway too close") }
     self.classs_change[4] = {"item":"1070", "level": 3, "tag": ["highway", "waterway", "geom", "fix:imagery"], "desc": T_(u"Highway intersecting water") }
     self.callback10 = lambda res: {"class":1, "data":[self.way_full, self.way_full, self.positionAsText]}
     self.callback20 = lambda res: {"class":2, "data":[self.node_full, self.way_full, self.positionAsText]}
     self.callback30 = lambda res: {"class":3, "data":[self.node_full, self.way_full, self.positionAsText]}
     self.callback40 = lambda res: {"class":4, "data":[self.way_full, self.way_full, self.positionAsText]}
开发者ID:naoliv,项目名称:osmose-backend,代码行数:12,代码来源:analyser_osmosis_highway_vs_building.py

示例13: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs[100] = {"item":"6070", "level": 3, "tag": ["boundary", "geom", "fix:chair"], "desc": T_(u"Survey point out of boundary") }
     self.classs[101] = {"item":"6070", "level": 1, "tag": ["boundary", "place", "fix:chair"], "desc": T_(u"\"place\" node  out of boundary") }
     self.classs[2] = {"item":"6060", "level": 1, "tag": ["boundary", "geom", "fix:chair"], "desc": T_(u"Boundary intersection") }
     self.classs_change[3] = {"item":"6060", "level": 2, "tag": ["boundary", "geom", "fix:chair"], "desc": T_(u"Lone boundary fragment") }
     self.callback20 = lambda res: {"class":100, "data":[self.relation_full, self.relation_full, self.positionAsText]}
     self.callback30 = lambda res: {"class":101, "data":[self.node_full, self.relation_full, self.positionAsText]}
     self.callback40 = lambda res: {"class":2, "data":[self.relation_full, self.relation_full, self.positionAsText]}
     self.callback50 = lambda res: {"class":3, "data":[self.way_full, self.positionAsText]}
开发者ID:naoliv,项目名称:osmose-backend,代码行数:12,代码来源:analyser_osmosis_boundary_administrative.py

示例14: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item":"3100", "level": 2, "tag": ["tag", "landuse", "fix:imagery"], "desc": T_(u"Small farm : consider farmyard or building instead") }
     self.callback10 = lambda res: {"class":1, "data":[self.way_full, self.positionAsText], "fix":[
         {"-":["landuse"], "+":{"building":"yes"}},
         {"-":["landuse"], "+":{"building":"farm_auxiliary"}},
         {"-":["landuse"], "+":{"building":"farm"}},
         {"-":["landuse"], "+":{"building":"farmhouse"}},
         {"landuse":"farmyard"},
         {"landuse":"farmland"},
         ]}
开发者ID:naoliv,项目名称:osmose-backend,代码行数:13,代码来源:analyser_osmosis_mini_farm.py

示例15: __init__

# 需要导入模块: from Analyser_Osmosis import Analyser_Osmosis [as 别名]
# 或者: from Analyser_Osmosis.Analyser_Osmosis import __init__ [as 别名]
 def __init__(self, config, logger = None):
     Analyser_Osmosis.__init__(self, config, logger)
     self.classs_change[1] = {"item":"0", "level": 3, "tag": ["building", "geom", "fix:chair"], "desc": T_(u"Building intersection") }
     self.classs_change[2] = {"item":"0", "level": 2, "tag": ["building", "geom", "fix:chair"], "desc": T_(u"Large building intersection") }
     self.classs_change[3] = {"item":"0", "level": 3, "tag": ["building", "geom", "fix:chair"], "desc": T_(u"Building too small") }
     self.classs_change[4] = {"item":"0", "level": 3, "tag": ["building", "geom", "fix:chair"], "desc": T_(u"Gap between buildings") }
     self.classs_change[5] = {"item":"0", "level": 1, "tag": ["building", "fix:chair"], "desc": T_(u"Large building intersection cluster") }
     self.callback30 = lambda res: {"class":2 if res[3]>res[4] else 1, "data":[self.way, self.way, self.positionAsText]}
     self.callback40 = lambda res: {"class":3, "data":[self.way, self.positionAsText]}
     self.callback50 = lambda res: {"class":4, "data":[self.way, self.way, self.positionAsText]}
     self.callback60 = lambda res: {"class":5, "data":[self.positionAsText]}
开发者ID:Olyon,项目名称:osmose-backend,代码行数:13,代码来源:analyser_osmosis_building_overlaps.py


注:本文中的Analyser_Osmosis.Analyser_Osmosis.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。