How to use the osmium.SimpleHandler.__init__ function in osmium

To help you get started, we’ve selected a few osmium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamfranco / curvature / curvature / collector.py View on Github external
def __init__(self):
        osmium.SimpleHandler.__init__(self)
github Oslandia / osm-data-classification / src / OSM-history-parsing.py View on Github external
def __init__(self):
        """ Class default constructor"""
        osm.SimpleHandler.__init__(self)
        self.elemtimeline = [] # Dictionnary of OSM elements
github Oslandia / osm-data-classification / osmdq / osmparsing.py View on Github external
def __init__(self):
        osm.SimpleHandler.__init__(self)
        self.taggenome = []
github Oslandia / osm-data-classification / src / node-history-stats.py View on Github external
def __init__(self):
        osm.SimpleHandler.__init__(self)
        self.ids = set()
        # list of lists (node_id, lon, lat, version, visible, ts, uid, changesetid, ntags, tagkeys)
        self.nodetimeline = []
github Oslandia / osm-data-classification / src / way-history-stats.py View on Github external
def __init__(self):
        osm.SimpleHandler.__init__(self)
        self.ids = set()
        # list of lists (way_id, version, visible, ts, uid, changesetid, nb_nodes, nids, nb_tags, tagkeys)
        self.waytimeline = []
github Oslandia / osm-data-classification / src / relation-history-stats.py View on Github external
def __init__(self):
        osm.SimpleHandler.__init__(self)
        self.ids = set()
        # list of lists (way_id, version, visible, ts, uid, changesetid, nb_members, mids, nb_tags, tagkeys)
        self.relationtimeline = []
github jremillard / osm-changeset-classification / createhistorydatabase.py View on Github external
def __init__(self, conn):
        osmium.SimpleHandler.__init__(self)
        self.conn = conn
        self.cursor = conn.cursor()
        self.writeCount = 0
        self.writeCountTotal = 0
        self.blockStartTime = time.time()
        self.startTime = time.time()
github trailbehind / DeepOSM / src / openstreetmap_labels.py View on Github external
def __init__(self, extract_type='highway'):
        """Extract ways from OpenStreetMap PBF files."""
        o.SimpleHandler.__init__(self)
        self.ways = []
        self.way_dict = {}
        self.types = []
        self.extract_type = extract_type
github mvexel / meetyourmappers / meetyourmappers / osm.py View on Github external
def __init__(self):
        osmium.SimpleHandler.__init__(self)
        self.users = {}
        self.totals = {
            'n': 0,
            'w': 0,
            'r': 0,
            'f': datetime.now(timezone.utc),
            'l': datetime.now(timezone.utc)}

osmium

Python bindings for libosmium, the data processing library for OSM data

BSD-2-Clause
Latest version published 2 months ago

Package Health Score

75 / 100
Full package analysis