[OSM-dev] Installing the Rails port.
I'm a bit confused by what is actually required to run the website bit of OSM (not the API - just the slippymap viewer, export tab, etc) - does it need they MySQL database (with the planet imported into it), or can it be run without? - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
If you are planning to serve up a custom map then you need to render your own tiles, and for that you will probably want a database backend unless you plan to deliver only a very small area of the world. The three rendered versions on the OSM website all use a different process, although both the default and the cycle layer use mapnik, but not the same database. The website itself runs with Ruby on Rails. The export, browse and search functions are all special components, the search facility for instance has a separate database interface. Doing a search on the wiki for the individual components will help explain how it all works under the hood. Cheers Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Hill Sent: 11 July 2008 3:14 PM To: dev@openstreetmap.org Subject: [OSM-dev] Installing the Rails port. I'm a bit confused by what is actually required to run the website bit of OSM (not the API - just the slippymap viewer, export tab, etc) - does it need they MySQL database (with the planet imported into it), or can it be run without? - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.4.7/1545 - Release Date: 10/07/2008 6:43 PM ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 15:13 +0100, Steve Hill wrote: I'm a bit confused by what is actually required to run the website bit of OSM (not the API - just the slippymap viewer, export tab, etc) - does it need they MySQL database (with the planet imported into it), or can it be run without? There are a large number of components involved with the slippy map and export tab. These all use data from the API, the Mapnik or Osmarender tile servers and these all have different setup requirements. If you want more details then you need to be more specific on what exactly you want to achieve. Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 15:50 +0100, Steve Hill wrote: On Fri, 11 Jul 2008, Andy Robinson (blackadder-lists) wrote: If you are planning to serve up a custom map then you need to render your own tiles, and for that you will probably want a database backend unless you plan to deliver only a very small area of the world. I'm already rendering Mapnik tiles for the OpenPisteMap website (so I have the PostGIS database already). However, the OSM site has some nice features like the map exporter that I wouldn't mind adding so I was trying to guage what I needed to do. From what I understand from the wiki, the main OSM data set is in MySQL, but I wasn't quite able to work out if I actually needed the MySQL DB for the Ruby on Rails website to work, or if I could do without it. If you want to run the rails code with no modification then you probably need a database to keep rails happy but it does not need to have any data in it. The code which provides the exported Mapnik images in the CGI script at: http://trac.openstreetmap.org/browser/sites/tile.openstreetmap.org/cgi-bin/export If you've got a Mapnik rendering setup already then this should be simple to add, it just needs to be called like: /cgi-bin/export?bbox=#{bbox}scale=#{scale}format=#{format} Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 11 Jul 2008, Jon Burgess wrote: If you want to run the rails code with no modification then you probably need a database to keep rails happy but it does not need to have any data in it. Ok, that makes sense, thanks. I just have 5 months until the ski season kicks off to get around to actually doing it now. :) - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 11 Jul 2008, Jon Burgess wrote: There are a large number of components involved with the slippy map and export tab. These all use data from the API, the Mapnik or Osmarender tile servers and these all have different setup requirements. If you want more details then you need to be more specific on what exactly you want to achieve. Currently, OpenPisteMap uses a fairly simple web page with OpenLayers to display the Mapnik tiles. My intention is to replace that web page with one that will give me search and export functions using my existing Mapnik tiles and PostGIS database. OpenPisteMap uses the OSM dataset, imported into PostGIS from the planet file about once a month and the Mapnik tiles are rendered from that database. Presumably the bits which use the OSM API can query the main API server (no need to run my own copy of the API)? - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 16:22 +0100, Steve Hill wrote: On Fri, 11 Jul 2008, Jon Burgess wrote: There are a large number of components involved with the slippy map and export tab. These all use data from the API, the Mapnik or Osmarender tile servers and these all have different setup requirements. If you want more details then you need to be more specific on what exactly you want to achieve. Currently, OpenPisteMap uses a fairly simple web page with OpenLayers to display the Mapnik tiles. My intention is to replace that web page with one that will give me search and export functions using my existing Mapnik tiles and PostGIS database. OpenPisteMap uses the OSM dataset, imported into PostGIS from the planet file about once a month and the Mapnik tiles are rendered from that database. Exporting with your own tiles should be straight forward. Several of the export formats use the Mapink Cairo renderer that was added about 6 months ago. You'll need a version of mapnik that includes these changes and is compiled with the appropriate Cairo libraries available. The search system uses another database which is held on gazeteer.openstreetmap.org. I guess this should be OK for you though. Presumably the bits which use the OSM API can query the main API server (no need to run my own copy of the API)? Yes but be aware that the API does not cover everything. For example all the pages with user related information expect to query data in the local database which isn't publicly accessible. You could start having your own users registering locally but you won't be able to directly access the information from the main site. Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev