[Geoserver-users] Trouble getting GDAL Extension to work

Hi,

I'm trying to enable some extra features on our geoserver, such as ECW
raster formats through GDAL extension.

I followed (in my opinion...) carefully the following documentation :

http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

In the status page of geoserver (version 2.3.2), i have :

Native JAI true
Disponibilité du JAI ImageIO true
Mémoire maximale pour le JAI 503 MB

Geoserver runs on Debian amd64 with a tomcat 7 and a JVM of the
following version :

Oracle Corporation: 1.7.0_25 (Java HotSpot(TM) 64-Bit Server VM)

How can I check my installation ? And what could have failed ?

Thanks for your help.

--
Emmanuel Lesouef

Hi Emmanuel,
please read below...

On Wed, Jul 3, 2013 at 3:16 PM, Emmanuel Lesouef <e.lesouef@anonymised.com> wrote:

Hi,

I'm trying to enable some extra features on our geoserver, such as ECW
raster formats through GDAL extension.

I suppose you have purchased an ECW license (which is mandatory to use it
in a Server).

I followed (in my opinion...) carefully the following documentation :

http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

In the status page of geoserver (version 2.3.2), i have :

Native JAI true
Disponibilité du JAI ImageIO true
Mémoire maximale pour le JAI 503 MB

Geoserver runs on Debian amd64 with a tomcat 7 and a JVM of the
following version :

Oracle Corporation: 1.7.0_25 (Java HotSpot(TM) 64-Bit Server VM)

How can I check my installation ?

Did you already try the gdalinfo command provided with the download? It
will use the JAVA bindings so you can check whether that part is working
standalone at least.
Once done, if everything has been properly configured (the libraries are on
LD_LIBRARY_PATH) you should see additional coverage stores from the add
stores section of GeoServer.

And what could have failed ?

I'm not sure about which kind of issues you have. Do you have some
error/logs to report?

Thanks for your help.

Cheers,

Daniele

--
Emmanuel Lesouef

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Emmanuel,
you could check if the “Raster Data Sources” has been created in the “store” section.
I also remind you that gdal libraries don’t support ECW format natively: you need an ECW license.

cheers
Michele

···

On Wed, Jul 3, 2013 at 3:16 PM, Emmanuel Lesouef <e.lesouef@anonymised.com> wrote:

Hi,

I’m trying to enable some extra features on our geoserver, such as ECW
raster formats through GDAL extension.

I followed (in my opinion…) carefully the following documentation :

http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

In the status page of geoserver (version 2.3.2), i have :

Native JAI true
Disponibilité du JAI ImageIO true
Mémoire maximale pour le JAI 503 MB

Geoserver runs on Debian amd64 with a tomcat 7 and a JVM of the
following version :

Oracle Corporation: 1.7.0_25 (Java HotSpot™ 64-Bit Server VM)

How can I check my installation ? And what could have failed ?

Thanks for your help.


Emmanuel Lesouef


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks for answering Daniele.

My answers inline.

Le Wed, 3 Jul 2013 15:58:57 +0200,
Daniele Romagnoli <daniele.romagnoli@anonymised.com> a écrit :

Hi Emmanuel,
please read below...

On Wed, Jul 3, 2013 at 3:16 PM, Emmanuel Lesouef <e.lesouef@anonymised.com>
wrote:

> Hi,
>
> I'm trying to enable some extra features on our geoserver, such as
> ECW raster formats through GDAL extension.
>
I suppose you have purchased an ECW license (which is mandatory to
use it in a Server).

Yep. Just checked with our GIS service. We have it :wink:

>
> I followed (in my opinion...) carefully the following
> documentation :
>
> http://docs.geoserver.org/stable/en/user/data/raster/gdal.html
>
> In the status page of geoserver (version 2.3.2), i have :
>
> Native JAI true
> Disponibilité du JAI ImageIO true
> Mémoire maximale pour le JAI 503 MB
>
> Geoserver runs on Debian amd64 with a tomcat 7 and a JVM of the
> following version :
>
> Oracle Corporation: 1.7.0_25 (Java HotSpot(TM) 64-Bit Server VM)
>
> How can I check my installation ?

Did you already try the gdalinfo command provided with the download?

Just saw it :

root@anonymised.com:/usr/local/lib# ./gdalinfo
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/libgdal.so.1)
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/libNCSEcw.so.0)
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/libNCSCnet.so.0)
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/libNCSUtil.so.0)

Unfortunately :

root@anonymised.com:/usr/local/lib# ls -al /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12 déc. 30 2012 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.13.so

Should I consider Debian 7 as incompatible ?

It will use the JAVA bindings so you can check whether that part is
working standalone at least.
Once done, if everything has been properly configured (the libraries
are on LD_LIBRARY_PATH) you should see additional coverage stores
from the add stores section of GeoServer.

Thanks for your help, really appreciated. Thanks to Michele also.

--
Emmanuel Lesouef

Hi Emmanuel,
You are not the first one having a similar issue… Each linux distribution/version seems having a different set of installed libc libraries and versions…

This is why we have added Centos and Ubuntu prefixes (as well with version number) to the available downloads since we have created those set of libs on those set of environments.

You may consider building it by yourself on your system so that the created native libs will surely match the underlying low level libs (libc and required dependencies).

You may take some hints from the setupGuide we have setup long time ago (before providing native libs available for download).
https://java.net/downloads/imageio-ext/Documentation/ImageioExt-SetupGuide-1.1.pdf

In your case, you should consider checking sections 3.6 3.7.1.3 3.7.2 3.7.2.3 3.7.3.

