Hi Daniele
Thanks for your tips and support.
Next my comments to your questions.


1.      I tried to run gdalinfo with param –formats so I got next
root@srv-kos02:/var/lib/tomcat7/webapps/geoserver/gdal192# gdalinfo --formats
Supported Formats:
  VRT -raster- (rw+v): Virtual Raster
  GTiff -raster- (rw+vs): GeoTIFF
  NITF -raster- (rw+vs): National Imagery Transmission Format
  RPFTOC -raster- (rovs): Raster Product Format TOC format
  ECRGTOC -raster- (rovs): ECRG TOC format
  HFA -raster- (rw+v): Erdas Imagine Images (.img)
  SAR_CEOS -raster- (rov): CEOS SAR Image
  CEOS -raster- (rov): CEOS Image
  JAXAPALSAR -raster- (rov): JAXA PALSAR Product Reader (Level 1.1/1.5)
  GFF -raster- (rov): Ground-based SAR Applications Testbed File Format (.gff)
  ELAS -raster- (rw+v): ELAS
  AIG -raster- (rov): Arc/Info Binary Grid
  AAIGrid -raster- (rwv): Arc/Info ASCII Grid
  GRASSASCIIGrid -raster- (rov): GRASS ASCII Grid
  SDTS -raster- (rov): SDTS Raster
  OGDI -raster- (ros): OGDI Bridge
  DTED -raster- (rwv): DTED Elevation Raster
  PNG -raster- (rwv): Portable Network Graphics
  JPEG -raster- (rwv): JPEG JFIF
  MEM -raster- (rw+): In Memory Raster
  JDEM -raster- (rov): Japanese DEM (.mem)
  GIF -raster- (rwv): Graphics Interchange Format (.gif)
  BIGGIF -raster- (rov): Graphics Interchange Format (.gif)
  ESAT -raster- (rov): Envisat Image Format
  BSB -raster- (rov): Maptech BSB Nautical Charts
  XPM -raster- (rwv): X11 PixMap Format
  BMP -raster- (rw+v): MS Windows Device Independent Bitmap
  DIMAP -raster- (rov): SPOT DIMAP
  AirSAR -raster- (rov): AirSAR Polarimetric Image
  RS2 -raster- (ros): RadarSat 2 XML Product
  PCIDSK -raster,vector- (rw+v): PCIDSK Database File
  PCRaster -raster- (rw+): PCRaster Raster File
  ILWIS -raster- (rw+v): ILWIS Raster Map
  SGI -raster- (rw+): SGI Image File Format 1.0
  SRTMHGT -raster- (rwv): SRTMHGT File Format
  Leveller -raster- (rw+): Leveller heightfield
  Terragen -raster- (rw+): Terragen heightfield
  GMT -raster- (rw): GMT NetCDF Grid Format
  netCDF -raster- (rw+s): Network Common Data Format
  HDF4 -raster- (ros): Hierarchical Data Format Release 4
  HDF4Image -raster- (rw+): HDF4 Dataset
  ISIS3 -raster- (rov): USGS Astrogeology ISIS cube (Version 3)
  ISIS2 -raster- (rw+v): USGS Astrogeology ISIS cube (Version 2)
  PDS -raster- (rov): NASA Planetary Data System
  VICAR -raster- (rov): MIPL VICAR file
  TIL -raster- (rov): EarthWatch .TIL
  ERS -raster- (rw+v): ERMapper .ers Labelled
  L1B -raster- (rovs): NOAA Polar Orbiter Level 1b Data Set
  FIT -raster- (rwv): FIT Image
  GRIB -raster- (rov): GRIdded Binary (.grb)
  JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on 
