Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fetch information about paragliding flights from alpine peaks.

NotificationsYou must be signed in to change notification settings

dbrgn/hnf-peaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch information about paragliding flights from alpine peaks.

Map:https://dbrgn.github.io/hnf-peaks/

Prerequisites

  • Bash
  • PostgreSQL + PostGIS
  • Python 3
  • The following Python packages: beautifulsoup4, psycopg2

0: Start services

The easiest way to run PostGIS is through Docker:

docker run -d --name hnf-peaks-pg \      -e POSTGRES_USER=$(id -u -n) \      -e POSTGRES_HOST_AUTH_METHOD=trust \      -p 127.0.0.1:5432:5432 \      docker.io/postgis/postgis:16-3.4-alpine

1: Download OSM Data

This will download the OpenStreetMap database and extract all peaks with anelevation >1000m:

./1-load-osm-data.sh <country>

2: Query XContest

This will process all peaks and query XContest for the number of flights thatlaunched from within 350 m around the peak:

export XCONTEST_USER=...export XCONTEST_PASS=..../2-query-xcontest.py <country>

The data will be written to a file calleddata-YYYY-MM-DD.csv.

WARNING: X-Contest does rate limiting, so unless you are whitelisted bythem, you will probably get blocked after a while. Furthermore, do not run thiscommand on the evening of a hammer day, choose a time when XContest is notbusy.

3: Postprocess Data

To calculate some aggregations:

./3-postprocessing.py <data-in.csv> pilots <pilots-out.csv>

To generate GeoJSON from the data:

./3-postprocessing.py <data-in.csv> geojson <geojson-out.json>

License

  • Code: GPLv3 or later
  • Data: © OpenStreetMap contributors

About

Fetch information about paragliding flights from alpine peaks.

Topics

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp