<DIV>
<blatant lie></DIV><DIV>Yeah, me too. I was just about to do that! <BR>
</DIV><DIV></blatant lie></DIV><DIV><BR></DIV><DIV>Fantastic!</DIV><DIV><BR>
<BLOCKQUOTE style="border-left:solid #1010ff 2px; margin-left:5px; padding-left:5px;">----- Original Message -----<BR>
From: "Graham Jones" <grahamjones139@googlemail.com><BR>
To: TimSC <mapping@sheerman-chase.org.uk><BR>
Cc: talk-gb@openstreetmap.org<BR>
Subject: Re: [Talk-GB] building shapes from OS Street View<BR>
Date: Fri, 9 Apr 2010 22:32:40 +0100<BR>
<BR>

Hi Tim,<DIV>That is exactly the sort of thing I had envisaged writing - you have nearly finished before I got started - well done!</DIV><DIV><BR></DIV><DIV>Graham.<BR><BR><DIV class="gmail_quote">On 9 April 2010 22:25, TimSC <SPAN dir="ltr"><<A href="mailto:mapping@sheerman-chase.org.uk">mapping@sheerman-chase.org.uk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi again,<BR>
<BR>
I have been working on auto tracing buildings and I'm making progress. I<BR>
was slightly encouraged by Ed Avis's comments. I think one underlying<BR>
difference is peoples attitude to omissions in map data. Many people<BR>
think they are a good thing, particularly since they encourage the<BR>
community to do high quality surveying. But I think omissions are bad in<BR>
terms of actually using the map. I don't think we should be using the<BR>
main map to gauge our progress. I suspect what we need is good meta data<BR>
- how and when data is sourced. Anyway enough rambling...<BR>
<BR>
Tracing buildings. I have been using the original images, since image<BR>
transformations tend to introduce degradation of quality. I use colour<BR>
to select building pixels, then form edge fragments, then form polygons,<BR>
then simplify the polygons using the Douglas-Peucker algorithm, then<BR>
group them so we get inner and outer edges, then tranform image<BR>
coordinates to GBOS then to WGS84 via OSTN02 (I ported the perl code to<BR>
python), then save as OSM format and load back into JOSM. Screenshot:<BR>
<A href="http://timsc.dev.openstreetmap.org/dev/josm-building-outlines.png" target="_blank">http://timsc.dev.openstreetmap.org/dev/josm-building-outlines.png</A><BR>
<BR>
The next steps are to improve the quality of the polygon shapes,<BR>
possibly by checking if the edges are nearly orthogonal, and if so<BR>
making them completely orthogonal. Also I need to write a filter to<BR>
check for buildings in the area, to avoid importing duplicate buildings.<BR>
I need to look at the simplification, as sometimes an extra node is<BR>
added to a polygon (the initial node used as the start of the<BR>
algorithm). I am also considering detecting roads that overlap buildings<BR>
in the source images, since this is probably the biggest loss of<BR>
quality. The result I am getting is already more spatially detailed than<BR>
my own survey of the University of Surrey campus (although not as rich<BR>
in information).<BR>
<BR>
In the medium term, I will import some buildings once I have the quality<BR>
I want. I want to minimise manual work in JOSM but I don't rule it out.<BR>
I will only be working in the Guildford area - it's my data to gamble<BR>
around there :)<BR>
<BR>
TimSC<BR>
<BR>
<BR>
_______________________________________________<BR>
Talk-GB mailing list<BR>
<A href="mailto:Talk-GB@openstreetmap.org">Talk-GB@openstreetmap.org</A><BR>
<A href="http://lists.openstreetmap.org/listinfo/talk-gb" target="_blank">http://lists.openstreetmap.org/listinfo/talk-gb</A><BR>
</BLOCKQUOTE></DIV><BR><BR clear="all"><BR>-- <BR>Dr. Graham Jones<BR>Hartlepool, UK<BR>email: <A href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</A><BR>
</DIV>

_______________________________________________<BR>
Talk-GB mailing list<BR>
Talk-GB@openstreetmap.org<BR>
http://lists.openstreetmap.org/listinfo/talk-gb<BR>
</BLOCKQUOTE>
</DIV>

<BR>

-- 
<p>_______________________________________________<br>Surf the Web in a faster, safer and easier way:<br>
Download Opera 9 at <a href="http://www.opera.com" target="_blank">http://www.opera.com</a></p>
<BR>
Powered by Outblaze