Hi! Basically I followed instructions from here: http://openstreetmapserverwindows.blogspot.com.eg/2015/11/osmopenstreetmap-tile-server.html to set up our own OSM server on Windows Server 2012 64-bit. I edited generate_tiles.py and generated some tiles for Tuam town in Ireland to test this. I noticed that there are not many symbols included on zoom level 16, but much on zoom level 17 , below: notice this is the same crossroad: However we don't want to generate zoom level 17, because it takes an awful long time to generate so many small tiles even for a small town and we accually don't need such high zoom level. Instead we want to have ALL symbols to be included on zoom level 16 or even earlier. How to achieve this? Thanks :-) asked 20 Jan '17, 16:38 Koles500 aseerel4c26 ♦ |
Firstly, note that the map style you are using from SVN is about four years old. Since then, all style development has happened in github.com/gravitystorm/openstreetmap-carto - so don't be surprised if your maps look very different from what you see on openstreetmap.org. However, switching to the newest style would also require newer version of Mapnik and osm2pgsql than referenced in the blog article so maybe youre safer to stay with what you have. You can change the zoom level at which icons are displayed by modifying the right map style file. For example, the file
Change to answered 20 Jan '17, 20:13 Frederik Ramm ♦ |
I would not recommend rendering zoom 16 with all the icons of zoom 17, as the style is carefully crafted to display as much information as possible while keeping clarity. But if you really want to, you should check openstreetmap-carto, the commonly used style, that you would have to modify. My first advice would be to run a Linux VM in HyperV (or other virtualization), it's free and easy to set up. Then you will a much more common setup and you will be able to find a lot more help ! For exemple you could follow this kind of tutorial (there are many) : openstreetmap-tile-server-ubuntu-16-04 Or the "official" switch2osm.org. With this kind of setup, tiles will be rendered on demand. Except if you force a render, as in the last step, in the first link they only pre-render down to zoom level 10. Then you can cheaply host a renderer that goes down to zoom 20 ! This way tiles are only calculated when someone needs them, and you can choose to store them or not. There are probably ways to do the same thing with Windows, but I didn't find it quickly. Sorry as I don't really answer to the question asked. But I really think it will be easier with Linux to find documentation. Regards. answered 20 Jan '17, 20:57 H_mlet Regardless of OS, I'd definitely suggest working with a CartoCSS style definition rather than a raw mapnik one - it'll be much easier to understand. Some of the stuff at https://ircama.github.io/osm-carto-tutorials/ (which does include Windows examples) may be useful. Note that TileMill that's mentioned there isn't supported by the absolute latest "OSM Standard" style, but it'll work out of the box with a "fairly recent" one (one much newer than the style you are currently using).
(20 Jan '17, 23:01)
SomeoneElse ♦
|
Thank you both very much for responses, I will be working on this intensively in next days. Right now I want to add that I found newer build for Windows: https://dl.dropboxusercontent.com/u/63393258/osm2pgsql_testRelease.zip linked on this page: http://awcull.com/2015/09/30/postgis-osm2pgsql-windows.html However I am not sure if this is the newest build. How can I check this or where can I download newest build for Windows 64-bit? I am now running osm2pgsql for whole Europe in slim mode and I'm curious if this will work...