[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Open Street Map
|
Hello Harry,
Harry Bullen wrote:
I remember back in the summer someone mentioned that they had created
a uDig plugin that would pull data from google maps. However it's not
really legal to redistribute it. So I was looking at
http://www.openstreetmap.org/ and they are actually very similar to
google maps but with out licensing restrictions. So it may be
possible to adapt that plugin to work with openstreetmap. Which I
think would be a big turn on for people to use udig.
I've been using osm data in our apps but took a different approach. I
wrote a proxy to translate WMS requests into the osm data grid format.
So, as far as the client is concerned, it's a normal WMS, which gets
image data from the osm site (or, in our case, our own local osm web
server), draws the tiles onto an image and sends this back to the
client. The optimal resolution is automatically calculated, but there's
also a "vendor specific" parameter zoom=[1,18], for the appropriate osm
zoom level.
This "WMS" will be made available on the osm svn when I have the time to
check the stuff in. It's a handful of java classes, two config files and
an ant script. Create the war, deploy and it runs.
A known bug is the image positioning at low resolutions (because I don't
use any libraries to make the projections, and the Mercator projection
error is not taken into account; can be easily fixed with geotools). But
at hi res it works like a wonder :-) (But currently only for WGS 84 :-(
Please contact me off list if you want more info. I have also the WMS on
the net, but don't want to make the URL public. If anyone wants to have
a look, please drop me a line and I'll send you the URL.
Cheers,
Ugo
--
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