Code Monkey home page Code Monkey logo

prgopenstreetmap's Introduction

Prague OpenStreetMap Project

Address Audit

To perform audit of address information run the following command in a terminal (from the project directory):

python -m openstrmap.auditaddr

After running this command you will get audit report, more detailed information about detected data problems can be found in corresponding log files in \openstrmap\log.

Data Processing

To run data processing module run the following command in a terminal (from the project directory)

python -m openstrmap.data

This python module parse OSM input file, fix some address problems and prepare csv files for further import into database. Csv files are stored in openstrmap\ folder, details of all performed corrections are stored in log file in \openstrmap\log\fixaddr.log.

One of corrections is related to mistyped street names (see details in project report), a list of mistyped street names is formed from audit log file openstrmap\log\audit_strnames.log. This file can be manually checked and edited in before running data processing and correction.

###Create and Explore Database

To create SQLite database with defined scheme , run the following command in a terminal (from the project directory):

python -m sql.loadtodb

This module creates db file and runs SQL script from sql\scripts\createdb.sql

To import csv files into database repeat the following command for each file (run in SQLite terminal):

.separator ","
.import csv_file_path db_table

To run SQL queries, run the following command in a terminal (from the project directory):

python -m sql.qwrstodb

SQL scripts are stored in the folder \slq\scripts and query results are written in csv files in \sql\query_results. Names of csv files correspond to the names of sql scripts.

prgopenstreetmap's People

Contributors

tommak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.