Skip to content

A Python-based project tailored for MapAction, streamlining the download and analysis of geographic data from OpenStreetMap using OSMnx and Geopandas. It efficiently manages roads, rivers and more. This system is an essential part of the MapAction data pipeline, enhancing disaster management by providing quick access to vital geographic data.

License

Notifications You must be signed in to change notification settings

mapaction/geocint-mapaction-osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OSM-LAYERS Project

The OSM-LAYERS project is a comprehensive Python-based solution for downloading, processing, and analyzing OpenStreetMap (OSM) data across multiple geographic entities. Utilizing the power of libraries such as OSMnx and Geopandas this project aims to facilitate the extraction of meaningful geographic information structured into various categories including roads, rivers, educational institutions, and many more.

Project Structure

The project is organized into modular Python scripts, each dedicated to handling a specific type of OSM data. This modular design ensures ease of management and scalability, accommodating a wide range of geographic data processing needs.

Features

  • Diverse Data Handling: Classes for downloading and processing data for roads, rivers, schools, hospitals, and other geographic features.
  • Efficient Data Processing: Techniques for filtering, reprojecting, and formatting data to meet specific analysis or storage needs.
  • Custom CRS Handling: Functionality to map country codes to their corresponding Coordinate Reference Systems (CRS) for accurate geographic representation.

Getting Started

Prerequisites

Ensure you have Python 3.6+ installed on your system. The project depends on several Python libraries, including:

OSMnx

Geopandas

Pandas

Pathlib

Install these dependencies using pip:

pip install osmnx geopandas pandas pathlib

Usage

Prepare your GeoJSON files: Place your GeoJSON files in the designated directory. Ensure that each file is named according to the country code it represents.

Run the Makefile: Execute the main Python script to start the process of data downloading and processing.

Review the output: Processed data will be saved in the specified output directory, organized by data type and country code.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Fork the Project Create your Feature Branch (git checkout -b feature/AmazingFeature) Commit your Changes (git commit -m 'Add some AmazingFeature') Push to the Branch (git push origin feature/AmazingFeature) Open a Pull Request

License

Distributed under the The MIT. See LICENSE for more information.

Contact

[email protected]

Project Link: https://github.com/yourrepository/OSM-LAYERS

About

A Python-based project tailored for MapAction, streamlining the download and analysis of geographic data from OpenStreetMap using OSMnx and Geopandas. It efficiently manages roads, rivers and more. This system is an essential part of the MapAction data pipeline, enhancing disaster management by providing quick access to vital geographic data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages