OSM to postGIS in Windows using Python

Hey,

My quest:
I would like to create my own postgis database using Openstreetmap.

My problem:
None of the OSM/map libraries for python seems to work on windows.

My setup:

  • Windows 7
  • Python 2.x / 3.x

Anyone here who know how to use any of the libs in windows?

Thanks in advance.

Not me, but https://ircama.github.io/osm-carto-tutorials/ might be useful. Also there might be some previous questions over at https://help.openstreetmap.org/questions/ .

Windows is very much the “poor relation” when it comes to OpenStreetMap rendering. There’s some discussion over at https://github.com/openstreetmap/osm2pgsql/issues?utf8=%E2%9C%93&q=%20windows , so osm2pgsql might work.

osm2pgsql works fine under Windows for quite some time.

A general starting point for any geo work with Python under windows would be to install OSGeo4W and use their shell. Many gdal & ogr utilities can process OSM files.