Git Product home page Git Product logo

osmimport's Introduction

OSMImport

Patrice Freydiere - 2015 - 2016 - 2017


Yet An Other OSM Import Tools for OSM data - Change Log

This project aim to provide a simple command line for ingesting OSM Data in a GIS.

The output result are tables or featureclasses inside one or multiple output FileGeodatabase (ready to use in GIS software). CSV output files are also supported since 0.6 version, allowing to have a smooth BigData shift.

This tools is currently used on Windows (x64) and Linux (x64).

For performances or filtering capability, see architecture and doc folder

Features

  • PBF / XML / OSM / AVRO / CSV Big Data Folder Input input file support
  • FileGeodatabase Output, that can be natively read by ArcGIS Desktop or QGIS
  • Create CSV text files in a folder for Hadoop/Big stacks
  • Simple declarative groovy transformation script
  • Way reconstruction, Polygon reconstruction for PBF / XML input file
  • Scripts are Easy to share and maintain (a single human readable .script file), see scripts folder
  • You can use any third party using Groovy or **Java ** language in scripts, for filtering and transformations.
  • Multiple destinations output on one run (ability to merge import scripts)
  • Automatic RAM memory management (manage the RAM consumption)

Windows / Linux friendly

Usage context - known usage

  • A minimum of 5go of RAM is necessary for a first load

  • Nota : RAM is used for processing complete ways and polygons, if RAM is not available, subsequent input file read are going to be done and will lead to decrease performances.

  • A typical 32 Gb or RAM permit to handle France territory in a very nice timeframe. (please give us your benchmarks feedbacks and configurations). Special tuning could be done for an optimized process. (message regularisation limites, depending on the available memory).

  • The tool currenlty only support WGS84 coordinate system as the osm datas use this coordinate system and it is quite easy to reproject thoses in an other coordinate system afterward.

  • for huge integration (more than 1gb of PBF), or less that 2h country integration, consider using the osm-flink-tools to preprocess the input file, this is MUCH FASTER. This is done for avro prepared files

    โ€‹

Benchmarks

test it :-), we got lots of fast feedback for planet extract / transforms.

PBF / OSM - Data Files

Openstreet france provide OSM extracts at this location : http://download.openstreetmap.fr/extracts/

AVRO - Data Files

Prepared avro data files are available at this url : https://s3-eu-west-1.amazonaws.com/avroosm/index.html

Download and install - Next actions

Take a tour at 5 mins setup guide to launch your first command line.

Existing Scripts folder contains a bunch of existing scripts for already configured OSM transformation and filtering

If you want to go further and customize the scripts, see How to write Scripts. It explain how to customize or configure your scripts for your usage.

other documentations can be found in the doc folder

don't hesitate to send pull requests or comments.

Sample scripts :

Contributions

Contributions are welcome on :

  • documentation
  • scripts
  • code
  • enhancements
  • ...

Version 1.0 roadmap plan

  • handling relationships
  • handling polygons
  • tables support
  • csv text files support
  • Work on simplify the writing of scripts
  • fix erroneous polygon reconstruction
  • propose a sample script gallery for common operations
  • error logs, and feedbacks
  • clean logs
  • extend fields type to Date (supported fields: integer, string, long, floats)

osmimport's People

Contributors

frett27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

osmimport's Issues

Output table field can not be used in ArcMap : "An expected Field was not found..." error message

In ArcMap 10.5, on an output table from an import of relations, when trying to :

  • select by attributes querying a field
  • sorting attributes on field

We get the following message : "An expected Field was not found or could not be retrieved properly."

Using "Compact Geodatabase" tool does not solve this issue.

A workaround is to make a "Table to Table" of the table to a new one (in the same gdb), and then use the copied table. Then everything's fine.

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.