Little-osm

From OpenStreetMap Wiki
Jump to: navigation, search


The current OSM server can hardly stand all the requests. Caches are needed. So little-osm is a start for any users that just want to read the data in their favourite application.

little-osm is an simple and primitive OSM server, aimed to be executed at anyone's home machine.

little-osm is intended as a read only server!

Contents

Warning

the README file contains partly incorrect instructions. The instructions below do work (at least on July, 11 2007)

Installation

What are differences?

There are some differences to the main server's map request:


Package layout

./readxml.rb Script to convert a planet.osm into a mysql database
./planet.osm here, you have to copy the planet.osm to read in.
test/* Some unit tests.
api/ All API files reside here.

Database layout

The database in an very optimized format (for map-queries). It consist only of a single table:

CREATE TABLE `data` (
 `uid` int(10) unsigned NOT NULL default '0',
 `tags` text,
 `time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
 `reference` text,
 `min` point NOT NULL,
 `max` point NOT NULL,
 KEY `Index_1` (`uid`),
 spatial (`min`),
 spatial (`max`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

(see file applications/utils/little-osm/planet.sql)

Personal tools
Namespaces
Variants
Actions
site
Toolbox