mirror of
https://github.com/zyphlar/sonoma-import.git
synced 2024-03-08 15:07:48 +00:00
Update tagging, license, and TODOs
This commit is contained in:
parent
499a832001
commit
bff2c9cb5b
24
LICENSE
Normal file
24
LICENSE
Normal 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>
|
|
@ -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
|
||||
|
||||
|
|
6
trial.py
6
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user