Re: [Talk-GB] building shapes from OS Street View, with code
From: Steve Doerr steve.do...@blueyonder.co.uk Sent: Sunday, May 30, 2010 3:08 PM Looking forward to testing this, but having some problems with the prerequisites. I've installed this 'Python' thing (version 2.6) and the shapely library, but the NumPy install is failing with a message 'Python version 2.6 required, which was not found in the registry'. I'm guessing that it may be because NumPy is a 32-bit build (I downloaded it from http://downloads.sourceforge.net/project/numpy/NumPy/1.4.1/numpy-1.4.1-win32-superpack-python2.6.exe?use_mirror=ovh) whereas Python is 64-bit. So, do I reinstall Python as 32-bit, or is there a 64-bit version of NumPy around? With Tim's help, I was able to locate and install 64-bit versions of everything. With an adapted version of the command given in the README file, I have been able to process the TQ67SW tile to produce a 4.75MB .osm file. I haven't loaded it into JOSM yet, but I'm looking forward to seeing the results. It took a little over 7 hours to run, by the way. -- Steve ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
[Talk-GB] building shapes from OS Street View, with code
Hi mappers, Thanks for the comments on automatic tracing. I have finished an implementation and it is ready for testing. It runs really slowly (30 minutes a tile). Be careful if you try it and don't remove any existing OSM information (and try not to annoy other mappers). The OS open data license is also a concern, so keep the source tags where appropriate. Please limit yourself to areas you are prepared to manually check and fix. (The LWG are aware of this issue, but don't anticipate problems.) The python code is here (with a readme file): http://timsc.dev.openstreetmap.org/dev/mapseg0.1.tar.gz Let me know if there are any major bugs or possible improvements. I am not sure I can put in much time in the short term but I will fix any major problems. I will do a wiki page eventually for further updates. http://wiki.openstreetmap.org/wiki/Mapseg As Ed Avis suggested, I flag suspected errors during the conversion. I don't use the surrounding pixel colours but there are plenty of other heuristics that indicate problems. I assume all buildings have at least 4 sides which are orthogonal. Any non orthogonal buildings will be flagged for checking. I automatically add a source tag auto_os_street_view. This should be changed to a different source tag when it has been verified. I suggest source=os_street_view for verified buildings. The fuzzer plugin for JOSM is nicely integrated but it operates on the rectified tiles which have lower quality images. My approach uses the original opendata tiles. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Also fuzzer is a bugger to get working and I don't know how to edit the fuzzyselect.py to get it doing what I wanted (i.e. auto-tracing from OS StreetView), so this script should definitely help! On Fri, 2010-05-28 at 10:11 +0100, TimSC wrote: Hi mappers, Thanks for the comments on automatic tracing. I have finished an implementation and it is ready for testing. It runs really slowly (30 minutes a tile). Be careful if you try it and don't remove any existing OSM information (and try not to annoy other mappers). The OS open data license is also a concern, so keep the source tags where appropriate. Please limit yourself to areas you are prepared to manually check and fix. (The LWG are aware of this issue, but don't anticipate problems.) The python code is here (with a readme file): http://timsc.dev.openstreetmap.org/dev/mapseg0.1.tar.gz Let me know if there are any major bugs or possible improvements. I am not sure I can put in much time in the short term but I will fix any major problems. I will do a wiki page eventually for further updates. http://wiki.openstreetmap.org/wiki/Mapseg As Ed Avis suggested, I flag suspected errors during the conversion. I don't use the surrounding pixel colours but there are plenty of other heuristics that indicate problems. I assume all buildings have at least 4 sides which are orthogonal. Any non orthogonal buildings will be flagged for checking. I automatically add a source tag auto_os_street_view. This should be changed to a different source tag when it has been verified. I suggest source=os_street_view for verified buildings. The fuzzer plugin for JOSM is nicely integrated but it operates on the rectified tiles which have lower quality images. My approach uses the original opendata tiles. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
For a final source tag (i.e. the verified buildings) shouldn't we be using source=OS_OpenData_StreetView as noted in the wiki: http://wiki.openstreetmap.org/wiki/Ordnance_Survey_Opendata#When_tracing_over_OS_StreetView --- On Fri, 28/5/10, Roy Jamison xtee...@googlemail.com wrote: From: Roy Jamison xtee...@googlemail.com Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: TimSC mapp...@sheerman-chase.org.uk Cc: talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 10:29 Also fuzzer is a bugger to get working and I don't know how to edit the fuzzyselect.py to get it doing what I wanted (i.e. auto-tracing from OS StreetView), so this script should definitely help! On Fri, 2010-05-28 at 10:11 +0100, TimSC wrote: Hi mappers, Thanks for the comments on automatic tracing. I have finished an implementation and it is ready for testing. It runs really slowly (30 minutes a tile). Be careful if you try it and don't remove any existing OSM information (and try not to annoy other mappers). The OS open data license is also a concern, so keep the source tags where appropriate. Please limit yourself to areas you are prepared to manually check and fix. (The LWG are aware of this issue, but don't anticipate problems.) The python code is here (with a readme file): http://timsc.dev.openstreetmap.org/dev/mapseg0.1.tar.gz Let me know if there are any major bugs or possible improvements. I am not sure I can put in much time in the short term but I will fix any major problems. I will do a wiki page eventually for further updates. http://wiki.openstreetmap.org/wiki/Mapseg As Ed Avis suggested, I flag suspected errors during the conversion. I don't use the surrounding pixel colours but there are plenty of other heuristics that indicate problems. I assume all buildings have at least 4 sides which are orthogonal. Any non orthogonal buildings will be flagged for checking. I automatically add a source tag auto_os_street_view. This should be changed to a different source tag when it has been verified. I suggest source=os_street_view for verified buildings. The fuzzer plugin for JOSM is nicely integrated but it operates on the rectified tiles which have lower quality images. My approach uses the original opendata tiles. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
[Talk-GB] building shapes from OS Street View, with code
Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. And I will probably change to source=Auto_OS_OpenData_StreetView for automatic tracing in the code. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Potlatch's b option will place source=OS OpenData StreetView (note no underscores) if you have OS SV in the background. I use this as I prefer 1 keystroke to 20 or so. From: TimSC mapp...@sheerman-chase.org.uk To: talk-gb@openstreetmap.org Sent: Fri, 28 May, 2010 10:57:25 Subject: [Talk-GB] building shapes from OS Street View, with code Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. And I will probably change to source=Auto_OS_OpenData_StreetView for automatic tracing in the code. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
...any reason why no underscores with Potlatch? --- On Fri, 28/5/10, Jerry Clough - OSM sk53_...@yahoo.co.uk wrote: From: Jerry Clough - OSM sk53_...@yahoo.co.uk Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 11:15 Potlatch's b option will place source=OS OpenData StreetView (note no underscores) if you have OS SV in the background. I use this as I prefer 1 keystroke to 20 or so. From: TimSC mapp...@sheerman-chase.org.uk To: talk-gb@openstreetmap.org Sent: Fri, 28 May, 2010 10:57:25 Subject: [Talk-GB] building shapes from OS Street View, with code Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. And I will probably change to source=Auto_OS_OpenData_StreetView for automatic tracing in the code. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb -Inline Attachment Follows- ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. A bit long yes, and probably not what Potlatch uses if you press 'b' when the Streetview background is selected (I see this has been covered in later posts - it uses the description for the selected background as shown in the dropdown list IIRC), but autocomplete in Potlatch and JOSM tend to pick it up once you've done one or two (though when tracing lots of buildings I tag the first manually in JOSM and then copy tags with Ctrl-Shift-V to all the rest). Oh, and I was using source:building=OS_OpenData_StreetView for the original outline, as whether I've then terraced that building into multiple properties and/or added house numbers, shop names, or whatever are all down to surveyed information, so I wanted to be clear. (Similarly if I've added a road from GPS trace but name from SV I add it as source:name). I'm not entirely happy where I've surveyed a traced building and changed it from building=yes to building=garages about not showing that garages is from survey, but wasn't sure how to handle that. Presumably any non-yes value must be from a survey (it is around here, at least - here being http://osm.org/go/0EHnCuAO ). Ed ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Ask Richard F! From: Tim François sk1pp...@yahoo.co.uk To: talk-gb@openstreetmap.org; Jerry Clough - OSM sk53_...@yahoo.co.uk Sent: Fri, 28 May, 2010 11:20:10 Subject: Re: [Talk-GB] building shapes from OS Street View, with code ...any reason why no underscores with Potlatch? --- On Fri, 28/5/10, Jerry Clough - OSM sk53_...@yahoo.co.uk wrote: From: Jerry Clough - OSM sk53_...@yahoo.co.uk Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 11:15 Potlatch's b option will place source=OS OpenData StreetView (note no underscores) if you have OS SV in the background. I use this as I prefer 1 keystroke to 20 or so. From: TimSC mapp...@sheerman-chase.org.uk To: talk-gb@openstreetmap.org Sent: Fri, 28 May, 2010 10:57:25 Subject: [Talk-GB] building shapes from OS Street View, with code Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. And I will probably change to source=Auto_OS_OpenData_StreetView for automatic tracing in the code. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb -Inline Attachment Follows- ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
...he scares me Only joking! I had come across a few of the non-underscored versions a few days ago, and was wondering why they were formatted like that. Now I know!! Also, today I learned you can do ctrl+shift+V to copy tags between ways/nodes - I've wasted large portions of my life doing this manually! Every day's a school day... *goes off to try and find a page with more neat time saving tricks...* --- On Fri, 28/5/10, Jerry Clough - OSM sk53_...@yahoo.co.uk wrote: From: Jerry Clough - OSM sk53_...@yahoo.co.uk Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 11:31 Ask Richard F! From: Tim François sk1pp...@yahoo.co.uk To: talk-gb@openstreetmap.org; Jerry Clough - OSM sk53_...@yahoo.co.uk Sent: Fri, 28 May, 2010 11:20:10 Subject: Re: [Talk-GB] building shapes from OS Street View, with code ...any reason why no underscores with Potlatch? --- On Fri, 28/5/10, Jerry Clough - OSM sk53_...@yahoo.co.uk wrote: From: Jerry Clough - OSM sk53_...@yahoo.co.uk Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 11:15 Potlatch's b option will place source=OS OpenData StreetView (note no underscores) if you have OS SV in the background. I use this as I prefer 1 keystroke to 20 or so. From: TimSC mapp...@sheerman-chase.org.uk To: talk-gb@openstreetmap.org Sent: Fri, 28 May, 2010 10:57:25 Subject: [Talk-GB] building shapes from OS Street View, with code Ah yes, the recommended tag is good. I didn't notice one had been chosen (but it is a bit long for my taste). So use source=OS_OpenData_StreetView for verified buildings. And I will probably change to source=Auto_OS_OpenData_StreetView for automatic tracing in the code. TimSC ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb -Inline Attachment Follows- ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb -Inline Attachment Follows- ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Tim, In Potlatch you can also use 'r' or 'Shift-R' to repeat the tags from the last way you had selected. See [1]http://wiki.openstreetmap.org/wiki/Potlatch/Keyboard_shortcuts GrahamS On Fri, 28 May 2010 10:39 +, Tim François sk1pp...@yahoo.co.uk wrote: ...he scares me Only joking! I had come across a few of the non-underscored versions a few days ago, and was wondering why they were formatted like that. Now I know!! Also, today I learned you can do ctrl+shift+V to copy tags between ways/nodes - I've wasted large portions of my life doing this manually! Every day's a school day... *goes off to try and find a page with more neat time saving tricks...* References 1. http://wiki.openstreetmap.org/wiki/Potlatch/Keyboard_shortcuts ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] building shapes from OS Street View, with code
Thanks for that - I don't use Potlatch, but the amazing array of shortcuts for everything astounds me every time: some good work by the author! --- On Fri, 28/5/10, Graham Stewart gra...@dalmuti.net wrote: From: Graham Stewart gra...@dalmuti.net Subject: Re: [Talk-GB] building shapes from OS Street View, with code To: Tim François sk1pp...@yahoo.co.uk, OpenStreetMap TalkGB talk-gb@openstreetmap.org Date: Friday, 28 May, 2010, 11:54 Tim, In Potlatch you can also use 'r' or 'Shift-R' to repeat the tags from the last way you had selected. See http://wiki.openstreetmap.org/wiki/Potlatch/Keyboard_shortcuts GrahamS On Fri, 28 May 2010 10:39 +, Tim François sk1pp...@yahoo.co.uk wrote: ...he scares me Only joking! I had come across a few of the non-underscored versions a few days ago, and was wondering why they were formatted like that. Now I know!! Also, today I learned you can do ctrl+shift+V to copy tags between ways/nodes - I've wasted large portions of my life doing this manually! Every day's a school day... *goes off to try and find a page with more neat time saving tricks...* ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb