[Geoserver-users] Open Street Map and Geoserver

Hi all,

I wonder if someone has any experience of using Open Street Map? I’d like to contribute to and then use Open Street Map data in my applications but I have come up against several problems and I wonder if anyone has any suggestions.

  1. Open Street Map is recorded in lat/long (4326) but we use British National Grid Projection (27700) so if I’m to be able to display OSM data in OpenLayers I need to be able to convert the bounding box for a WMS request to lat/long before requesting it. Even then if my understanding of projections is correct it will come out slightly skewed? I could use Oracle to do this since it has a transform function which transforms co-ordinates from one projection to another but this has been shown to have a slight offset (with Google earth at least) so may not be good enough. Does Geoserver have any external functions which can be used without having to get into the java?

  2. Ideally it would be nice to be able to periodically copy the data from Open Street Map, reproject the whole lot and then serve it from our own server using Geoserver but Open Street Map only allows downloads of small sets of data at a time and they are in .GPX or .OSM and I can’t seem to find any way to convert them. Does Geoserver have any plans to support either of these formats?

I have read the GeoCollaboration page on the wiki but this seems to be less about direct integration with Open Street Map and more about enabling that sort of project to be run using Geoserver. Is that right?

I realise I should probably post this to the Open Street Map mailing list but I thought I’d get your thoughts on it first?

Tom

Thanks Jukka, I’ll check that out…

On 9/27/07, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com> wrote:

Hi,

I have never tried it myself, but you can download all OSM data in one bundle. Have a look at http://wiki.openstreetmap.org/index.php/Planet.osm
If you are in UK there seems to be also a smaller excerp available. From the same page you can find more advice as well. Tell if you will have success.

-Jukka Rahkonen-


Lähettäjä: geoserver-users-bounces@lists.sourceforge.net [mailto:geoserver-users-bounces@lists.sourceforge.net] Puolesta Tom (JDi Solutions)
Lähetetty: 27. syyskuuta 2007 10:54
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Open Street Map and Geoserver

Hi all,

I wonder if someone has any experience of using Open Street Map? I’d like to contribute to and then use Open Street Map data in my applications but I have come up against several problems and I wonder if anyone has any suggestions.

  1. Open Street Map is recorded in lat/long (4326) but we use British National Grid Projection (27700) so if I’m to be able to display OSM data in OpenLayers I need to be able to convert the bounding box for a WMS request to lat/long before requesting it. Even then if my understanding of projections is correct it will come out slightly skewed? I could use Oracle to do this since it has a transform function which transforms co-ordinates from one projection to another but this has been shown to have a slight offset (with Google earth at least) so may not be good enough. Does Geoserver have any external functions which can be used without having to get into the java?

  2. Ideally it would be nice to be able to periodically copy the data from Open Street Map, reproject the whole lot and then serve it from our own server using Geoserver but Open Street Map only allows downloads of small sets of data at a time and they are in .GPX or .OSM and I can’t seem to find any way to convert them. Does Geoserver have any plans to support either of these formats?

I have read the GeoCollaboration page on the wiki but this seems to be less about direct integration with Open Street Map and more about enabling that sort of project to be run using Geoserver. Is that right?

I realise I should probably post this to the Open Street Map mailing list but I thought I’d get your thoughts on it first?

Tom

You can download the planet dump from OSM, and there are scripts to convert it in to postgis, though I know of none for oracle.

GeoServer does not support GPX or OSM. I think someone is writing a GPX datastore, and writing one for OSM wouldn't be hard. But the problem with those will be there's no spatial index, so they won't serve very fast. I'd recommend converting to a database to serve it. You also could convert to shapefile, they have scripts to do that I believe, though that holds up less well for transactions.

As for reprojection, once you get the data in to GeoServer then it can reproject it in to whatever projection you want.

The one thing I'm not clear on is how you'd contribute back to OSM? If you just use their editing interface then it works, but then it'd be awhile till your data got the update. I would like to work with them to figure out how we could set up GeoServer's as nodes on to the main OSM database, to let contributions there go back in. Soon we should be able to handle logins, and perhaps could have a version that hooks straight up to their user database and does authentication the same way, and then could do batch imports to their main db.

As for GeoCollaboration stuff, yeah, it's goal is to enable similar things in GeoServer, not so much direct integration, though it should make direct integration easier, and we would be very psyched if OSM or at least part of the community made use of GeoServer. They've shown no interest in the past, but we lacked authors and versions and all, which are now emerging.

We still need to do a lot of UI work on it, but you can see our first sketches at http://geo.openplans.org/tschaub/wfsv/feature-editor.html#
It's better when you set most of the preferences to true. And you can try viewing the history and do diffs there, and then click on numbers to do rollbacks.

Chris

Tom (JDi Solutions) wrote:

Thanks Jukka, I'll check that out...

On 9/27/07, *Rahkonen Jukka* <Jukka.Rahkonen@anonymised.com <mailto:Jukka.Rahkonen@anonymised.com>> wrote:

    Hi,
         I have never tried it myself, but you can download all OSM data in
    one bundle. Have a look at
    http://wiki.openstreetmap.org/index.php/Planet.osm
    <http://wiki.openstreetmap.org/index.php/Planet.osm&gt;
    If you are in UK there seems to be also a smaller excerp available. From the same page you can find more advice as well. Tell if you
    will have success.
         -Jukka Rahkonen-

        ------------------------------------------------------------------------
        *Lähettäjä:* geoserver-users-bounces@lists.sourceforge.net
        <mailto:geoserver-users-bounces@lists.sourceforge.net>
        [mailto:geoserver-users-bounces@lists.sourceforge.net
        <mailto:geoserver-users-bounces@lists.sourceforge.net>]
        *Puolesta *Tom (JDi Solutions)
        *Lähetetty:* 27. syyskuuta 2007 10:54
        *Vastaanottaja:* geoserver-users@lists.sourceforge.net
        <mailto:geoserver-users@lists.sourceforge.net>
        *Aihe:* [Geoserver-users] Open Street Map and Geoserver

        Hi all,

        I wonder if someone has any experience of using Open Street
        Map? I'd like to contribute to and then use Open Street Map
        data in my applications but I have come up against several
        problems and I wonder if anyone has any suggestions.

        1. Open Street Map is recorded in lat/long (4326) but we use
        British National Grid Projection (27700) so if I'm to be able to
        display OSM data in OpenLayers I need to be able to convert the
        bounding box for a WMS request to lat/long before requesting
        it. Even then if my understanding of projections is correct it
        will come out slightly skewed? I could use Oracle to do this
        since it has a transform function which transforms co-ordinates
        from one projection to another but this has been shown to have a
        slight offset (with Google earth at least) so may not be good
        enough. Does Geoserver have any external functions which can be
        used without having to get into the java?

        2. Ideally it would be nice to be able to periodically copy the
        data from Open Street Map, reproject the whole lot and then
        serve it from our own server using Geoserver but Open Street Map
        only allows downloads of small sets of data at a time and they
        are in .GPX or .OSM and I can't seem to find any way to convert
        them. Does Geoserver have any plans to support either of these
        formats?

        I have read the GeoCollaboration page on the wiki but this seems
        to be less about direct integration with Open Street Map and
        more about enabling that sort of project to be run using
        Geoserver. Is that right?

        I realise I should probably post this to the Open Street Map
        mailing list but I thought I'd get your thoughts on it first?

        Tom

!DSPAM:4005,46fb675092881030819293!

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

!DSPAM:4005,46fb675092881030819293!

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

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

!DSPAM:4005,46fb675092881030819293!