Jasper library
  RMF -raster- (rw+v): Raster Matrix Format
  MSGN -raster- (ro): EUMETSAT Archive native (.nat)
  RST -raster- (rw+v): Idrisi Raster A.1
  INGR -raster- (rw+v): Intergraph Raster
  GSAG -raster- (rwv): Golden Software ASCII Grid (.grd)
  GSBG -raster- (rw+v): Golden Software Binary Grid (.grd)
  GS7BG -raster- (rw+v): Golden Software 7 Binary Grid (.grd)
  COSAR -raster- (rov): COSAR Annotated Binary Matrix (TerraSAR-X)
  TSX -raster- (rov): TerraSAR-X Product
  COASP -raster- (ro): DRDC COASP SAR Processor Raster
  R -raster- (rwv): R Object Data Store
  MAP -raster- (rov): OziExplorer .MAP
  PNM -raster- (rw+v): Portable Pixmap Format (netpbm)
  DOQ1 -raster- (rov): USGS DOQ (Old Style)
  DOQ2 -raster- (rov): USGS DOQ (New Style)
  ENVI -raster- (rw+v): ENVI .hdr Labelled
  EHdr -raster- (rw+v): ESRI .hdr Labelled
  GenBin -raster- (rov): Generic Binary (.hdr Labelled)
  PAux -raster- (rw+): PCI .aux Labelled
  MFF -raster- (rw+v): Vexcel MFF Raster
  MFF2 -raster- (rw+): Vexcel MFF2 (HKV) Raster
  FujiBAS -raster- (ro): Fuji BAS Scanner Image
  GSC -raster- (rov): GSC Geogrid
  FAST -raster- (rov): EOSAT FAST Format
  BT -raster- (rw+v): VTP .bt (Binary Terrain) 1.3 Format
  LAN -raster- (rw+v): Erdas .LAN/.GIS
  CPG -raster- (ro): Convair PolGASP
  IDA -raster- (rw+v): Image Data and Analysis
  NDF -raster- (rov): NLAPS Data Format
  EIR -raster- (rov): Erdas Imagine Raw
  DIPEx -raster- (rov): DIPEx
  LCP -raster- (rwv): FARSITE v.4 Landscape File (.lcp)
  GTX -raster- (rw+v): NOAA Vertical Datum .GTX
  LOSLAS -raster- (rov): NADCON .los/.las Datum Grid Shift
  NTv2 -raster- (rw+vs): NTv2 Datum Grid Shift
  CTable2 -raster- (rw+v): CTable2 Datum Grid Shift
  ACE2 -raster- (rov): ACE2
  SNODAS -raster- (rov): Snow Data Assimilation System
  KRO -raster- (rw+v): KOLOR Raw
  ROI_PAC -raster- (rw+v): ROI_PAC raster
  ARG -raster- (rwv): Azavea Raster Grid format
  RIK -raster- (rov): Swedish Grid RIK (.rik)
  USGSDEM -raster- (rwv): USGS Optional ASCII DEM (and CDED)
  GXF -raster- (ro): GeoSoft Grid Exchange Format
  BAG -raster- (ro): Bathymetry Attributed Grid
  HDF5 -raster- (ros): Hierarchical Data Format Release 5
  HDF5Image -raster- (ro): HDF5 Dataset
  NWT_GRD -raster- (rov): Northwood Numeric Grid Format .grd/.tab
  NWT_GRC -raster- (rov): Northwood Classified Grid Format .grc/.tab
  ADRG -raster- (rw+vs): ARC Digitized Raster Graphics
  SRP -raster- (rovs): Standard Raster Product (ASRP/USRP)
  BLX -raster- (rw): Magellan topo (.blx)
  Rasterlite -raster- (rws): Rasterlite
  PostGISRaster -raster- (rws): PostGIS Raster driver
  SAGA -raster- (rw+v): SAGA GIS Binary Grid (.sdat)
  KMLSUPEROVERLAY -raster- (rwv): Kml Super Overlay
  XYZ -raster- (rwv): ASCII Gridded XYZ
  HF2 -raster- (rwv): HF2/HFZ heightfield raster
  PDF -raster,vector- (w+): Geospatial PDF
  OZI -raster- (rov): OziExplorer Image File
  CTG -raster- (rov): USGS LULC Composite Theme Grid
  E00GRID -raster- (rov): Arc/Info Export E00 GRID
  ZMap -raster- (rwv): ZMap Plus Grid
  NGSGEOID -raster- (rov): NOAA NGS Geoid Height Grids
  MBTiles -raster- (rov): MBTiles
  IRIS -raster- (rov): IRIS data (.PPI, .CAPPi etc)
  GPKG -raster,vector- (rw+vs): GeoPackage


2.      I have configured the LD_LIBRARY_PATH with next commands
export LD_LIBRARY_PATH=/var/lib/tomcat7/webapps/geoserver/gdal192/

export PATH=$PATH:/var/lib/tomcat7/webapps/geoserver/gdal192/
export GDAL_DATA=/var/lib/tomcat7/webapps/geoserver/gdal-data/


3.      The report what "ls -ls /var/lib/tomcat7/webapps/geoserver/gdal192/" 
returns is:
56 -rwxrwxrwx 1 tomcat7 odmin    54931 dec   10  2012 gdalinfo
    4 drwxrwxrwx 2 tomcat7 odmin     4096 march 24 09:26 javainfo
  112 -rwxrwxrwx 1 tomcat7 odmin   112705 nov.  22  2012 libgdalconstjni.so
1284 -rwxrwxrwx 1 tomcat7 odmin  1312184 nov.  22  2012 libgdaljni.so
    4 -rwxrwxrwx 1 tomcat7 odmin       17 nov.  22  2012 libgdal.so
    4 -rwxrwxrwx 1 tomcat7 odmin       17 nov.  22  2012 libgdal.so.1
43016 -rwxrwxrwx 1 tomcat7 odmin 44048076 nov.  22  2012 libgdal.so.1.16.2
4960 -rwxrwxrwx 1 tomcat7 odmin  5078163 nov.  26  2012 libltidsdk.so
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSCnet.so
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSCnet.so.0
  580 -rwxrwxrwx 1 tomcat7 odmin   590457 nov.  22  2012 libNCSCnet.so.0.0.0
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSEcwC.so
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSEcwC.so.0
   80 -rwxrwxrwx 1 tomcat7 odmin    81508 nov.  22  2012 libNCSEcwC.so.0.0.0
    4 -rwxrwxrwx 1 tomcat7 odmin       18 nov.  22  2012 libNCSEcw.so
    4 -rwxrwxrwx 1 tomcat7 odmin       18 nov.  22  2012 libNCSEcw.so.0
