[OSM-dev] Writing an OSM map application
nick at hogweed.org
Fri Mar 23 21:07:47 GMT 2007
On Friday 23 Mar 2007 20:09, Jon Burgess wrote:
> On Fri, 2007-03-23 at 20:26 +0100, Andreas Volz wrote:
> > Hello,
> > I like to write an application that uses the map data from OSM. I
> > looked how other applications solved this. They import the world.osm
> > into a SQL database an read all map information from there. So please
> > try to answer these OSM beginner questions:
> > - Is there a proposed SQL database format for OSM based maps?
> I think there are several in SVN, generated by different utilities for
> different purposes:
> > This would
> > be usefull to share end user generated map data between various systems.
> I think the only true common OSM format is the planet.osm file. Each
> application has its own special needs about what data it needs to access
> and what restrictions and other requirements it has.
> > - Is there an application which converts the world.osm into a SQL
> > database?
> See list above.
> > - Are there any libraries (C/C++) which give me a higher level of
> > abstraction on the map data then operating with SQL queries?
> I don't think there are any C/C++ libraries specifically for processing
> OSM data directly although you could extract the relevant pieces from
> several existing utilities like mapnik (C++) or osm2pgsql (C) and then
> build upon these.
There is libosm which is in SVN. It's a C++ library which contains
functionality for reading .osm files, also for fetching live OSM data from
See utils/libosm in SVN. Ask me if you need any help with it.
Note it's still early in development and might have the odd bug or two...
More information about the dev