Note that this document has been made on top of an older GDAL version (1.7.3) so you should consider updating references (links and downloads) to 1.9.2 instead.

Hope this helps.
Cheers,
Daniele

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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


On Wed, Jul 3, 2013 at 5:24 PM, Emmanuel Lesouef <e.lesouef@anonymised.com> wrote:

Thanks for answering Daniele.

My answers inline.

Le Wed, 3 Jul 2013 15:58:57 +0200,
Daniele Romagnoli <daniele.romagnoli@anonymised.com> a écrit :

Hi Emmanuel,
please read below…

On Wed, Jul 3, 2013 at 3:16 PM, Emmanuel Lesouef <e.lesouef@anonymised.com>
wrote:

Hi,

I’m trying to enable some extra features on our geoserver, such as
ECW raster formats through GDAL extension.

I suppose you have purchased an ECW license (which is mandatory to
use it in a Server).

Yep. Just checked with our GIS service. We have it :wink:

I followed (in my opinion…) carefully the following
documentation :

http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

In the status page of geoserver (version 2.3.2), i have :

Native JAI true
Disponibilité du JAI ImageIO true
Mémoire maximale pour le JAI 503 MB

Geoserver runs on Debian amd64 with a tomcat 7 and a JVM of the
following version :

Oracle Corporation: 1.7.0_25 (Java HotSpot™ 64-Bit Server VM)

How can I check my installation ?

Did you already try the gdalinfo command provided with the download?

Just saw it :

root@anonymised.com:/usr/local/lib# ./gdalinfo
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14' not found (required by /usr/local/lib/libgdal.so.1) ./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14’ not found (required by /usr/local/lib/libNCSEcw.so.0)
./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14' not found (required by /usr/local/lib/libNCSCnet.so.0) ./gdalinfo: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14’ not found (required by /usr/local/lib/libNCSUtil.so.0)

Unfortunately :

root@anonymised.com:/usr/local/lib# ls -al /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12 déc. 30 2012 /lib/x86_64-linux-gnu/libc.so.6 → libc-2.13.so

Should I consider Debian 7 as incompatible ?

It will use the JAVA bindings so you can check whether that part is
working standalone at least.
Once done, if everything has been properly configured (the libraries
are on LD_LIBRARY_PATH) you should see additional coverage stores
from the add stores section of GeoServer.

Thanks for your help, really appreciated. Thanks to Michele also.


Emmanuel Lesouef

It seems that the source code needed to build the ECW libs is no longer
unavailable.

Is anybody aware of a location where they could be downloaded ?

Thanks in advance.

Le Wed, 3 Jul 2013 17:36:47 +0200,
Daniele Romagnoli <daniele.romagnoli@anonymised.com> a écrit :

Hi Emmanuel,
You are not the first one having a similar issue... Each linux
distribution/version seems having a different set of installed libc
libraries and versions...
This is why we have added Centos and Ubuntu prefixes (as well with
version number) to the available downloads since we have created
those set of libs on those set of environments.
You may consider building it by yourself on your system so that the
created native libs will surely match the underlying low level libs
(libc and required dependencies).

You may take some hints from the setupGuide we have setup long time
ago (before providing native libs available for download).
https://java.net/downloads/imageio-ext/Documentation/ImageioExt-SetupGuide-1.1.pdf

In your case, you should consider checking sections 3.6 3.7.1.3
3.7.2 3.7.2.3 3.7.3.
Note that this document has been made on top of an older GDAL version
(1.7.3) so you should consider updating references (links and
downloads) to 1.9.2 instead.

Hope this helps.
Cheers,
Daniele

--
Emmanuel Lesouef
CRBN/DSI/SITI
t: 0231069671
e: e.lesouef@anonymised.com

Hi Emmanuel,
I have the impression that you need the ECW SDK library named “libecwj2” that you should find in the ERDAS packages or here:

http://geospatial.intergraph.com/products/other/ecw/ERDASECWJPEG2000SDK/Details.aspx

Once you have got it you should compile the gdal libraries with ECW support.Here a little how-to:

http://trac.osgeo.org/gdal/wiki/ECW

Cheers
Michele

···

On Thu, Jul 4, 2013 at 4:03 PM, Emmanuel Lesouef <e.lesouef@anonymised.com> wrote:

It seems that the source code needed to build the ECW libs is no longer
unavailable.

Is anybody aware of a location where they could be downloaded ?

Thanks in advance.

Le Wed, 3 Jul 2013 17:36:47 +0200,

Daniele Romagnoli <daniele.romagnoli@anonymised.com> a écrit :

Hi Emmanuel,

You are not the first one having a similar issue… Each linux
distribution/version seems having a different set of installed libc
libraries and versions…
This is why we have added Centos and Ubuntu prefixes (as well with
version number) to the available downloads since we have created
those set of libs on those set of environments.
You may consider building it by yourself on your system so that the
created native libs will surely match the underlying low level libs
(libc and required dependencies).

You may take some hints from the setupGuide we have setup long time
ago (before providing native libs available for download).
https://java.net/downloads/imageio-ext/Documentation/ImageioExt-SetupGuide-1.1.pdf

In your case, you should consider checking sections 3.6 3.7.1.3
3.7.2 3.7.2.3 3.7.3.
Note that this document has been made on top of an older GDAL version
(1.7.3) so you should consider updating references (links and
downloads) to 1.9.2 instead.

Hope this helps.
Cheers,
Daniele


Emmanuel Lesouef
CRBN/DSI/SITI
t: 0231069671
e: e.lesouef@anonymised.com


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users