8444 -rwxrwxrwx 1 tomcat7 odmin  8644546 nov.  22  2012 libNCSEcw.so.0.0.0
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSUtil.so
    4 -rwxrwxrwx 1 tomcat7 odmin       19 nov.  22  2012 libNCSUtil.so.0
  700 -rwxrwxrwx 1 tomcat7 odmin   713782 nov.  22  2012 libNCSUtil.so.0.0.0
  596 -rwxrwxrwx 1 tomcat7 odmin   608641 nov.  22  2012 libogrjni.so
  464 -rwxrwxrwx 1 tomcat7 odmin   472066 nov.  22  2012 libosrjni.so


From: [email protected] [mailto:[email protected]] On Behalf Of 
Daniele Romagnoli
Sent: Monday, April 4, 2016 6:38 PM
To: Керимкулов Жандос Сеитович; [email protected]
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to 
version 2.8.2

Hi Zandos,
please keep the list on CC so that other users can provide their feedbacks as 
well as retrieve information from the discussion in the future, though search.

On Mon, Apr 4, 2016 at 2:26 PM, 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> wrote:


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of 
Daniele Romagnoli
Sent: Monday, April 4, 2016 5:08 PM
To: Керимкулов Жандос Сеитович
Cc: 
[email protected]<mailto:[email protected]>
Subject: Re: [Geoserver-users] GDAL native lib error during instaling to 
version 2.8.2

Hi Zandos,
thanks for having moved the discussion from JIRA to this list.

On Mon, Apr 4, 2016 at 12:18 PM, 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> wrote:

Hi there

During installation GDAL Image formats by 
http://docs.geoserver.org/latest/en/user/data/raster/gdal.html i had next 
errors on tomcat 7 logs.

24, 2016 10:55:50 AM it.geosolutions.imageio.gdalframework.GDALUtilities 
loadGDAL

WARNING: Failed to load the GDAL native libs. This is not a problem unless you 
need to use the GDAL plugins: they won't be enabled.

java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
This is the warning stating GeoServer (through GeoTools) is unable to load your 
native libs.

________________________________

I test it by bash gdalinfo.sh which has next code

#!/bin/bash

input=$1

export LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH

CLASSPATH=imageio-ext-gdal-bindings-1.9.2.jar:.

java -classpath "${CLASSPATH}" gdalinfo $input

________________________________
Which command did you executed?
Did you run "gdalinfo --formats" as suggested in the doc?
I downloaded GDAL192-Ubuntu12 –gcc4.6.3-x86-64.tar and inside /gdal192/javainfo 
there is gdalinfo.sh script file.

Yep, what I was meaning is which options/params did you used with "gdalinfo"? 
(as an instance: gdalinfo --formats)


So it give's me next error log

Native library load failed.

java.lang.UnsatisfiedLinkError: 
/var/lib/tomcat7/webapps/geoserver/gdal192/libgdaljni.so: ../libgdal.so.1: file 
too small

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
org.gdal.gdal.gdalJNI.AllRegister()V

        at org.gdal.gdal.gdalJNI.AllRegister(Native Method)

        at org.gdal.gdal.gdal.AllRegister(gdal.java:475)

        at gdalinfo.main(gdalinfo.java:87)

________________________________
Could you please report how did you configured the LD_LIBRARY_PATH or your 
tomcat scripts ?
Yes, of course, this is result of my echo command
echo $LD_LIBRARY_PATH
/var/lib/tomcat7/webapps/geoserver/gdal192/

echo $GDAL_DATA
/var/lib/tomcat7/webapps/geoserver/gdal-data

Do you have any chance to report what "ls -ls 
/var/lib/tomcat7/webapps/geoserver/gdal192/" returns?
Cheers,
Daniele


I am using Geoserver 2.8.2 on Ubuntu 14.04 and with installed GDAL on my server.

In Image IO-Ext download link 
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.12/ 
native libs available only for Ubuntu 12.04 version,

Note that this specific download should be installed on Ubuntu 12.04 version.
There is no guarantee that they would work on a 14.04 version of Ubuntu (there 
may be conflict with dependency libraries, resulting into loading, linking 
incompatibilities).
I would take a look to this discussion:
http://osgeo-org.1560.x6.nabble.com/Failed-to-load-the-GDAL-native-libs-GDAL-PLUGIN-cannot-be-enabled-td5222384.html
which covers the same topic.

Also 1 strange thing that this libs crash my current image mosaic layer.
What do you mean? Can you provide some more details on this?

Where I can find proper native libs?

See the link I provided above.

Please, let us know if you still have issues.
Cheers,
Daniele


Zhandos

------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



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

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313<tel:%2B39%200584%20962313>
fax:      +39 0584 1660272<tel:%2B39%200584%201660272>

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.




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

Ing. Daniele Romagnoli
Senior Software Engineer

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

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.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to