[Geoserver-users] How to use dynamic colormap plugin for netcdf?

2018-11-16 Thread Rayman
I have read the document  Dynamic colormap generation
  ,
but I still can not display my layer with dynamic colormap.

What I did:
1. use command "gdalinfo -stats my.nc" to create the PAM Auxiliary
file(.aux.xml)
2. Add my netcdf file as data store and publish it( I hava installed the
netcdf extension)
3. create a file named "indexer.properties" with the content
"CheckAuxiliaryMetadata=true", the properties file is beside my netcdf file
4. install the dynamic colormap community extension(2.14-SNAPSHOT-colormap)
4. add a new dynamic style according to the document

What I got:
When I preview the layer, an exception is thrown, showing "Filter Function
problem for function gridCoverageStats: Unable to find the stat minimum from
the input object of type class"

Addition info:
My GeoServer version is 2.14

Could you give me some suggestion?
Thanks in advance

Rayman



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Andrea Aime
On Fri, Nov 16, 2018 at 5:28 PM Mark Prins  wrote:

> 
>>   geoserver.xframe.shouldSetPolicy
>>   false
>> 
>>
>>
> I haven't tried this specific case, but for a Tomcat deployment it is
> possible to create a context.xml as
> /conf/Catalina/localhost/geoserver.xml that overrides the
> context.xml from the war file, it's useful if you have more than one
> deployment of geoserver in tomcat eg. with virtual hosts
>

I did not know, thank you!
When you say multiple deployments, are they running in the same JVM? That
would be bad as GeoServer does not undeploy cleanly, leaving garbage that
eventually will accumulate and kill Tomcat.
Unfortunately fixing that is not easy, I've tried in my spare time years
ago and failed

Cheers
Andrea

==

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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Mark Prins

>   geoserver.xframe.shouldSetPolicy
>   false
> 
>
>
I haven't tried this specific case, but for a Tomcat deployment it is
possible to create a context.xml as
/conf/Catalina/localhost/geoserver.xml that overrides the
context.xml from the war file, it's useful if you have more than one
deployment of geoserver in tomcat eg. with virtual hosts

-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.
___
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


[Geoserver-users] Specify layer style in layer group request

2018-11-16 Thread João Duarte
Hi,

I'm having problems when querying a layer group (WMS or WMTS) and trying to
specify a style different from the default one. Imagine the following
scenario:

I have 2 simple layers: layer1 and layer2.
Each of these layers has the same default syle: style1. They both also have
a second available style: style2.
Then there's a layer group called layer_grp which has layer1 and layer2.

When trying to get tiles for layer_grp via WMS or WMTS, specifying style2
on the STYLES parameter seems to have no effect and I always get the tiles
with style1 applied.

Is it possible to specify non-default styles when querying a layer group
via WMS or WMTS?

Thank you

-- 
JD
___
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


[Geoserver-users] Delete nested layer groups with mode Container Tree

2018-11-16 Thread jose garcia
Hi

I'm having issues trying to delete nested layer groups with mode Container
Tree in 2.13 and 2.14, with the UI and with the REST API. I have tested in
old version (2.9) and that is working fine.

I have created the following layer tree structure using *mode=Container
Tree *for the 2 layer groups:

GROUP_PARENT
  GROUP_CHILD
LAYER1
LAYER2

If I use the UI or REST API to delete GROUP_PARENT, it seems deleting both
GROUP_PARENT and GROUP_CHILD layer groups, but breaks GeoServer. For
example trying for example to delete the related workspace, fails with an
exception:

org.apache.wicket.WicketRuntimeException: Method onRequest of interface
org.apache.wicket.behavior.IBehaviorListener targeted at
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1@5424443d on
component [AjaxSubmitLink [Component id = submit]] threw an exception at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter

It requires to restart GeoServer. After the restart in the layer groups
GROUP_CHILD is listed again, seem was not really removed.

*With** the REST API*, I've checked to delete first GROUP_CHILD and after
GROUP_PARENT, but I get the following error:

