mapbox / osm-bright

A Carto template for OpenStreetMap data
BSD 3-Clause "New" or "Revised" License
698 stars 225 forks source link

Test on Windows #22

Open ajashton opened 12 years ago

ajashton commented 12 years ago

No idea what kind of issues might pop up

ajashton commented 12 years ago

Looking into this further, looks like the first big hurdle is installing osm2pgsql. There is an old build available that does not support pbf, otherwise the wiki suggests building it via mingw. Imposm does not make any claims of Windows compatibility.

jlkittle commented 12 years ago

note that the 'default.style' in the old build (dated April 9 2010) referenced at http://wiki.openstreetmap.org/wiki/Osm2pgsql#Windows_XP does not import the 'population' tag. this causes the 'place' query in 'project.mml' to fail.

adding 'node population text' to 'default.style' and referencing the style explicitly ('-S=\default.style') on the osm2pgsql command line fixes this problem.

springmeyer commented 12 years ago

I'm going to try to update the osm2pgsql windows situation in the next week or so by trying to compile on windows7

springmeyer commented 11 years ago

There are a couple different windows binaries available now: http://wiki.openstreetmap.org/wiki/Osm2pgsql#Windows

The main problem people hit on windows is memory failures unzipping the large shapefiles. The workaround is the unzip them ahead of time since I don't plan to fix https://github.com/springmeyer/node-zipfile/issues/12

So, it seems worthwhile to consider writing a tutorial for windows, though low priority.

jasonwoo commented 11 years ago

I was dreading having to get this going on Windows but with the large zip file workaround and using OpenGeo Suite 4.0 for the postgres/postgis stuff it was actually pretty painless. Almost as easy as the OSX tutorial. I'd be happy to share my notes if anyone is interested.

springmeyer commented 11 years ago

@jasonwoo - that would be excellent. You could start by sharing notes in a gist and then linking here. Other places it would be great to add windows info are the README.md and then eventually narrative guides like we have for OS X: