[Geoserver-users] Geoserver support Open street map

HI guys,

I like the open street map idea and I will like to find out the following:

  1. how can open street map data be imported into geoserver ?

  2. Which version of geoserver supports open street map ?

  3. Is there a tutorial on how to use open street map and geoserver ?

Thanks,

Roman.


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Hi,

If you are Windows and PostGIS user then most simple way to start is to use osm2pgsql .exe . Get the utility by following this link.
http://artem.dev.openstreetmap.org/files/
Notice that “latest” seems not to be latest.
It may be necessary to update Windows for the Visual C++ before running the utility from

http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en

Some instructions for using this tool are here

http://wiki.openstreetmap.org/index.php/User_talk:JRA
Advice are for reading OSM data from PostGIS with OpenJUMP GIS software but it should not matter.

Linux users may find more fresh osm2pgsql version from here
http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/

Windows version of osm2pgsql is not so well maintained but basicly it works well and very fast. Is has some limitations, for example you cannot send user name and password for PostGIS so the database must accept the user with operating system default user name and without password. The utility imports only those tags which are used for Mapnik rendering but it is quite a good selection for other use as well. I suppose that this should be rather easy to edit in source by any programmer (that does not meet me, I must rely on ready made binaries). Also the tables created with osm2pgsql do not necessarily have any unique field which will cause trouble. Osm_id is just almost unique. As a work around I have been creating new tables by selecting from the imported tables using WITH OIDS option. There must be better ways.

I guess that pure OpenStreetMap vector data in OSM xml format is not supported by Geoserver. Unfortunately a student project for Google summer of code about making an OSM driver for ogr2ogr did not quite get through. It might have made utilising OSM data in GIS world more easy.

-Jukka Rahkonen-


Lähettäjä: geoserver-users-bounces@lists.sourceforge.net [mailto:geoserver-users-bounces@lists.sourceforge.net] Puolesta Roman Isitua
Lähetetty: 28. huhtikuuta 2008 13:43
Vastaanottaja: geoserver users
Aihe: [Geoserver-users] Geoserver support Open street map

HI guys,

I like the open street map idea and I will like to find out the following:

  1. how can open street map data be imported into geoserver ?

  2. Which version of geoserver supports open street map ?

  3. Is there a tutorial on how to use open street map and geoserver ?

Thanks,

Roman.


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

I believe that at one point there was interest in someone writing a geotools driver (datastore) for .osm files directly... but the endeavour faded out. Not sure why... if the reasons were technical, or just lack of time/money.

Anyways, this would be a nice thing to have, and we could certainly direct anyone interested in taking on the task.

Roman Isitua wrote:

HI guys,
I like the open street map idea and I will like to find out the following:
1. how can open street map data be imported into geoserver ?
2. Which version of geoserver supports open street map ?
3. Is there a tutorial on how to use open street map and geoserver ?
Thanks,
Roman.

------------------------------------------------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > !DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4815aa47303461431913854!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Hi,

looks like loads of people have interest in having osm data in their
geoserver applications... perhaps the osm project could also profit if
they had support for a WMS.

Justin Deoliveira wrote:

I believe that at one point there was interest in someone writing a
geotools driver (datastore) for .osm files directly... but the endeavour
faded out. Not sure why... if the reasons were technical, or just lack
of time/money.

So, could you give us an estimate of how much effort that would be?

Anyways, this would be a nice thing to have, and we could certainly
direct anyone interested in taking on the task.

but that would still mean, people having to update their osm snapshots
regularly (or else run the risk of having outdated data), right?

I'd be interested to know what you folks out there use osm for: mapping
(WMS) of raw data (WFS).

To the last question: does anyone have some code/technique to make the
osm maps be accessible through WMS?

Cheers,

Ugo

Roman Isitua wrote:

HI guys,

I like the open street map idea and I will like to find out the following:

1. how can open street map data be imported into geoserver ?

2. Which version of geoserver supports open street map ?

3. Is there a tutorial on how to use open street map and geoserver ?

Thanks,

Roman.

------------------------------------------------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> !DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4815aa47303461431913854!

