Update tagging, license, and TODOs

This commit is contained in:
Will Bradley 2021-04-28 12:13:52 -07:00
parent 499a832001
commit bff2c9cb5b
3 changed files with 30 additions and 6 deletions

24
LICENSE Normal file
View File

@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>

View File

@ -120,9 +120,9 @@ Please ensure you are logged in under a dedicated import account with a user nam
### Internal Notes ### Internal Notes
- TODO: - TODO:
- Spot check buildings without addresses - Ensure `source=Sonoma County` is on each changeset
- Double check if geometry is adequately simplified or not - Correlate county usecodes with buildings
- Figure out how to handle the newly-imported Santa Rosa address POIs - Remove `x_son_imp` tags from all elements
- http://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf - http://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf

View File

@ -17,7 +17,7 @@ def filterTags(attrs):
tags = { "building": "yes" } tags = { "building": "yes" }
if "gid" in attrs and attrs["gid"] != "": if "gid" in attrs and attrs["gid"] != "":
tags["x_son_p:gid"] = attrs["gid"] tags["x_son_imp:gid"] = attrs["gid"]
if "addr:state" in attrs and attrs["addr:state"] != "": if "addr:state" in attrs and attrs["addr:state"] != "":
tags["addr:state"] = attrs["addr:state"] tags["addr:state"] = attrs["addr:state"]
if "addr:city" in attrs and attrs["addr:city"] != "": if "addr:city" in attrs and attrs["addr:city"] != "":
@ -28,7 +28,7 @@ def filterTags(attrs):
tags["addr:housenumber"] = attrs["addr:housenumber"] tags["addr:housenumber"] = attrs["addr:housenumber"]
if "addr:unit" in attrs and attrs["addr:unit"] != "": if "addr:unit" in attrs and attrs["addr:unit"] != "":
tags["addr:unit"] = attrs["addr:unit"] tags["addr:unit"] = attrs["addr:unit"]
if "x_son_imp:usecode" in attrs and attrs["x_son_imp:usecode"] != "": if "usecode" in attrs and attrs["x_son_imp:usecode"] != "":
tags["sonoma:x_son_imp:usecode"] = attrs["x_son_imp:usecode"] #TODO: proper x_son_imp:usecode tags["x_son_imp:usecode"] = attrs["x_son_imp:usecode"] #TODO: proper x_son_imp:usecode
return tags return tags