Unable to delete layer group referenced by layer group 'GROUP_PARENT'

If I try to update the GROUP_PARENT to empty it, I get this other error:

Layer group must not be empty


*With the UI*, if I try to delete the GROUP_CHILD then in the confirm
dialog it indicates that GROUP_PARENT is going to be updated and the it
works fine, deleting GROUP_CHILD and GROUP_PARENT.


So in summary, for  layer groups  mode Container Tree, at least since 2.13:

- Deleting the parent group layer with nested groups "seem to work" from
the UI and REST API as no errors are returned, but leaves GeoServer in a
bad status requiring to restart it. If this is not allowed should be
prevented with a proper error or message to the user.

- Deleting the child layer group works from the UI and seem handling the
removal of the parent layer group if empty.

- The previous case from REST API seem not possible as to delete a child
group, need to remove it from the parent, but the parent can't be emptied.


Not sure if I'm doing this wrongly or if there's any workaround to be able
to delete nested layer groups with mode Container Tree with the REST API?


I have found this issue that could be related, but is closed:
https://osgeo-org.atlassian.net/browse/GEOS-7858


Thanks and regards,
Jose García
___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Andrea Aime
On Fri, Nov 16, 2018 at 9:27 AM Arnaud L.  wrote:

> Le 16/11/2018 à 09:13, Andrea Aime a écrit :
> > 
> > geoserver.xframe.shouldSetPolicy
> >false
> > 
>
> OK thanks Andrea.
> But then why not init-param in the xFrameOptionsFilter ? Sorry, I'm not
> very familiar with java environments...
>

Oh, probably because having that option too requires more work , and as
said,
very few want to modify web.xml, just to have to re-modify it over and over
again at
every GeoServer upgrade

Cheers
Andrea

==

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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Arnaud L.

Le 16/11/2018 à 09:13, Andrea Aime a écrit :


geoserver.xframe.shouldSetPolicy
   false



OK thanks Andrea.
But then why not init-param in the xFrameOptionsFilter ? Sorry, I'm not 
very familiar with java environments...


BTW, I used the env variable and it works fine !

Cheers !

--
Arnaud


___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Arnaud L.

Hi mark

Le 15/11/2018 à 20:16, mark a écrit :
actually this is wrong, it looks to parse a boolean from 
geoserver.xframe.shouldSetPolicy


https://github.com/geoserver/geoserver/blob/94d8bca73b5e1a7438117b1aa2fb519b6ae4e3a4/src/main/src/main/java/org/geoserver/filters/XFrameOptionsFilter.java#L33-L35 


Indeed, that's the property that I've (tried to) set to false.


alternatively you could remove the filter, tough setting as an 
environment variable will be easier when upgrading


Yes, that's what I ended up with. Thanks

Cheers

--
Arnaud


___
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


Re: [Geoserver-users] X-Frame-Options

2018-11-16 Thread Andrea Aime
On Thu, Nov 15, 2018 at 8:22 PM mark  wrote:

> actually this is wrong, it looks to parse a boolean from 
> geoserver.xframe.shouldSetPolicy
>
>
>
> https://github.com/geoserver/geoserver/blob/94d8bca73b5e1a7438117b1aa2fb519b6ae4e3a4/src/main/src/main/java/org/geoserver/filters/XFrameOptionsFilter.java#L33-L35
>
> alternatively you could remove the filter, tough setting as an environment
> variable will be easier when upgrading
>
>
Correct, and it does thought GeoServerExtensions.getProperty, meaning the
variable can be set either as:

   - System variable
   - Environment variable
   - Web context param, that is, not as a filter parameter, but something
   like (warning, untested):


  geoserver.xframe.shouldSetPolicy
  false


 at the beginning of the web.xml file.
In deployments we normally go for system variables set in tomcat setenv.sh
(or catalina.sh) to allow easy upgrading,
web.xml would have to be re-modified at any upgrade

Cheers
Andrea

==

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
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
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