[Talk-us-massachusetts] MassGIS address import -- on duplicates and weird housenumbers
Yury Yatsynovich
yury.yatsynovich at gmail.com
Tue Jul 24 16:48:59 UTC 2018
For the points with units I've noticed that in most cases they are
duplicates (have exactly the same location), so to avoid the error in JOSM
that "duplicates are created" and to avoid mess on the map I would merge
such points (same location, street and housenumber but different units),
combining the info on units into addr:unit="A,B,C,..." etc. When/if
somebody wants to allocate units to entrances it will take one a bit of
extra effort -- instead of dragging ready points to the right entrance one
would need to create such points from addr:unit="A,B,C,..." (a relatively
small extra step which can be implemented with a script).
Another issue that I've noticed -- some addresses have housenumbers equal
to 0, yet, some of them have proper unit numbers. What shall be done with
such addresses? Importing addr:housenumber=0 as in MassGIS? Or are there
other OSM-compatible sources to double-check addresses?
Currently I'm done with matching addresses to buildings and merging
duplicate nodes (same location, street and housenumber but different
units). I also used a python module titlecase + some patterns that I've
noticed in names of streets in MA from OSM (so, there should be no problems
with either "McDonald" or "YMCA Street"). Folder with matched and unmatched
addresses split by counties is here: https://mega.nz/#F!Wg9RQJzL
!MIyYl9kq5AivIm5SOxGAow
Python script that I used: https://mega.nz/#!Ct9lCLDJ
!bm7SpzTnuaYTdiNlJw4CGB3AQ3WjY6jxeC1cQzDRx4o
In the next couple of days I'll try to write a script that would create
changesets based on OSMID's of buildings (for adding to them matched
addresses).
--
Yury Yatsynovich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-us-massachusetts/attachments/20180724/5c346d35/attachment.html>
More information about the Talk-us-massachusetts
mailing list