--
Ugo Taddei

Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone (+49)2241-14-2184 fax (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
------------------------------------------------------
Visit our thematic mapping tool CommonGIS: http://www.commongis.de

Hi,

I am regularly importing OSM data into PostGIS and use it both directly with OpenJUMP and through Geoserver WFS. I think it is great data for demonstrating WFS, especially queries. I haven't tried WMS because it would require some work to make SLD or Mapserver mapfile for styling. It would be nice to have such things available.
Updating the data does not take very long time because I can download either just a dump for Finland (http://download.geofabrik.de/osm/europe/) or Scandinavia (http://hypercube.telascience.org/planet/) but the size of the dump file is growing rapidly. Now it takes 10 or 30 minutes to import data into PostGIS with a laptop.

I do not know if OSM data in native format is used at the moment for making WMS. Mapnik (http://mapnik.org) seems to contain WMS 1.1.1 and 1.3 servers as well, but unfortunately Mapnik is almost undocumented. However, Mapnik is using PostGIS in between for rendering OSM tiles so I believe it is required by Mapnik WMS as well. Rendered OSM tiles are served by a variety of servers. Perhaps they could be cascaded somehow?

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: geoserver-users-bounces@lists.sourceforge.net puolesta: Ugo Taddei
Lähetetty: ti 29.4.2008 16:08
Vastaanottaja: geoserver users
Aihe: Re: [Geoserver-users] Geoserver support Open street map

Hi,

looks like loads of people have interest in having osm data in their
geoserver applications... perhaps the osm project could also profit if
they had support for a WMS.

Justin Deoliveira wrote:

I believe that at one point there was interest in someone writing a
geotools driver (datastore) for .osm files directly... but the endeavour
faded out. Not sure why... if the reasons were technical, or just lack
of time/money.

So, could you give us an estimate of how much effort that would be?

Anyways, this would be a nice thing to have, and we could certainly
direct anyone interested in taking on the task.

but that would still mean, people having to update their osm snapshots
regularly (or else run the risk of having outdated data), right?

I'd be interested to know what you folks out there use osm for: mapping
(WMS) of raw data (WFS).

To the last question: does anyone have some code/technique to make the
osm maps be accessible through WMS?

Cheers,

Ugo

Roman Isitua wrote:

HI guys,

I like the open street map idea and I will like to find out the following:

1. how can open street map data be imported into geoserver ?

2. Which version of geoserver supports open street map ?

3. Is there a tutorial on how to use open street map and geoserver ?

Thanks,

Roman.

------------------------------------------------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> !DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

!DSPAM:4007,4815aa47303461431913854!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4815aa47303461431913854!

--
Ugo Taddei

Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone (+49)2241-14-2184 fax (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
------------------------------------------------------
Visit our thematic mapping tool CommonGIS: http://www.commongis.de

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Frederik,

Frederik Ramm said:

Hi,

I'd be interested to know what you folks out there use osm for:
mapping
(WMS) of raw data (WFS).

oops, the above should read: "mapping (WMS) *or* raw data (WFS). But never
mind.

The folks at www.openrouteservice.org are using geoserver as a WMS
server and IIRC they plan to expose that interface as well (currently
it is somewhat meshed up with their routing engine). It seems to me
that their geolocation is only a few kilometres away from the
original poster (Ugo) so why not meet them for lunch.

Yes we are! On monday :slight_smile:

There's also working UMN Mapserver installations with OSM data,
mostly running off ready-made shapefiles (get them from
download.geofabrik.de) - I assume that like Mapserver, Geoserver can
either run directly off a small shape, or else you pop the shape into
a PostGIS and work from there.

I was looking for direct support for osm inside geoserver, but currently
I'm only interested in the nice maps (i.e. WMS). So I reckon I could just
use UMN for the time being - though I'd really like to see support for osm
stuff in geoserver.

I don't think there are many people who access OSM raw data through
WFS although it would of course be theoretically possible. Any
conversion OSM-to-WFS would have to be heavily parametrised (which
OSM elements to export an which OSM tags to use for classification
etc) and thus difficult to do in a generic way, but I'd love to see
somebody do it properly :wink:

I can't post this to the geoserver list (not subscribed there) so
maybe someone can forward.

Done.

Bye
Frederik

--
Frederik Ramm ## eMail frederik@anonymised.com ## N49°00'09" E008°23'33"

Cheers,

Ugo