Hello,
If that can help, I updated Debian package to be able to build them with
MrSID and ECW SDK. Both source package (so you can check md5s and
rebuilt it yourself) and amd64 packages are available there:
http://packages.hitec.lu/hitec/common/debian/pool-stretch/gdal/
I don't know where this 1.9.2 requirement comes from but that's clearly
unnecessary, here is an extract of my install documentation:
# Get GDAP extension from
http://geoserver.org/release/stable/
# Unzip excluding TXT files and GDAL bindings JAR in a very old version
sudo -u tomcat8 unzip -o /tmp/geoserver-2.13.1-gdal-plugin.zip \
-x LICENSE.txt README.TXT imageio-ext-gdal-bindings-1.9.2.jar \
-d /var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/
# Install GDAL bindings
apt install --yes libgdal-java
sudo -u tomcat8 \
cp -v /usr/share/java/gdal.jar \
/var/lib/tomcat8/webapps/geoserver/WEB-INF/lib/gdal.jar
Basically, the idea is to remove imageio-ext-gdal-bindings-1.9.2.jar
providing in the GeoServer extension by gdal.jar provided by regular
Debian GDAL package (or my variant if you want ECW/MrSID support).
If you need this onetime, you can go for a docker:
FROM debian:stretch
MAINTAINER Adam Cecile <acec...@le-vert.net>
ENV TERM xterm
ENV HOSTNAME gdal.local
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /root
# Upgrade base system
RUN apt-get update \
&& apt-get -y -o 'Dpkg::Options::=--force-confdef' -o
'Dpkg::Options::=--force-confold' --no-install-recommends dist-upgrade \
&& rm -rf /var/lib/apt/lists/*
# Add hitec repository
RUN apt-get update \
&& apt-get -y -o 'Dpkg::Options::=--force-confdef' -o
'Dpkg::Options::=--force-confold' --no-install-recommends install
ca-certificates apt-transport-https \
&& echo "deb [trusted=yes]
https://packages.hitec.lu/hitec/common/debian stretch main" >
/etc/apt/sources.list.d/packages_hitec_lu_common.list \
&& rm -rf /var/lib/apt/lists/*
# Install GDAL
RUN apt-get update \
&& apt-get -y -o 'Dpkg::Options::=--force-confdef' -o
'Dpkg::Options::=--force-confold' --no-install-recommends install
gdal-bin python-gdal python3-gdal \
&& rm -rf /var/lib/apt/lists/*
Then you can convert the ECW file to GeoTIF/JPEG:
docker run -it --rm --volume=/srv:/srv gdal-jp2k gdalwarp -of GTiff -co
TILED=YES -co COMPRESS=JPEG -co JPEG_QUALITY=100 /srv/file.jp2 /srv/file.gif
Regards, Adam.
On 07/18/2018 07:44 AM, Ville Koivisto wrote:
*Good morning,*
Thanks for answering. My overall goal is to enable ECW as a file
format for my geoserver (2.13.1) which installed on a server using
Debian 9 as OS. I’m following these instructions:
http://docs.geoserver.org/latest/en/user/data/raster/gdal.html
We followed through the tutorial once with my colleague, but no luck.
GDAL popped up to modules list under /server status/ tab, but it has a
warning sign. New formats weren’t enabled. Now we’re going through the
steps once again trying to troubleshoot the problem. I’m still a
newbie when it comes to Linux and geoserver so it might be something
obvious…
Could you point me to source from which you downloaded a proper GDAL
library for Debian? How did you know to use 1.9.2? As I said below, it
seems not to be listed here:
https://demo.geo-solutions.it/share/github/imageio-ext/releases/native/gdal/1.9.2/linux/
*Kind regards,*
Ville Koivisto
+35840 701 4283
GIS Expert
Suomen kuntotekniikka Oy
KUNTO TEKNIIKKA logo transparent FF9900
*From:*Joe Murphy <joseph.b.murp...@gmail.com>
*Sent:* Wednesday, July 18, 2018 6:27 AM
*To:* Ville Koivisto <ville.koivi...@kuntotekniikka.fi>
*Cc:* GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
*Subject:* Re: [Geoserver-users] Geoserver on Debian: GDAL-libraries
Hello Sir,
I guess I would need to know more what you're trying to do. I may be
able to help a bit? My set up is a bit different , as I am running
Geoserver in a Debian Docker Container, but i am using GDAL 1.9.2 in
the container. Maybe i can be of some help.
Joe
On Tue, Jul 17, 2018 at 5:11 AM, Ville Koivisto
<ville.koivi...@kuntotekniikka.fi
<mailto:ville.koivi...@kuntotekniikka.fi>> wrote:
*Hi everyone, *
Apologies if my question is obvious, Linux is something new to me.
All tips are appreciated. I have two questions:
*1)*I’m looking to install GDAL native libraries for my Linux
Debian server. But Debian seems not to be listed on this download
page
(https://demo.geo-solutions.it/share/github/imageio-ext/releases/native/gdal/1.9.2/linux/).
*Is Debian not supported for GDAL or what am I missing?*
*2) *A client to whom I’m preparing the Geoserver has handed me
some ECW-files and as far as I understand this has been debuted a
bit concerning it’s license. *Can anyone elaborate on usage
restrictions of ECW-files on a server environment as of today?*
The client is a municipality and intended use is non-commercial
(different definitions of course exist). Assumable, they don’t
have a license, but rather a third party data provider has simply
handed the data sets in ecw-format.
*Cheers,*
Ville Koivisto
+35840 701 4283
GIS Expert
Suomen kuntotekniikka Oy
KUNTO TEKNIIKKA logo transparent FF9900
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before
posting to this list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users