10 ms·
Ok.. i want to serve tiles... ok, I go here: https://switch2osm.org/serving-tiles/ https://switch2osm.org/serving-tiles/ First option (Build a tile server usi
by ajsnigrutin 7y ago
Ok.. i want to serve tiles... ok, I go here:
https://switch2osm.org/serving-tiles/ https://switch2osm.org/serving-tiles/
First option (Build a tile server using packages) ... i click on it.. ubuntu packages... i don't have ubuntu here, let's go back.
Second option (Build a tile server from source), takes me here: https://switch2osm.org/?page_id=76 https://switch2osm.org/?page_id=76 ... where is the documentation? How do i build it from source?
Ok fsck it, let's try the "all in one solution"... https://switch2osm.org/serving-tiles/using-an-all-in-one-solution/ https://switch2osm.org/serving-tiles/using-an-all-in-one-sol... ... "Page not found"
So.. either install ubuntu, or figure it out by myself?
- puPoh 7y agoYou are complaining that a FREE service that provides you with content while also respecting your privacy is not good enough for you.
- machello13 7y agoHe's complaining that the website seems to be either broken or missing necessary information. He's allowed to complain about that.
- puPoh 7y agoAllowed by who? I'm not talking about being prohibited to do so.
- setr 7y agoallowed by morals and similar metrics for "justified complaining"
- matkoniecz 7y agoSuch complaints are very useful! I am one of people involved in OSM and added this thread to my TODO to look for easy-to-fix problems.
- nathancahill 7y agoLooks like the "Second option" link should point here: https://switch2osm.org/serving-tiles/manually-building-a-tile-server-18-04-lts/ https://switch2osm.org/serving-tiles/manually-building-a-til... The "all in one solution" link used to point to TileMill, which is no longer maintained: https://wiki.openstreetmap.org/wiki/TileMill https://wiki.openstreetmap.org/wiki/TileMill
- pastage 7y agoGood feedback, but FWIW I do believe that a docker container with Ubuntu is a no brainer. Sure policies might forbid it.
- oehpr 7y agoHey I remember explicitly trying this option and the osm2pg instance died consistently after running for 4 hours. I could never figure out why. I worked on it for 4 days with no success. I have no earthly idea how to get this to work.
- emj 7y agoYou might want to try with a small extract first, see how that goes.
- matkoniecz 7y agoHave you tried with a small extract or full planet? Processing entire dataset takes quite significant hardware, it is likely that you run into performance issues.
- davidy123 7y agoIt's not very difficult to install Ubuntu in a VM or spin up a cloud based instance. The bigger problem is their packages work on at latest Ubuntu 14.04, which is unsupported since April and I'd guess there will be a lot of incidental bitrot that may make getting it running unpleasant. But none of this matters, looks like there are several Docker based tile servers, which are a relative breeze to set up on any operating system.
- JustSomeNobody 7y ago> It's not very difficult to install Ubuntu in a VM or spin up a cloud based instance. I don’t think that is the point OP was making. If you’re even remotely thinking about running a tile server, you’d be able to spin up a VM of Ubuntu.
- jmnicolas 7y agoI tried to build my own OSM server a couple months back. I quickly abandoned when I discovered that the amount of processing to import their world map data file in Postgres would require several months (desktop Core i7 3770k / 16 GB ram but a 7200 rpm hard drive since there wasn't enough space on my SSD). For a world map server you would need a beefy machine to make it less painful, something like 64 GB ram, multi nvme ssd and countless cores. I wish they offered a Postgres dump of it.
- nathancahill 7y agoHmm, I run a handleful of OSM servers with similar specs and it takes a little a day or 2 to import the world to a HDD. Here's some benchmarks. It definitely helps to have a beefy server: https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks A Postgres dump would be massive.
- growlist 7y ago> A Postgres dump would be massive. Indeed - it inflates to hundreds of GB during my import process.
- samcrawford 7y agoFWIW, I have been doing exactly this in the past few months, importing planet data using osm2pgsql. It takes about 18 hours to import the whole planet onto a E5-1650v3 server, with 256GB RAM and a 1TB SSD. 128GB RAM would certainly have sufficed. The number of cores doesn't actually matter much. I've never seen it use more than 8 cores, even when I ask it to use far more.
- growlist 7y ago> the amount of processing to import their world map data file in Postgres would require several months I'd be surprised if this were indeed the case, even on spinning disks. Did you use the pbf export? I can load it in two or three days using osm2pgsql on my home desktop (albeit with SSDs). On the £10k+ work server it loads in about 24 hours. The issue with providing a Postgres dump is that people often want different things from the output data, and the choices made during the import might rule out certain uses.
- rpavez 7y agoAnother great option could be https://hub.docker.com/r/overv/openstreetmap-tile-server/ https://hub.docker.com/r/overv/openstreetmap-tile-server/
- ezzzzz 7y agoPardon my ignorance, but I'm wondering if anybody has experience with running OpenGIS in Postgres with one of the supported mapping servers listed on their about page? (https://postgis.net/features/ https://postgis.net/features/) I looked at this for a POC but was notably out of my depth and gave up. I'm not sure exactly how the tileserver OSM provides differs from the mapping servers in the link above.
- ridaj 7y agoI have, a few years ago. Unless things have changed dramatically, I would plan to have one full-time person work for a couple weeks to set this up, and a few weeks more if you want to set it up in a way that the map updates automatically over time. Doc is often out of date, some of the tools are unstable, the amount of data to wrangle is not trivial, and checking that your map is ok is actually not that easy, eg you might not find out immediately that the coastline is cutting across some random city in some corner of Asia.
- ezzzzz 7y agoStill, judging by the parent comment, it sounds like setting up a tile server in OSM isn't exactly trivial. Rather than editing, In my comment above, I meant PostGIS, not OpenGIS. Anyway, I was interested in this at the time for a hobby project and (rightly) decided the effort would not be worth it. Thanks for the insight!
- samcrawford 7y agoDepends on the level of effort you want to put into it. I've been working on a hobby project with PostGIS recently, and I've found it very easy to get started (a few hours to get PostGIS running + import just the UK's dataset using osm2pgsql). But it's taken me months to get to a point where I'd say I'm pretty experienced with it.
- ezzzzz 7y agoAwesome, thanks for the tip. Osm2pgsql looks very interesting, the docs lead me Mapnik which is pretty much what I was looking for.
- SkyPuncher 7y agoI had this same thought. We were building a HIPAA compliant app a few years ago. OSM looked like a good option and fit a lot of our requirements. Then I looked into actually using it and ran. To me, it seems like there's a huge opportunity for OSM or a third party to run a managed OSM instance.
- andrewshadura 7y agoThere are quite plenty of them.
- rmc 7y agoThere are plenty of companies offering hosted OSM Tile servers, or are willing to install the software on your server
- app4soft 7y ago> Ok.. i want to serve tiles The easiest way is to use Maperitive — freeware OSM render app (for live rendering or for generating tiles on own PC).[0] [0] http://maperitive.net http://maperitive.net
- deleted 7y ago[deleted]
- gumby 7y ago> First option (Build a tile server using packages) ... i click on it.. ubuntu packages... i don't have ubuntu here, let's go back. I threw in the towel and switched my server builds to ubuntu this year for this reason.
- Youden 7y agoUbuntu is the Internet Explorer of Linux distributions unfortunately.
- rv-de 7y agoUbuntu is the Mozilla of Linux distributions and MacOS the Explorer.
- matkoniecz 7y ago> i don't have ubuntu here What you have?
- waste_monk 7y agoIf you're running a publicly facing service you should probably be competent enough to administer it yourself.
- thefz 7y agoBut they say explicitly > If you are setting up your own tile server, we recommend that you use Ubuntu Linux.