forked from hans/Nominatim
@@ -9,9 +9,7 @@ Replace '2018' with the current year throughout.
|
|||||||
1. Install the GDAL library and python bindings and the unzip tool
|
1. Install the GDAL library and python bindings and the unzip tool
|
||||||
|
|
||||||
# Ubuntu:
|
# Ubuntu:
|
||||||
sudo apt-get install python-gdal unzip
|
sudo apt-get install python3-gdal unzip
|
||||||
# CentOS:
|
|
||||||
sudo yum install gdal-python unzip
|
|
||||||
|
|
||||||
2. Get the TIGER 2018 data. You will need the EDGES files
|
2. Get the TIGER 2018 data. You will need the EDGES files
|
||||||
(3,233 zip files, 11GB total).
|
(3,233 zip files, 11GB total).
|
||||||
@@ -22,8 +20,7 @@ Replace '2018' with the current year throughout.
|
|||||||
|
|
||||||
cd data-sources/us-tiger
|
cd data-sources/us-tiger
|
||||||
./convert.sh <input-path> <output-path>
|
./convert.sh <input-path> <output-path>
|
||||||
|
|
||||||
4. Maybe: package the created files
|
4. Maybe: package the created files
|
||||||
|
|
||||||
tar -czf tiger2018-nominatim-preprocessed.tar.gz tiger
|
tar -czf tiger2018-nominatim-preprocessed.tar.gz tiger
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
# Tiger road data to OSM conversion script
|
# Tiger road data to OSM conversion script
|
||||||
# Creates Karlsruhe-style address ways beside the main way
|
# Creates Karlsruhe-style address ways beside the main way
|
||||||
# based on the Massachusetts GIS script by christopher schmidt
|
# based on the Massachusetts GIS script by christopher schmidt
|
||||||
@@ -164,7 +164,7 @@ def parse_shp_for_geom_and_tags( filename ):
|
|||||||
if (statefp != None) and (countyfp != None):
|
if (statefp != None) and (countyfp != None):
|
||||||
county_name = county_fips_data.get(statefp + '' + countyfp)
|
county_name = county_fips_data.get(statefp + '' + countyfp)
|
||||||
if county_name:
|
if county_name:
|
||||||
tags["tiger:county"] = county_name.encode("utf-8")
|
tags["tiger:county"] = county_name
|
||||||
|
|
||||||
# tlid = poFeature.GetField("TLID")
|
# tlid = poFeature.GetField("TLID")
|
||||||
# if tlid != None:
|
# if tlid != None:
|
||||||
|
|||||||
@@ -220,14 +220,14 @@ For a list of other methods see the output of `./utils/update.php --help`.
|
|||||||
|
|
||||||
#### Installing the newest version of Pyosmium
|
#### Installing the newest version of Pyosmium
|
||||||
|
|
||||||
It is recommended to install Pyosmium via pip. Run (as the same user who
|
It is recommended to install Pyosmium via pip. Make sure to use python3.
|
||||||
will later run the updates):
|
Run (as the same user who will later run the updates):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pip install --user osmium
|
pip3 install --user osmium
|
||||||
```
|
```
|
||||||
|
|
||||||
Nominatim needs a tool called `pyosmium-get-updates`, which comes with
|
Nominatim needs a tool called `pyosmium-get-updates` which comes with
|
||||||
Pyosmium. You need to tell Nominatim where to find it. Add the
|
Pyosmium. You need to tell Nominatim where to find it. Add the
|
||||||
following line to your `settings/local.php`:
|
following line to your `settings/local.php`:
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ For running Nominatim:
|
|||||||
|
|
||||||
For running continuous updates:
|
For running continuous updates:
|
||||||
|
|
||||||
* [pyosmium](https://osmcode.org/pyosmium/)
|
* [pyosmium](https://osmcode.org/pyosmium/) (with Python 3)
|
||||||
|
|
||||||
### Hardware
|
### Hardware
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from osmium.replication import server
|
from osmium.replication import server
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import osmium
|
import osmium
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
Reference in New Issue
Block a user