From bff2c9cb5b0bd23f83a65556bd4d35d01a94e94b Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Wed, 28 Apr 2021 12:13:52 -0700 Subject: [PATCH] Update tagging, license, and TODOs --- LICENSE | 24 ++++++++++++++++++++++++ README.md | 6 +++--- trial.py | 6 +++--- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fdddb29 --- /dev/null +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index b67d2c1..e118959 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,9 @@ Please ensure you are logged in under a dedicated import account with a user nam ### Internal Notes - TODO: - - Spot check buildings without addresses - - Double check if geometry is adequately simplified or not - - Figure out how to handle the newly-imported Santa Rosa address POIs + - Ensure `source=Sonoma County` is on each changeset + - Correlate county usecodes with buildings + - Remove `x_son_imp` tags from all elements - http://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf diff --git a/trial.py b/trial.py index cfeab98..a4baeca 100644 --- a/trial.py +++ b/trial.py @@ -17,7 +17,7 @@ def filterTags(attrs): tags = { "building": "yes" } 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"] != "": tags["addr:state"] = attrs["addr:state"] if "addr:city" in attrs and attrs["addr:city"] != "": @@ -28,7 +28,7 @@ def filterTags(attrs): tags["addr:housenumber"] = attrs["addr:housenumber"] if "addr:unit" in attrs and attrs["addr:unit"] != "": tags["addr:unit"] = attrs["addr:unit"] - if "x_son_imp: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 + if "usecode" in attrs and attrs["x_son_imp:usecode"] != "": + tags["x_son_imp:usecode"] = attrs["x_son_imp:usecode"] #TODO: proper x_son_imp:usecode return tags