Dear Daniele,
Thanks for your answer.
I do both of the following:
- upload a netcdf file packaged in a zip through the REST API
curl -u user:pwd -XPUT -H "Content-type:application/zip" --data-binary
@netcdf.zip
https://xxxx/geoserver/rest/workspaces/test/coveragestores/testnetcdf/file.netcdf
- upload a netcdf file through the Web interface as a NetCDF store
It is then a NetCDF itself that I cannot encode as NetCDF… Are some
configurations required to handle it ?
Cheers,
Fanny
From: [email protected] [mailto:[email protected]] On Behalf Of
Daniele Romagnoli
Sent: Friday, October 28, 2016 11:27 AM
To: MARTIN, FANNY
Cc: [email protected]
Subject: Re: [Geoserver-users] NetCDF-4 Native Libraries installation
Dear Fanny,
what format of input coverageStore are you trying to encode as NetCDF?
NetCDF output is only supported for input coverages being served by a
coverageStore leveraging on StructuredGridCoverage2DReader.
http://docs.geoserver.org/stable/en/user/extensions/netcdf-out/index.html#current-limitations
StructuredGridCoverage2DReaders expose the underlying dimensions so that the
GetCoverage of WCS2.0 can setup a stack (a GranuleStack) of GridCoverages and
assign related input dimension values to each element of the stack.
Trivial example:
GridCoverage2D #0 of the stack is related to time=T0 and elevation=Z0,
GridCoverage2D #1 of the stack is related to time=T0 and elevation=Z1,
GridCoverage2D #2 of the stack is related to time=T1 and elevation=Z0,
GridCoverage2D #3 of the stack is related to time=T1 and elevation=Z1)
This information will then be used by the NetCDF Writer to setup proper NetCDF
dimensions on output and setup proper multidimensional data array.
So if you have an ImageMosaic on top of a Multidimensional dataset (having
different times and elevations, as an instance) you can encode it as a NetCDF.
Indeed, at the moment, the only Coverage Reader formats implementing a
StructuredGridCoverage2DReader are the ImageMosaic and the NetCDF itself.
To summarize: the "java.lang.IllegalArgumentException: NetCDF encoding only
supports granuleStack coverages" isn't related to a NetCDF4 native library
issue.
That is a different topic:
NetCDF-4 C library not present (jna_path='null', libname='netcdf') is a simple
warning reporting that your GeoServer won't be able to encode output to
NetCDF4-Classic whilst it will be able to encode NetCDF3.
If you want to have NetCDF4-C supported (as an instance to leverage on HDF5
compression capabilities), you need to properly install native libraries.
http://docs.geoserver.org/2.8.1/user/extensions/netcdf-out/nc4.html#linux-install
I know you have already checked these instructions but at the moment I have no
additional feedbacks on the Native Library building topic.
We never encountered that problem before. (It seems it is unable to find the
required HDF5 lib so you may want to double check all the dependencies are
available).
Cheers,
Daniele
On Fri, Oct 28, 2016 at 9:34 AM, MARTIN, FANNY
<[email protected]<mailto:[email protected]>> wrote:
Dear all,
While trying to retrieve a NetCDF4 thanks to WCS request, I get the following
error:
java.lang.IllegalArgumentException: NetCDF encoding only supports granuleStack
coverages
NetCDF encoding only supports granuleStack coverages
I guess the error is due to the failed installation of the NetCDF-4 Native
Library. I get the following error when strating Geoserver:
NetCDF-4 C library not present (jna_path='null', libname='netcdf').
And this one at the installation of the NetCDF C Library:
checking for library containing H5Fflush... configure: error: Can't find or
link to the hdf5 library. Use --disable-netcdf-4, or see config.log for errors.
make: *** No rule to make target 'check'. Stop.
I try to install the NetCDF Output Format plugin in a Geoserver 2.8.1 Tomcat
installation. For this purpose, I have followed the instruction given at
http://docs.geoserver.org/2.8.1/user/extensions/netcdf-out/nc4.html#nc4. After
some searchs on the internet, the problem is mostly solved with the use of the
CPPFLAGS and LDFLAGS, flags that I already use... Any other hints welcome !
Thanks in advance,
Fanny
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à
l’intention exclusive des destinataires désignés. Il contient des informations
confidentielles et pouvant être protégé par le secret professionnel. Si vous
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et
de détruire le message. Toute utilisation de ce message non conforme à sa
destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales)
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne
pourrait être tenu pour responsable des dommages engendrés par la transmission
de l’un d’eux.
This message and any attachments (the "message") are intended solely for the
addressee(s). It contains confidential information, that may be privileged. If
you receive this message in error, please notify the sender immediately and
delete the message. Any use of the message in violation of its purpose, any
dissemination or disclosure, either wholly or partially is strictly prohibited,
unless it has been explicitly authorized by the sender. As its integrity cannot
be secured on the internet, Atos and its subsidiaries decline any liability for
the content of this message. Although the sender endeavors to maintain a
computer virus-free network, the sender does not warrant that this transmission
is virus-free and will not be liable for any damages resulting from any virus
transmitted.
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET<http://ASP.NET> CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
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
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.
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à
l’intention exclusive des destinataires désignés. Il contient des informations
confidentielles et pouvant être protégé par le secret professionnel. Si vous
recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et
de détruire le message. Toute utilisation de ce message non conforme à sa
destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant
pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales)
décline(nt) toute responsabilité au titre de son contenu. Bien que ce message
ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne
pourrait être tenu pour responsable des dommages engendrés par la transmission
de l’un d’eux.
This message and any attachments (the "message") are intended solely for the
addressee(s). It contains confidential information, that may be privileged. If
you receive this message in error, please notify the sender immediately and
delete the message. Any use of the message in violation of its purpose, any
dissemination or disclosure, either wholly or partially is strictly prohibited,
unless it has been explicitly authorized by the sender. As its integrity cannot
be secured on the internet, Atos and its subsidiaries decline any liability for
the content of this message. Although the sender endeavors to maintain a
computer virus-free network, the sender does not warrant that this transmission
is virus-free and will not be liable for any damages resulting from any virus
transmitted.
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users