I have a hacked version of lakewalker.py for osm 0.6
it does forests.
source :
http://www.pastebin.ca/1532240
patch :
http://pastebin.ca/1532241
Parameters :
python ./lakewalker.py --lat 42.4052 --lon 20.4782 --threshold 80 -o forest.osm
I used layer 1 of landsat (green)
"" 2 0.52-0.60 µm Green ""
ref : http://landsat.gsfc.nasa.gov/education/compositor/index.html
you can see the forest here :
http://www.openstreetmap.org/browse/way/39207413
Discussion
Comment from h4ck3rm1k3 on 17 August 2009 at 07:26
Comment from h4ck3rm1k3 on 17 August 2009 at 07:35
Original source
http://svn.openstreetmap.org/applications/utils/import/lakewalker/lakewalker.py
Comment from maning on 17 August 2009 at 14:13
Can't get it to work
Traceback (most recent call last):
File "forestwalker.py", line 44, in
import OSMReader
ImportError: No module named OSMReader
Comment from h4ck3rm1k3 on 17 August 2009 at 17:18
Sorry, you need the other files here :
http://svn.openstreetmap.org/applications/utils/import/lakewalker/
http://svn.openstreetmap.org/applications/utils/import/lakewalker/OSMReader.py
http://svn.openstreetmap.org/applications/utils/import/lakewalker/OSM.py
Comment from h4ck3rm1k3 on 17 August 2009 at 20:02
here is my new hack that will create a grid of all the points in a
Comment from h4ck3rm1k3 on 17 August 2009 at 20:16
prizren> i use the diary as my source control
let me walk you through it
first you need these files
http://svn.openstreetmap.org/applications/utils/import/lakewalker/OSMReader.py
http://svn.openstreetmap.org/applications/utils/import/lakewalker/OSM.py
then you need this file
http://www.pastebin.ca/1532240
and then it takes parameters of a osm file
or just a point
and the threshold
python ./lakewalker.py --lat 42.4052 --lon 20.4782 --threshold 80 -o forest.osm
or
python ./lakewalker.py -i somedots.osm --threshold 80 -o forest.osm