Hi James,
thanks for sharing, this is good information.

Cheers
Andrea

On Mon, Sep 18, 2017 at 9:53 PM, James Parker Badger <[email protected]>
wrote:

> Hello GeoServer Users,
>
> I recently had some trouble figuring out how to get GeoServer 2.11.1
> working with GDAL 2.2 under Tomcat 9. I eventually found a way to get it to
> work and wanted to update everyone in this thread with a possible solution.
>
> In my case I installed GDAL 2 from the UbuntuGIS/unstable PPA with the
> Java bindings, then copying the jar files to GeoServer's WEB-INF/lib
> directory (along with the GDAL plugin jar files). I kept getting errors
> about gdaljni not being found, and my problems were solved by starting
> Tomcat 9 with certain environment variables:
>
> $ sudo -u tomcat9 GDAL_DATA=/usr/share/gdal/2.2 
> JAVA_OPTS="-Djava.library.path=/usr/lib/jni"
> /opt/tomcat9/bin/startup.sh
>
> It seems the JNI files in "/usr/lib/jni" are what needed to be included. I
> summarized more of the setup in a document on a GitHub repo:
> https://github.com/GeoSensorWebLab/geoserver-gdal-demo
>
> Hope this helps others getting GDAL 2 running.
>
> Sincerely,
>
> James Badger
>
> PS — I am not sure if I properly replied to a thread that existed before I
> subscribed to the mailing list. In case my message isn't properly threaded,
> here is a link to the thread: https://sourceforge.net/p/
> geoserver/mailman/message/35950218/
>
> > Hello everyone,
> >
> > I tried to install GeoServer with GDAL extension on Geoservwer, but I am
> not
> > ablel to make it run. I Ubuntu 16.4 as operating system. When I run
> gdalinfo
> > I receive the following message:
> > Usage: gdalinfo [--help-general] [-json] [-mm] [-stats] [-hist] [-nogcp]
> > [-nomd]
> >                 [-norat] [-noct] [-nofl] [-checksum] [-proj4]
> >                 [-listmdd] [-mdd domain|`all`]*
> >                 [-sd subdataset] [-oo NAME=VALUE]* datasetname
> >
> > FAILURE: No datasource specified.
> > When I run
> > http://localhost:8080/geoserver/rest/about/status
> > , I get the
> > following message:
> > Module name: ImageI/O-Ext GDAL Coverage Extension
> >
> >     Module : gs-gdal
> >     Component : GridCoverage2DReader
> >     Version : 1.1.17
> >     Enabled : true
> >     Available : false
> >     Message : JNI GDAL Wrapper Version: unavailable
> >     java.library.path: /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/
> >
> > In SERVER STATUS/Modules I get the following message:
> >  Module Name: ImageI/O-Ext GDAL Coverage Extension
> > Module ID: gs-gdal
> > Version: 1.1.17
> > Component: GridCoverage2DReader
> > Message:
> >
> > JNI GDAL Wrapper Version: unavailable
> > java.library.path: /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/
> >
> >
> > I tried different solutions, nothing worked. Any tip is very much
> > appreciated. :)
> >
> > Kind regards,
> > Corina
> >
>
> ------------------------------------------------------------
> ------------------
> 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
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
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

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to