pre-import refresh
This commit is contained in:
parent
727a67050f
commit
d9db5c1391
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -23,7 +23,7 @@ See [https://wiki.openstreetmap.org/wiki/Salem_Oregon_Address_Import](https://wi
|
||||||
|
|
||||||
- Get `Primary_Addresses.geojson` from the City GIS server linked above.
|
- Get `Primary_Addresses.geojson` from the City GIS server linked above.
|
||||||
- Open the file in QGIS and open the layer attribute table
|
- Open the file in QGIS and open the layer attribute table
|
||||||
- Use the field calculator and the below script to add new virtual fields per the mapping above.
|
- Use the field calculator and the below script to add new virtual fields per the mapping above. (You may have to hit Save and Load Functions again to refresh QGIS's memory)
|
||||||
- Export the layer to geojson with "EPSG:4326 - WGS 84" projection. Deselect all fields besides those above.
|
- Export the layer to geojson with "EPSG:4326 - WGS 84" projection. Deselect all fields besides those above.
|
||||||
- Save as `processed.geojson`
|
- Save as `processed.geojson`
|
||||||
|
|
||||||
|
@ -78,6 +78,10 @@ def getstreetfromaddress(value1, feature, parent):
|
||||||
@qgsfunction(args='auto', group='Custom', referenced_columns=[])
|
@qgsfunction(args='auto', group='Custom', referenced_columns=[])
|
||||||
def formatstreet(value1, feature, parent):
|
def formatstreet(value1, feature, parent):
|
||||||
parts = value1.split()
|
parts = value1.split()
|
||||||
|
# Handle the special case of a street name starting with "ST"
|
||||||
|
# which is almost always "Saint __" and not "Street __"
|
||||||
|
if parts[0] == "ST":
|
||||||
|
parts[0] = "Saint"
|
||||||
parts = map(formatstreetname, parts)
|
parts = map(formatstreetname, parts)
|
||||||
return " ".join(parts)
|
return " ".join(parts)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user