What is the easiest way to install the latest postgis_tiger_geocoder?
-
05-10-2020 - |
Domanda
Ubuntu distributes PostGIS with a core extension called PostGIS TIGER Geocoder, packaged as postgis_tiger_geocoder
. Currently, as of PostGIS 2.2.2, it pulls data from TIGER2015
. I would like to upgrade this to pull from TIGER2016. I want to use the newest version of the geocoder. How do I go about this?
I want to upgrade just postgis_tiger_geocoder
?
Soluzione
Well, they don't make this easy because it's part of core. It's also not fun that this is hard coded into the extension. You can either
- Follow the instructions in the official FAQ by extracting from the
.zip
- Rebuild the entirety of PostGIS which is a monstrously fun task -- though it is totally doable. There is no easy way to build just the extension. The extensions build after the documentation and the rest of PostGIS. Good luck and god speed.
- Download PostGIS-Scripts from the PDPG apt archive. Note, the file you want is labeled
postgresql-$majorversionpg-postgis-$majorversionpostgis-scripts_$fullversionpostgis
with the version of PostgreSQL and PostGIS. Do not download the transition packages that lack the$majorversion
portion of the name.- After you download extract the files with
dpkg -X justDownloadedArchive.deb ./out
- Copy
out/*geocoder*
to your extension folder (/usr/share/postgresql/*/extension/
) where*
is some version number.
- After you download extract the files with
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange