Hello OpenLabs members,
At the OSM meetup at OSCAL, I discussed with some of you (@anisakuci9, @Sidorela ) and some of OSM Kosovo members (@besiguri).
The discussion was very interesting and I think OSM Belgium (I’m one of the board members), OSM Albania, and OSM Kosovo can collaborate !
Tasking Manager :
HOT (Humanitarian OpenStreetMap Team) has developed a tasking manager to manage huge mapping tasks in the world. That tasking manager is used for humanitarian purposes (http://tasks.hotosm.org/).
The tasking manager is open-source : https://github.com/hotosm/osm-tasking-manager2
I forked it for manage mapping tasks in Belgium ; I suggested to @anisakuci9 and @besiguri that you can use “our” tasking manager to manage your tasks.
The link of the OSMBE tasking manager is http://tasks.osm.be/ ! Feel free to use it or contact me if you have questions about it.
Local baselayer :
For OSM Belgium, I developed a local baselayer based on OSM : https://tile.osm.be/
I extracted French, Dutch and German names and created localized baselayers ; I also did some modifications of the "default OSM style.
I do not know if it can be useful for Albania or Kosovo but if you need some layers like this, feel free to contact me.
The OSMBE baselayer project is open-source too : https://github.com/jbelien/openstreetmap-carto-be
Import of data :
I learned that you have access to official data for Tirana. If you need assistance to import those data in OSM or to create tools for that, that’s what I do as a daily job, I probably can help !
Any other idea :
I really enjoyed meeting OSM Albania and OSM Kosovo and discussing with you, I really want to create collaborations between our countries ; so if you have any idea on how we can collaborate or help each other, I’m listening !
I discovered this morning you are now a Maptime Chapter (run by @diskmanti).
That’s really awesome !
I’ll try to come at one of your events next time I’m in Tirana !
I would really enjoy seeing you on one of our maptime meetings. Maybe you can help us to run maptime a little bit smoother
I run the “technical part” of Maptime Belgium.
I tweaked a bit the default template ; mainly to display the location : https://github.com/maptime/belgium ; feel free to use it if you need it.
I also developed a small “summary” of the Maptime Belgium events (https://calendar.osm.be/) so it can be embed in our website (http://www.osm.be/en/calendar). The “summary” is updated automatically of course. I’ll publish the code of this “tool” on GitHub as well.
If you need assistance, feel free to ask (whatever the subject ^^).
I lookd though your github profile, I found some intresting things there. Mainly the “setup your tiles part” I would like to do the same for albania, host some osm tile with a custom style. I would like to do this with geoserver and postgis. Can not really understand mapnik that much(too complicated).
Also if you could give us an advice on the “management part” of maptime, I would appreciate that. This way we can organize maptimetirana e little bit smoother.
Thanks for your help,
For a custom baselayer based on OSM data for Albania, I also started with MapServer and PostGIS but that’s definitely NOT the easiest way to do it.
I you follow this (https://github.com/jbelien/openstreetmap-carto-be/wiki/Installation-(Ubuntu-16.04)) and tweak the "
Loading data" and “Setting up the stylesheet” parts, it’s really easy to install and use.
That’s what we use for https://tiles.osm.be/ and what’s used for https://osm.org/ !
If you need any assistance with this, just ask
I strongly not recommend to use anything else than the “OSM stack” to create an OSM baselayer for Albania (been there, done that ).
Concerning MapTime, what sort of advice do you need ?
I wanted to use something different from your guide at [github](https://github.com/jbelien/openstreetmap-carto-be/wiki/Installation-(Ubuntu-16.04) because I do no understand mapserver and even less mapnik So i thought I could do the same using other geo software like Geoserver. So I was curious to know if I could do this using postgis + geoserver +geowebcache.
Regarding Maptime I wanted to know how to you run it. Waht are the topcs you discuss at your chapter. Are there a set list of topics or you just do wahtever seems interesting that month.
Thanks a bunch
MapServer is pretty much the same as GoeServer
You totally can use GeoServer/MapServer + PostGIS to create a custom baselayer for Albania based on OSM but it will be much more complicated than using Mapnik (as explained in my GitHub repository).
Trust me, I did both
If you have a server available, I can help you to install and configure Mapnik environment to host your custom baselayer.
Other idea : @anisakuci9 was talking about organizing an OSM week-end in September.
If it happens, I’ll be there and maybe give a talk/workshop on that topic
For MapTime, our chapter is quite new. We organized only a few workshop (in collaboration with OSGEO Belgium). Topics were : OpenLayers, QGIS, QGIS plugins, …
We did not figured or decided yet how to handle it and how often organize our events. So if YOU have good ideas of topics, feel free to share it
We use our MapTime chapter also to promote our meetings and mapathons (even if it’s not “covered” by MapTime).
I think Geoserver is more user friendly than Mapserver.
Also I never learned how to use Mapnik Maybe I should give it one more try. Can you suggest somewhere where I can start with Mapnik? Is there a book for Mapnik or maybe some online tutorials?(apart from the one on the official web site) Also, how can I write a style for Mapnik. Is it all just a very big xml file?
I have on server available, on Digital Ocean, the lowest tier (512 Mb ram, 20 Gb HDD, 1 Core)
I would really appreciate if you give a workshop here, maybe during Maptime
About how to admin Maptime the only useful thing I found on the internet is this link
I will follow what is suggested on the document. I think it is a very simple solution abount adminisering Maptime.
Maybe we could have a talk when you are in Albania.
PS: Sorry for the wall of text
Indeed GeoServer is more user friendly thanks to the GUI to configure it
To be honest, it’s not really necessary to learn how to use Mapnik to serve your own baselayer (but it’s better of course).
I do not know any tutorialsj, sorry :-\
You can follow my instructions here to setup/configure the whole thing : https://github.com/jbelien/openstreetmap-carto-be/wiki/Installation-(Ubuntu-16.04)
For styling, it is indeed a big XML file at the end.
But you can use CartoCSS to “simplify” the process and organise you styles as you wish.
That’s what I do (and what the official rendering does). Example : https://github.com/jbelien/openstreetmap-carto-be/blob/master/project.mml
The official rendering repository is : https://github.com/gravitystorm/openstreetmap-carto
The Belgium rendering repository is : https://github.com/jbelien/openstreetmap-carto-be
I suggest you try to install the whole thing (limited to Albania data) with official rendering to start using Mapnik and CartoCSS
We’ll try to organise a MapTime event in Tirana so I can give a workshop about it, that could be really cool !
Ok I want to give this thing a try. Waht are the minimunim requiremtns for my machine, to start serving tiles.
To start, you do not need a huge server but if you want to pre-render your tiles, you will need something stronger.
You probably can start with your Digital Ocean server !
We use a server with 2 vCPUs and 7 Go RAM for rendering Belgium. It takes a bit more than an hour to render whole Belgium from level 0 to level 16.
Do not hesitate to ask me if you need help with something
Ok I will start on my local machine, to try it out. Thanks, probably I will ask you a lot of questions
And now, the collaboration begins
I followed your steps on the tutorial but gues I had no luck. When I add my url to a simple OL application it just gives me a blank screen. OL does not get any tiles from my server.
Where are my tiles rendered, in which folder? How can I debug this or see some logs.
Thanks in advance.
What data did you load ?
My process only load data from Belgium !
Could you give me the link of your OpenLayers application so I can have a look ?
MetaTiles are stored in
I am on a Lubuntu virtual machine on my local PC.
The mod_tile folder is empty.
The data is about Albania which I got from Geofabrik.
what command generates the tiles in the folder?
The metatiles are produced when needed ; so only when a map is displayed.
If you want to pre-render those metatiles, check https://github.com/jbelien/openstreetmap-carto-be/wiki/Pre-Rendering-(render_list)
Warning : the parameters in my example are for Belgium only but you can easily get the idea : zoom level, X tile coordinate, Y tile coordinate). You can use https://openlayers.org/en/latest/examples/canvas-tiles.html to get those parameters for Albania.
Edit: don’t go to far in the zoom level, if you do not want to wait for hours
I think I understand where I fail now. Not all the fonsta are isntalled. When I run renderd command i get this message now:
renderd: Loading parameterization function for
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Sans CJK JP Regular' in FontSet 'fontset-0'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Sans CJK JP Regular' in FontSet 'fontset-1'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Sans CJK JP Bold' in FontSet 'fontset-2'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Sans CJK JP Regular' in FontSet 'fontset-2'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
Mapnik LOG> 2017-05-31 11:53:03: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
renderd: Using web mercator projection settings
I think this is the reason I can not generate tiles. I run this command:
sudo apt-get install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted ttf-unifont
From your instructions but still no luck.
How can I get theese fonts installed, or maybe change to something else?