Skip to content

Instantly share code, notes, and snippets.

View raphaelmerx's full-sized avatar

Raphaël Merx raphaelmerx

View GitHub Profile
@raphaelmerx
raphaelmerx / convert zawgyi to unicode.py
Created October 17, 2019 01:29
Convert zawgyi in django.po to unicode
#!/usr/bin/env python
# coding: utf-8
import re
import json
with open('projectbank/locale/my/LC_MESSAGES/django.po') as f:
original_lines = f.readlines()
Chuave District
Gumine District
Karimui-Nomane District
Kerowagi District
Kundiawa-Gembogl District
Sina Sina-Yonggomugl District
Daulo District
Goroka District
Henganofi District
Kainantu District

Extracting data from OpenStreetMap into a Postgres db

1. Download PNG data

wget https://download.geofabrik.de/australia-oceania/papua-new-guinea-latest.osm.pbf

2. Clone the openstreetmap-carto dir

git clone git://github.com/gravitystorm/openstreetmap-carto.git --depth 1