Talk:Shasta County, California
Jump to navigation
Jump to search
Address Import
I'm currently working on a tool for applying address data from the City and County's GIS departments to existing ways. Here's the process:
Download the data from the county as Geojson.
Using overpass, download all [building=yes] in a given bounding box. Download Raw OSM data, including metadata:
[out:json][timeout:25]; ( way["building"]((bbox={{{minlon}}},{{{minlat}}},{{{maxlon}}},{{{maxlat}}})); ); out meta;
Save this data, then use node.js to run this script against it like `apply_addresses_to_ways.js download.geojson > out.osc`
The script works like this:
- For each building, determine its center point.
- Determine the closest address point to that center point.
- If the address point is within the bounds of the building, apply that address data to the building.
All other tags are preserved.
Then, open JOSM with the same overpass query in the same bounding box, open the .osc file and merge it down.
I think this is a better method of applying addresses than interpolation and can be easily scoped to reviewable changesets.
Issues to Correct before Broader Application
- Needs to use full names (Street) instead of abbreviations (St) - DONE
Changesets
- Lake Redding 40.59365, -122.4219, 40.59978, -122.40216
- River Park Highlands: 40.60027, -122.40611, 40.61073, -122.39044
- Caldwell Park Area: 40.59523, -122.39619, 40.60001, -122.3824
- Hilltop Residential Area: 40.5914, -122.37808, 40.60887, -122.36113
- Collyer Area: 40.6161, -122.35469, 40.63008, -122.33414
- Edgewood Subdivision: 40.58896, -122.34027, 40.59624, -122.33019
- Mary Lake Quarter NOTE: Switched to querying within ways at this point
- Quail Ridge Subdivision
- Ravenwood Estates Subdivision
- Starview Subdivision (and others)
- Saratoga Subdivsion
- Carriage Glen Area
- Bonny View Subdivision
- Magnolia Area
- Breslauers Addition
- Garden Tract
- Country Heights
- Mistletoe Area
- Shasta View Residential Area
- Oak Haven Subdivision
- Hartnell Residences
- Sunset Terrace
- Churn Creek Subdivisions
- North Redding Subdivisions