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?


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

  1. Follow the instructions in the official FAQ by extracting from the .zip
  2. 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.
  3. 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.
    1. After you download extract the files with dpkg -X justDownloadedArchive.deb ./out
    2. Copy out/*geocoder* to your extension folder (/usr/share/postgresql/*/extension/) where * is some version number.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.