Skip to content

Commit

Permalink
gdal-3.0 build for pdal/ubuntu-dependencies container
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jun 27, 2019
1 parent c87a872 commit 4513d64
Showing 1 changed file with 43 additions and 4 deletions.
47 changes: 43 additions & 4 deletions scripts/docker/ubuntu/dependencies/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-mi
libhdf5-cpp-100 \
liblapack-dev \
libtiff5-dev \
libgeotiff-epsg \
openssh-client \
python-dev \
python-numpy \
Expand All @@ -41,7 +40,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-mi
subversion \
clang \
clang-6.0 \
libproj-dev \
libc6-dev \
libnetcdf-dev \
libopenjp2-7-dev \
Expand Down Expand Up @@ -73,10 +71,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-mi
libopenscenegraph-dev \
libzstd-dev \
liblzma-dev \
libgdal-dev \
libeigen3-dev \
proj-data \
ninja-build \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/hobu/nitro \
Expand Down Expand Up @@ -160,6 +157,48 @@ RUN \
./bootstrap --prefix=/usr && make && make install


RUN git clone https://github.com/OSGeo/PROJ.git --branch 6.1 proj \
&& cd proj \
&& ./autogen.sh \
&& ./configure --prefix=/usr \
&& make -j 4 \
&& make install \
&& rm -rf /proj


RUN git clone --branch master https://github.com/OSGeo/libgeotiff.git \
&& cd libgeotiff/libgeotiff \
&& ./autogen.sh \
&& ./configure --prefix=/usr --with-proj=/usr \
&& make -j 4 \
&& make install \
&& rm -rf /libgeotiff

RUN git clone --branch release/3.0 https://github.com/OSGeo/gdal.git \
&& cd gdal/gdal \
&& ./configure --prefix=/usr \
--mandir=/usr/share/man \
--includedir=/usr/include/gdal \
--with-threads \
--with-grass=no \
--with-hide-internal-symbols=yes \
--with-rename-internal-libtiff-symbols=yes \
--with-rename-internal-libgeotiff-symbols=yes \
--with-libtiff=/usr/ \
--with-geos=/usr/bin/geos-config \
--with-geotiff=/usr \
--with-proj=/usr \
--with-geos \
--with-curl \
--with-pg \
--with-ecw=no \
--with-mrsid=no \
&& make -j 4 \
&& make install \
&& DESTDIR=/ make install \
&& rm -rf /gdal


RUN \
curl -LOs http://download.osgeo.org/proj/proj-datumgrid-1.8.zip && unzip -j -u -o proj-datumgrid-1.8.zip -d /usr/share/proj && rm proj-datumgrid-1.8.zip ; \
curl -LOs http://download.osgeo.org/proj/proj-datumgrid-europe-1.2.zip && unzip -j -u -o proj-datumgrid-europe-1.2.zip -d /usr/share/proj && rm proj-datumgrid-europe-1.2.zip ; \
Expand Down

0 comments on commit 4513d64

Please sign in to comment.