[OSM-dev] You got a CC'ed WMS? And want it in OSM...

Stefan de Konink stefan at konink.de
Sat Mar 7 01:51:03 GMT 2009


I haved heard some French people were able to use their governments data 
  from a WMS where a WFS was not available. In The Netherlands we have a 
situation like it; now since I hate tracing since kindergarden I 
proposed several solutions for the GPX/NMEA problems many years ago in 
the form of mapgenerator.

Now I was very annoyed that high resolution data is available for The 
Netherlands with limited horizontal resolution but, limitless vertical 
resolution in bitmap format.


Attached are example scripts that could help you with:
nwb.sh) downloading from a WMS server
stich.sh) joining all these images to one big file

*I strongly point out that this example data source has a disclaimer, 
and without guessing in its current form is not available to be imported 
in OSM; although showing how easy it is to trace it, might wake some 
people up again.*


The next step in this process would be to convert this .gif file to a 
format that is non ambiguous in colourspace and autotrace can eat; this 
is *not* png.


convert nwb.gif nwb.pnm

autotrace -report-progress -centerline -output-format svg nwb.pnm > test.svg


The most critical option here will be centerline. There are other 
options specifically for tracing straight lines and what happens on 
intersections that I need to toy around to get better results. With some 
postprocessing effort manually or automatic you will be able to get a 
perfect output that can be converted to a format a current converter 
exists for.


Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nwb.sh
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090307/6386d688/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stich.sh
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090307/6386d688/attachment-0001.ksh>


More information about the dev mailing list