Skip to content

Commit

Permalink
add postgis_tiger_geocoder (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHStanton authored Jul 13, 2023
1 parent b04dede commit f481dbc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
28 changes: 28 additions & 0 deletions contrib/postgis_tiger_geocoder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

RUN apt-get update && apt-get install -y \
build-essential \
libreadline-dev \
zlib1g-dev \
flex \
bison \
libxml2-dev \
libxslt-dev \
libssl-dev \
libxml2-utils \
xsltproc \
ccache \
libgdal-dev \
libgeos-dev \
osm2pgsql \
libprotobuf-c-dev \
protobuf-c-compiler

RUN wget https://download.osgeo.org/postgis/source/postgis-3.3.3.tar.gz && \
tar xvf postgis-3.3.3.tar.gz && \
cd postgis-3.3.3 && \
./configure && \
cd extensions/postgis_tiger_geocoder && \
make
21 changes: 21 additions & 0 deletions contrib/postgis_tiger_geocoder/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[extension]
name = "postgis_tiger_geocoder"
version = "3.3.3"
repository = "https://github.com/postgis/postgis"
license = "GPL-2.0"
description = "A plpgsql based geocoder written to work with the TIGER (Topologically Integrated Geographic Encoding and Referencing system ) / Line and Master Address database export released by the US Census Bureau."
homepage = "http://postgis.net/"
documentation = "https://postgis.net/docs/Extras.html"
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgis-3.3.3/extensions/postgis_tiger_geocoder && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

0 comments on commit f481dbc

Please sign in to comment.