Update README.md

This commit is contained in:
Frigyes06 2024-06-24 10:39:27 +00:00
parent a97a8845b7
commit 2d343906dd

View File

@ -4,17 +4,17 @@ See [https://wiki.openstreetmap.org/wiki/Contra_Costa_County_Address_Import](htt
## Data Source
https://www.contracosta.ca.gov/1818/GIS (https://gis.cccounty.us/Downloads/General%20County%20Data/CCC_Adddress_Points.zip)
https://www.contracosta.ca.gov/1818/GIS (https://gis.cccounty.us/Downloads/General%20County%20Data/CCC_Adddress_Points.zip) (Updated April 16, 2024)
Already emailed County about licensing because https://gis.cccounty.us/Downloads/General%20County%20Data/CCC_GIS_Disclaimer.pdf says "THIS DATA CONTAINS COPYRIGHTED INFORMATION OF THE COUNTY OF CONTRA COSTA"
~~Already emailed County about licensing because https://gis.cccounty.us/Downloads/General%20County%20Data/CCC_GIS_Disclaimer.pdf says "THIS DATA CONTAINS COPYRIGHTED INFORMATION OF THE COUNTY OF CONTRA COSTA"~~
They fixed the disclaimer, it is now just a release of liability, county confirms the data is public domain.
*TODO:* see if there is updated data, this was modified 8/27/2019
## Field Mapping
`street_num` -> `addr:housenumber`
`trim(array_to_string(array(prefix_typ,prefix_dir,street_nam,street_typ,suffix_dir),' '))`
`formatstreet(getstreetfromaddress(address))`
->
`addr:street`
@ -30,7 +30,7 @@ Already emailed County about licensing because https://gis.cccounty.us/Downloads
* Open the original data in QGIS
* Format OSM fields with QGIS functions to have proper capitalization and full spellings without extraneous whitespace, based on original fields. For example OSM uses names like North Main Street, not N MAIN ST. All fields are of the QGIS type "text" even if they're numbers.
* You can use the Attribute Table's Field Calculator for this; you can copy-paste the QGIS Functions script below into the Function Editor and then use the Expression tab to create new, formatted virtual fields. Don't worry if the field name limit is too short, it can be fixed in JOSM.
* Use QGIS's "select by value" function to search "West Street" an "East Streer" in addr:house, then proceed to delete these, as they're incorrect duplicates of West/East nth Street. Repeat this for "East Place"
* Use QGIS's "select by value" function to search "West Street" an "East Street" in addr:house, then proceed to delete these, as they're incorrect duplicates of West/East nth Street. Repeat this for "East Place"
* The Addresses shapefile is recorded in a California-specific CRS, make sure your project is set to WGS84 and reproject upon opening the Shapefile.
* Export to Geojson **selecting only the OSM-formatted fields we want**.
* Here you can rename any temporary or misnamed columns like `addr:house` to `addr:housenumber` etc.