[HOT] Nepal data validation: overpass script to identify the recent mappers?

kusala nine kusala9 at googlemail.com
Tue May 12 20:46:09 UTC 2015


bit of a delay getting non-squared buildings to work in python/overpass but
the day job intervened I'm afraid. Still, good to dive into learning
overpass and the pytthon API. The link below has a python script which will
report buildings within a bounding box with a skew greater than a certain
tolerance. It's the kind of thing which could be integrated into JOSM
ideally but not sure how to go about that... I'm happy to do the work (I
speak java and python and would like to get involved in the JOSM
developments). Have a go - email me if it doesn't work. Against the
depressing backdrop of the 2nd earthquake this slips down the priority list
so I'm going back to the TM to do some bread and butter mapping for a few
days but happy to be diverted by this if it would help.

https://www.dropbox.com/s/xhlr6n1ia3kzqw6/buildings.zip?dl=0

all the best,

jon p.

On Tue, May 5, 2015 at 9:21 PM, Springfield Harrison <stellargps at gmail.com>
wrote:

>  Wouldn't it be easier to just create a tool that draws a box/rectangle?
> That is a common GIS drawing activity.
>
> I'm new to this (but not to GIS/GPS mapping) but does this project really
> need building footprints in every case?  Points might suffice initially in
> the interests of simplicity/expediency; building footprints could be added
> later for specific cases.  The initial point could have attributes as to
> size, type of building, etc.
>
>                  Cheers . . . .   Spring Harrison
>
>
>
>
> At 05-05-2015 13:04 Tuesday, kusala nine wrote:
>
> I have a python script which will analyse all buildings in a bounding box
> and output those with a large "skew" - where the diagonals don't match
> (within a tolerance). It uses overpass API and will also output
> changeset/user info. I'll post a link to it tomorrow once I've finished
> user options. Might be useful to identify tiles where buildings aren't
> square. Needs overpass and pygeo to get data and work out distances. jon.
>
> On Tue, May 5, 2015 at 7:05 AM, kusala nine <kusala9 at googlemail.com >
> wrote:
>  I put the latest extract back into a database last night and extracted
> just the buildings and the number of sides in them - the list below shows
> total number of buildings and the number of sides in the polygon.. Of the
> 190k buildings in the current Nepal extract the vast majority have four
> sides - There are 58 triangular buildings though! and quite a lot with more
> sides. I am analysing the 4-sided buildings now and measuring the
> difference in metres between the diagonals - this is probably the best
> method of determing the skew. If you want a shapefile of the triangular
> buildings let me know and I can dropbox it. I'll try and get this working
> in python/overpass wrapper so it can be run as a validation process... jon.
>
> total  | #sides
> Â 160852 | Â 4
> Â 10940 | Â 6
> Â Â 6259 | Â 5
> Â Â 5075 | Â 8
> Â Â 2404 | Â 7
> Â Â 1240 | 10
> Â Â 875 | Â 9
> Â Â 718 | 12
> Â Â 496 | 11
> Â Â 231 | 14
> Â Â 208 | 13
> Â Â 179 | 16
> Â Â 128 | 15
> Â Â Â 82 | 18
> Â Â Â 72 | 19
> Â Â Â 58 | Â 3
>
>
> On Mon, May 4, 2015 at 10:23 PM, kusala nine <kusala9 at googlemail.com >
> wrote:
>  hi - will do. back to the day job tomorrow but will keep on it.
> geometrically it's easy to figure out if something's got right angles -
> it's just the extract from the database. I'll see what I can do and report
> back. jon.
>
> On Mon, May 4, 2015 at 9:36 PM, Mhairi O'Hara <mhairi.ohara at hotosm.org >
> wrote:
>  This is great. We are really looking at somehow incorporating a tiered
> user system (beginner/intermediate/advanced) into the Tasking Manager, so
> that we can hopefully do the following:
>
> Mapper status: Provide various levels of mapper status
> (beginner/intermediate/advanced), so that only advanced can validate tiles
> and perhaps a buddy system can be introduced to guide beginners.
>
> Chat room: Provide a channel where users (beginners) can speak to other
> users (experienced) live to get help on how to do mapping. Something
> similar to MapCraft (http://mapcraft.nanodesu.ru/ )
>
> Beginner guidance: Once new mappers are identified, perhaps experienced
> users can give them view access to watch them map live. This would be the
> quickest way to teach and learn during an activation, as it would be
> specific to the project they are working on and enable them to become
> familiar with identifying features in the satellite imagery.
>
> Again, duly noted! Please keep me in the loop if you make any head way on
> the python wrapper Kusala.
>
> Kind regards,
>
> Mhairi
>
>
>
> On Mon, May 4, 2015 at 9:41 AM, Pierre Béland <pierzenh at yahoo.fr> wrote:
>  Working better :)
> Thanks
> Â
> Â
> Pierre
>
>
> De : Julian Haag <osm at juhaag.de>
> À : hot at openstreetmap.org
> Envoyé le : Lundi 4 mai 2015 9h05
> Objet : Re: [HOT] Nepal data validation: overpass script to identify the
> recent mappers?
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Â
> Hi,
> there is a . athe the ent of the URL. This is the correct one:
>  http://resultmaps.neis-one.org/newestosmcountry.php?c=Nepal
>
> ngt
>
> Am 04.05.2015 um 14:54 schrieb Pierre Béland:
> > Thanks Pascal Neis for this again. This includes a RSS feed. No user
> listed yet on my screen.
>>> > Pierre
> >
> > -------------------------
> > *De :* amrit karmacharya <amrit.im at gmail.com> <amrit.im at gmail.com>
> > *À :* Kusala9 <kusala9 at googlemail.com> <kusala9 at googlemail.com>
> > *Cc :* "hot at openstreetmap.org" <hot at openstreetmap.org>
> <hot at openstreetmap.org> <hot at openstreetmap.org>
> > *Envoyé le :* Lundi 4 mai 2015 8h41
> > *Objet :* Re: [HOT] Nepal data validation: overpass script to identify
> the recent mappers?
> >
> > This page shows Newest Active OpenStreetMap Contributors for Nepal
> http://resultmaps.neis-one.org/newestosmcountry.php?c=Nepal.
> >
> >
> >
> > On Mon, May 4, 2015 at 12:35 PM, Kusala9 <kusala9 at googlemail.com <
> mailto:kusala9 at googlemail.com <kusala9 at googlemail.com>>> wrote:
> >
> >Â Â Â Â I'm new to overpass but there s a nice python wrapper which will
> make user counts and geometry calculations easier. I can look at this
> tonight and will report back. Jon
> >
> >Â Â Â Â 58683-23001#47
> >
> >Â Â Â Â On 4 May 2015, at 02:45, Severin Menard <severin.menard at gmail.com
> <mailto:severin.menard at gmail.com <severin.menard at gmail.com>>> wrote:
> >
> >Â Â Â Â > Hi,
> >Â Â Â Â >
> >Â Â Â Â > Is there a overpass skilled person to write the script that can
> identify mappers with limited experience (recent mapper ID or number of
> contributions less than let us say 5,000) over Nepal, so that we can check
> their contributions and give advice about how to improve them.
> >Â Â Â Â >
> >Â Â Â Â > Another hero would be the person able to include a detection of
> non squared buildings within the Validator steps.
> >Â Â Â Â >
> >Â Â Â Â > Sincerely,
> >Â Â Â Â >
> >Â Â Â Â > Severin
> >Â Â Â Â > _______________________________________________
> >Â Â Â Â > HOT mailing list
> >Â Â Â Â > HOT at openstreetmap.org < mailto:HOT at openstreetmap.org
> <HOT at openstreetmap.org>>
> >Â Â Â Â > https://lists.openstreetmap.org/listinfo/hot
> >
> >Â Â Â Â _______________________________________________
> >Â Â Â Â HOT mailing list
> >Â Â Â Â HOT at openstreetmap.org < mailto:HOT at openstreetmap.org
> <HOT at openstreetmap.org>>
> >Â Â Â Â https://lists.openstreetmap.org/listinfo/hot
>
> >
> >
> >
> >
> > --
> > Best Regards
> > Amrit Karmacharya
> > Instructor, Survey Officer
> > Land Management Training Center
> >
> > _______________________________________________
> > HOT mailing list
> > HOT at openstreetmap.org < mailto:HOT at openstreetmap.org
> <HOT at openstreetmap.org>>
>
>
>
> > https://lists.openstreetmap.org/listinfo/hot
> >
> >
> >
> >
> > _______________________________________________
> > HOT mailing list
> > HOT at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/hot
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> Â
> iQIcBAEBAgAGBQJVR26KAAoJEMUCiYazPkhKZjcQAM7zlBJW6huq2ikO1iB55oIj
> VTqMd3HW2hdIGNQYywbbSqV31dXSDu1HCpPRZZMTfCDHwHjYeEm6ChMFVo3MEJ6C
> GCRHyr7XtzsDueCytQdXyWoSRVPNcigNQczMKfURYdPyiWzRdTqLHrasfMZdUPfW
> Ue8Gy1iITksRF17zh/URJydGjD+9fsWPiNBYyjvI2oTXXPEAPZH69G7wG7N8Me43
> /cNuIMIv2m81MBhD5egGzIHw7buJ/aUbjl3LSDzX64GOuOp/NC5Xgotg1HL2PvmE
> FfNaZIhpiyLwk31odMOcwUglnLfHepIekNulc4qi7BpXx139pT0KrRsmXgpS+Y7Q
> 0LR3inEf0fHWS0PrrzVK9UxF03xcMNJLZDOMnpeoZ3PIXQ5HWSsF0H7N6nF6dXIk
> wHfo+cxm1ype6A08vHw+TVK/gSoR/0DlxgNTyQyq3ZQDaP2mUE9ZtPuHtz3Yq3n/
> oIPRp3vlwYHpeskk54pE3jb1pJwVq75JC0Akt/Au7K0v3JAmmkW7QHpiU9NCJbkM
> cFm7PWISyuEK7RWYm+lEUU1aJInGeVsN94OtJPJ7XxTCBZE9glDsEEooFVYaNYov
> BpaIuHem2GZniin+Yg0Ow3ZVGj3kOYhJ1gGZSkwGHeN6P1JePD/ZwyO2scYZLvmQ
> kfytyRgvPtpKm1oEFb/5
> =NLxE
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> HOT mailing list
> HOT at openstreetmap.org
>  https://lists.openstreetmap.org/listinfo/hot
>
>
>
> _______________________________________________
> HOT mailing list
> HOT at openstreetmap.org
>  https://lists.openstreetmap.org/listinfo/hot
>
>
>
>
> --
> Mhairi O'Hara
> Technical Project Manager
> Email:Â mhairi <mhairi.ohara at hotosm.org> .ohara at hotosm.org
> <mhairi.ohara at hotosm.org>
> Indonesian Mobile:Â +62 822 4701 1475
>
> Humanitarian OpenStreetMap TeamÂ
> Using OpenStreetMapÂ
> for Humanitarian ResponseÂ
> & Economic DevelopmentÂ
>
>
>
>
> _______________________________________________ HOT mailing list
> HOT at openstreetmap.org https://lists.openstreetmap.org/listinfo/hot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/hot/attachments/20150512/b3b05042/attachment-0001.html>


More information about the HOT mailing list