Re: [Geoserver-users] how authkey modules actually should be setup on GeoServer

2019-12-05 Thread Peter Smythe
Hi Deen

You're almost there!  After adding authkey as an Authentication Filter, you
will need to use that filter in a Filter Chain.  So:

Under Security > Authentication > Filter Chains > default, move your
Authkey Filter from Available to Selected, close and save.

For more information see
https://docs.geoserver.org/stable/en/user/community/authkey/index.html

Regards

Peter

On Thu, 5 Dec 2019 at 15:39, Deen  wrote:

> Hello all,
>
> I want to have auth keys module on production server, so I explored it a
> little bit but still quite confused for the setup.
>
> What I did:
>
> 1. Installed authkey extension to GeoServer (2.15.3)
> 2. Added a new authentication filter called *authkey*under web admin
> *Authentication Filters *
> 3. After click synchronize user/group service,  I saw authkey.properties
> genereated in */security/usergroup/default*
> 4. Then I added the service rule with *.*  ROLE_AUTHENTICATED
>
> What I expect:
>
> 1. Without authkey, I should get 401 error
>
> curl -X GET
> '
> http://localhost:8080/geoserver/wms?service=wms=2.0.0=GetCapabilities
> '
>
> 2. With authkey, I should get the correct repsonse
>
> curl -X GET
> '
> http://localhost:8080/geoserver/wms?service=wms=2.0.0=GetCapabilities=
> '
>
> However, with authkey I am getting 401, it only works when I provide basic
> auth.
>
> Any step is missing or wrong to achieve what I expect? Or am I just
> misunderstood how authkey is supposed to work in this case. Thanks in
> advance
>
> Deen
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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
>
___
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] GeoServer Realtime Update of Spatial Data

2019-12-05 Thread Chhorm Chhatra
Dear Olyster,

Thank you so much for your valuable response.

Best regards,
Chhorm Chhatra

On Thu, 5 Dec 2019 at 21:25, Olyster  wrote:

> hi,
>
> If I understood you correctly, you want to update the client when an update
> is made in a shapefile right ?
>
> First, I think you should use a spatial DB to avoid shared access problem.
>
> Second, you have to tell the client when an update has been made. To
> achieve
> this, you have to use server push. You'll have to search on this topic.
>
> If you're using open layers, you have to trigger a map refresh from the
> server (using server push). You'll also have to search on how to achieve
> this.
>
> Good luck
>
>
>
> --
> 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
>
___
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] GeoWebCache estimated number of tiles

2019-12-05 Thread Olyster
Hi,

when using GWC, the number of estimated tiles is different every other time
(with teh exact same parameters each time of course) : 

I get 5 473, 69 930, 5 473, 69 930 and so on ...

Anyone can explain this behavior ?

Thanks



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


[Geoserver-users] GeoWebCache number of tiles vs number of tasks

2019-12-05 Thread Olyster
Hi,

When using GWC, if I use 1 task, the estimated total number of tiles differs
than when using 2 task and so on.

For level 12 only

1 task  : 52 640 
2 tasks : 4 096 
3 tasks : 4 096 
4 tasks : 52 640 
5 tasks : 4 096 
6 tasks : 52 640 
7 tasks : 4 096
8 tasks : 52 640

For level 9 to 12

1 task : 5 473
2 tasks : 69 930
3 tasks : 5 473
4 tasks : 69 930
5 tasks : 5 473
6 tasks : 69 930
7 tasks : 5 473
8 tasks : 69 930

Anybody can explain this behavior ?




--
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] Geoserver endpoints

2019-12-05 Thread Samy Otero
I am using 2.15, a docker container.

On Thu, Dec 5, 2019 at 12:59 PM Vitor Fonseca  wrote:

>
> In my case via browser a GET to that URL works.
>
> Which geoserver version?
>
> Samy Otero  escreveu no dia quinta, 5/12/2019 à(s)
> 17:52:
>
>> Vitor,
>>
>> It looks nothing is missing (I could be overlooking the logs thou).
>>
>> Cheers
>>
>> PS:
>>
>> here is the stack trace:
>>
>> ***
>> From the terminal:
>> ***
>> postgis  | Add rule to pg_hba: 0.0.0.0/0
>> postgis  | Add rule to pg_hba: replication replicator
>> postgis  | Setup master database
>> postgis  | 2019-12-05 17:37:23.332 UTC [25] LOG:  listening on IPv4
>> address "127.0.0.1", port 5432
>> postgis  | psql: could not connect to server: No such file or
>> directory
>> postgis  |  Is the server running locally and accepting
>> postgis  |  connections on Unix domain socket
>> "/var/run/postgresql/.s.PGSQL.5432"?
>> postgis  | 2019-12-05 17:37:23.444 UTC [25] LOG:  listening on Unix
>> socket "/var/run/postgresql/.s.PGSQL.5432"
>> postgis  | 2019-12-05 17:37:23.614 UTC [37] LOG:  database system was
>> shut down at 2019-10-25 14:58:10 UTC
>> postgis  | 2019-12-05 17:37:23.666 UTC [25] LOG:  database system is
>> ready to accept connections
>> postgis  |   List of databases
>> postgis  |Name|  Owner   | Encoding | Collate |  Ctype  |
>> Access privileges
>> postgis  |
>> ---+--+--+-+-+---
>> postgis  |  postgres  | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
>> postgis  |  template0 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
>> =c/postgres  +
>> postgis  ||  |  | | |
>> postgres=CTc/postgres
>> postgis  |  template1 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
>> =c/postgres  +
>> postgis  ||  |  | | |
>> postgres=CTc/postgres
>> postgis  | (3 rows)
>> postgis  |
>> postgis  | postgres ready
>> postgis  | Setup postgres User:Password
>> postgis  | Creating superuser docker
>> postgis  | CREATE ROLE
>> postgis  | Creating replication user replicator
>> postgis  | CREATE ROLE
>> postgis  | Create db gis
>> postgis  | Enabling postgis in the database gis
>> postgis  | CREATE EXTENSION
>> postgis  | Enabling hstore in the database gis
>> postgis  | CREATE EXTENSION
>> postgis  | Enabling postgis_topology in the database gis
>> postgis  | CREATE EXTENSION
>> postgis  | Loading legacy sql
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE FUNCTION
>> postgis  | CREATE OPERATOR CLASS
>> geoserver| 05-Dec-2019 17:37:26.591 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server version:
>>  Apache Tomcat/8.0.53
>> postgis  | ALTER DEFAULT PRIVILEGES
>> geoserver| 05-Dec-2019 17:37:26.594 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server built:
>>  Jun 29 2018 14:42:45 UTC
>> geoserver| 05-Dec-2019 17:37:26.597 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Server number:
>>   8.0.53.0
>> geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
>>   Linux
>> geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
>>  4.15.0-72-generic
>> geoserver| 05-Dec-2019 17:37:26.599 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Architecture:
>>  amd64
>> geoserver| 05-Dec-2019 17:37:26.603 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
>>   /usr/lib/jvm/java-8-openjdk-amd64/jre
>> geoserver| 05-Dec-2019 17:37:26.604 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
>>   1.8.0_181-8u181-b13-1~deb9u1-b13
>> geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
>>  Oracle Corporation
>> geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
>>   /usr/local/tomcat
>> geoserver| 05-Dec-2019 17:37:26.606 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
>>   /usr/local/tomcat
>> geoserver| 05-Dec-2019 17:37:26.607 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument:
>> 

Re: [Geoserver-users] Geoserver endpoints

2019-12-05 Thread Vitor Fonseca
In my case via browser a GET to that URL works.

Which geoserver version?

Samy Otero  escreveu no dia quinta, 5/12/2019 à(s) 17:52:

> Vitor,
>
> It looks nothing is missing (I could be overlooking the logs thou).
>
> Cheers
>
> PS:
>
> here is the stack trace:
>
> ***
> From the terminal:
> ***
> postgis  | Add rule to pg_hba: 0.0.0.0/0
> postgis  | Add rule to pg_hba: replication replicator
> postgis  | Setup master database
> postgis  | 2019-12-05 17:37:23.332 UTC [25] LOG:  listening on IPv4
> address "127.0.0.1", port 5432
> postgis  | psql: could not connect to server: No such file or directory
> postgis  |  Is the server running locally and accepting
> postgis  |  connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
> postgis  | 2019-12-05 17:37:23.444 UTC [25] LOG:  listening on Unix
> socket "/var/run/postgresql/.s.PGSQL.5432"
> postgis  | 2019-12-05 17:37:23.614 UTC [37] LOG:  database system was
> shut down at 2019-10-25 14:58:10 UTC
> postgis  | 2019-12-05 17:37:23.666 UTC [25] LOG:  database system is
> ready to accept connections
> postgis  |   List of databases
> postgis  |Name|  Owner   | Encoding | Collate |  Ctype  |
> Access privileges
> postgis  |
> ---+--+--+-+-+---
> postgis  |  postgres  | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
> postgis  |  template0 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
> =c/postgres  +
> postgis  ||  |  | | |
> postgres=CTc/postgres
> postgis  |  template1 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
> =c/postgres  +
> postgis  ||  |  | | |
> postgres=CTc/postgres
> postgis  | (3 rows)
> postgis  |
> postgis  | postgres ready
> postgis  | Setup postgres User:Password
> postgis  | Creating superuser docker
> postgis  | CREATE ROLE
> postgis  | Creating replication user replicator
> postgis  | CREATE ROLE
> postgis  | Create db gis
> postgis  | Enabling postgis in the database gis
> postgis  | CREATE EXTENSION
> postgis  | Enabling hstore in the database gis
> postgis  | CREATE EXTENSION
> postgis  | Enabling postgis_topology in the database gis
> postgis  | CREATE EXTENSION
> postgis  | Loading legacy sql
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE FUNCTION
> postgis  | CREATE OPERATOR CLASS
> geoserver| 05-Dec-2019 17:37:26.591 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server version:
>  Apache Tomcat/8.0.53
> postgis  | ALTER DEFAULT PRIVILEGES
> geoserver| 05-Dec-2019 17:37:26.594 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server built:
>  Jun 29 2018 14:42:45 UTC
> geoserver| 05-Dec-2019 17:37:26.597 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server number:
>   8.0.53.0
> geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
>   Linux
> geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
>  4.15.0-72-generic
> geoserver| 05-Dec-2019 17:37:26.599 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Architecture:
>  amd64
> geoserver| 05-Dec-2019 17:37:26.603 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
>   /usr/lib/jvm/java-8-openjdk-amd64/jre
> geoserver| 05-Dec-2019 17:37:26.604 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
>   1.8.0_181-8u181-b13-1~deb9u1-b13
> geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
>  Oracle Corporation
> geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
>   /usr/local/tomcat
> geoserver| 05-Dec-2019 17:37:26.606 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
>   /usr/local/tomcat
> geoserver| 05-Dec-2019 17:37:26.607 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
> geoserver| 05-Dec-2019 17:37:26.608 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> 

Re: [Geoserver-users] Geoserver endpoints

2019-12-05 Thread Samy Otero
Vitor,

It looks nothing is missing (I could be overlooking the logs thou).

Cheers

PS:

here is the stack trace:

***
>From the terminal:
***
postgis  | Add rule to pg_hba: 0.0.0.0/0
postgis  | Add rule to pg_hba: replication replicator
postgis  | Setup master database
postgis  | 2019-12-05 17:37:23.332 UTC [25] LOG:  listening on IPv4
address "127.0.0.1", port 5432
postgis  | psql: could not connect to server: No such file or directory
postgis  |  Is the server running locally and accepting
postgis  |  connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.5432"?
postgis  | 2019-12-05 17:37:23.444 UTC [25] LOG:  listening on Unix
socket "/var/run/postgresql/.s.PGSQL.5432"
postgis  | 2019-12-05 17:37:23.614 UTC [37] LOG:  database system was
shut down at 2019-10-25 14:58:10 UTC
postgis  | 2019-12-05 17:37:23.666 UTC [25] LOG:  database system is
ready to accept connections
postgis  |   List of databases
postgis  |Name|  Owner   | Encoding | Collate |  Ctype  |
Access privileges
postgis  |
---+--+--+-+-+---
postgis  |  postgres  | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
postgis  |  template0 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
=c/postgres  +
postgis  ||  |  | | |
postgres=CTc/postgres
postgis  |  template1 | postgres | UTF8 | C.UTF-8 | C.UTF-8 |
=c/postgres  +
postgis  ||  |  | | |
postgres=CTc/postgres
postgis  | (3 rows)
postgis  |
postgis  | postgres ready
postgis  | Setup postgres User:Password
postgis  | Creating superuser docker
postgis  | CREATE ROLE
postgis  | Creating replication user replicator
postgis  | CREATE ROLE
postgis  | Create db gis
postgis  | Enabling postgis in the database gis
postgis  | CREATE EXTENSION
postgis  | Enabling hstore in the database gis
postgis  | CREATE EXTENSION
postgis  | Enabling postgis_topology in the database gis
postgis  | CREATE EXTENSION
postgis  | Loading legacy sql
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE FUNCTION
postgis  | CREATE OPERATOR CLASS
geoserver| 05-Dec-2019 17:37:26.591 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version:
 Apache Tomcat/8.0.53
postgis  | ALTER DEFAULT PRIVILEGES
geoserver| 05-Dec-2019 17:37:26.594 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:
 Jun 29 2018 14:42:45 UTC
geoserver| 05-Dec-2019 17:37:26.597 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server number:
  8.0.53.0
geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:
  Linux
geoserver| 05-Dec-2019 17:37:26.598 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
 4.15.0-72-generic
geoserver| 05-Dec-2019 17:37:26.599 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
 amd64
geoserver| 05-Dec-2019 17:37:26.603 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Java Home:
  /usr/lib/jvm/java-8-openjdk-amd64/jre
geoserver| 05-Dec-2019 17:37:26.604 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
  1.8.0_181-8u181-b13-1~deb9u1-b13
geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
 Oracle Corporation
geoserver| 05-Dec-2019 17:37:26.605 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
  /usr/local/tomcat
geoserver| 05-Dec-2019 17:37:26.606 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
  /usr/local/tomcat
geoserver| 05-Dec-2019 17:37:26.607 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
geoserver| 05-Dec-2019 17:37:26.608 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
geoserver| 05-Dec-2019 17:37:26.609 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.awt.headless=true
geoserver| 05-Dec-2019 17:37:26.609 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Xms2G
geoserver| 05-Dec-2019 17:37:26.610 INFO [main]

Re: [Geoserver-users] geoserver: netcdf plugin coverage names empty list issue

2019-12-05 Thread King Wang via Geoserver-users
 Hi Daniele,Thank you very much for the info.Is there a way to 'fix' the issue 
by some forms of conversion or transformation?

King
On Thursday, December 5, 2019, 11:46:37 a.m. EST, Daniele Romagnoli 
 wrote:  
 
 Hi King,I think that your type of dataset isn't supported at the moment, due 
to the presence of 2D non-independent coordinate 
variables.https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html#notes-on-supported-netcdfs
  
Scroll down that paragraph to the 2nd screenshot with ToolsUI. Based on what I 
see from your ncml output that screenshoot looks very similar to your situation.
Regards,Daniele



On Thu, Dec 5, 2019 at 2:43 PM King Wang via Geoserver-users 
 wrote:

Hi all,I am running into an error when trying to create a WMS for a netcdf file 
in GeoServer.The file's ncml is attached at the end of email below.The error 
from the geoserver console is:Could not list layers for this store, an error 
occurred retrieving them: Failed to create reader from 
file://C:\work\netcdf\TSUV.nc and hints Hints: REPOSITORY = 
org.geoserver.catalog.CatalogRepository@24cf7e4b 

But from the server (jetty) log, the trace is:Caused by: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at 
java.lang.String.substring(String.java:1967) at 
org.geotools.imageio.netcdf.NetCDFImageReader.settingTypeNames(NetCDFImageReader.java:561)
 at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:521) 
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:285)

And it thrown from the below NetCDFImageReader.ajav call (geoserver 
2.16.x)StringBuilder builder = new StringBuilder();
for (Name coverage : coverages) {

builder.append(ancillaryFileManager.getTypeName(coverage.getLocalPart())).append(",");
}
String typeNames = builder.toString();
typeNames = typeNames.substring(0, typeNames.length() - 1);
I am using geoserver 2.16 with netcdf plugin. From the debugger, I see the real 
issue is that the coverage name list is null, and therefore the substring() 
call fails with index out of rage error. Then I find that the following 
call:AncillaryFileManager.getCoveragesNames() call return the empty coverage 
name list,  Does anyone know how to address this error?  What exactly the 
coverage is and how to fix it? Again I have the ncml attached right below. (the 
nc file is over 1GB with data, not attached). Also the file is generated 
following GDT convention. Does GS netcdf plugin support GDT?
http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2; 
location="C:/work/netcdf/TSUV.nc">    
      
        
              
                    
  
                                                  
Thanks,King___
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



-- 
Regards,Daniele Romagnoli==GeoServer Professional Services from the experts! 
Visit http://goo.gl/it488V for more information.==
Ing. Daniele RomagnoliSenior Software Engineer
GeoSolutions S.A.S.Via di Montramito 3/A55054  Massarosa (LU)Italyphone: +39 
0584 962313fax:      +39 0584 1660272
http://www.geo-solutions.ithttp://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, 

Re: [Geoserver-users] Geoserver endpoints

2019-12-05 Thread Vitor Fonseca
check geoserver log's (after restart) for missing jar's maybe...

Samy Otero  escreveu no dia quinta, 5/12/2019 à(s) 16:01:

> Thanks, Vitor,
>
> I am using this (
> https://docs.geoserver.org/latest/en/api/#/latest/en/api/1.0.0/usergroup.yaml
> ) as reference.
>
> I switch to the new url you provided, and now I am getting this error in
> the browser:
>
> Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: 
> org/codehaus/stax2/ri/Stax2WriterAdapter
>
>
> and this error in the logs:
>
> 2019-12-05 15:58:01,755 ERROR [geoserver.rest] - Handler dispatch failed; 
> nested exception is java.lang.NoClassDefFoundError: 
> org/codehaus/stax2/ri/Stax2WriterAdapter
> org.springframework.web.util.NestedServletException: Handler dispatch failed; 
> nested exception is java.lang.NoClassDefFoundError: 
> org/codehaus/stax2/ri/Stax2WriterAdapter
> at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1053)
> at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
> at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
> at 
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:890)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> at 
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> at 
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69)
> at 
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:73)
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
> at 
> org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:89)
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
> at org.geoserver.monitor.MonitorFilter.doFilter(MonitorFilter.java:137)
> at 
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
> at 
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> at 
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
> at 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at 
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> at 
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
> at 
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at 
> 

Re: [Geoserver-users] geoserver: netcdf plugin coverage names empty list issue

2019-12-05 Thread Daniele Romagnoli
Hi King,
I think that your type of dataset isn't supported at the moment, due to the
presence of 2D non-independent coordinate variables.
https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html#notes-on-supported-netcdfs

Scroll down that paragraph to the 2nd screenshot with ToolsUI. Based on
what I see from your ncml output that screenshoot looks very similar to
your situation.

Regards,
Daniele




On Thu, Dec 5, 2019 at 2:43 PM King Wang via Geoserver-users <
geoserver-users@lists.sourceforge.net> wrote:

> Hi all,
> I am running into an error when trying to create a WMS for a netcdf file
> in GeoServer.
> The file's ncml is attached at the end of email below.
> The error from the geoserver console is:
> Could not list layers for this store, an error occurred retrieving them:
> Failed to create reader from file://C:\work\netcdf\TSUV.nc and hints Hints:
> REPOSITORY = org.geoserver.catalog.CatalogRepository@24cf7e4b
>
> But from the server (jetty) log, the trace is:
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: -1
> at java.lang.String.substring(String.java:1967)
> at
> org.geotools.imageio.netcdf.NetCDFImageReader.settingTypeNames(NetCDFImageReader.java:561)
> at
> org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:521)
> at
> org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:285)
>
>
> And it thrown from the below NetCDFImageReader.ajav call (geoserver
> 2.16.x)
>
> StringBuilder builder = new StringBuilder();
> for (Name coverage : *coverages*) {
> 
> builder.append(ancillaryFileManager.getTypeName(coverage.getLocalPart())).append(",");
> }
> String typeNames = builder.toString();
> *typeNames = typeNames.substring(0, typeNames.length() - 1);*
>
>
> I am using geoserver 2.16 with netcdf plugin. From the debugger, I see the
> real issue is that the coverage name list is null, and therefore the
> substring() call fails with index out of rage error. Then I find that the
> following call:
>
> AncillaryFileManager.getCoveragesNames() call return the empty coverage name 
> list,
>
> Does anyone know how to address this error?  What exactly the coverage is and 
> how to fix it? Again I have the ncml attached right below. (the nc file is 
> over 1GB with data, not attached). Also the file is generated following GDT 
> convention. Does GS netcdf plugin support GDT?
>
>
> 
> http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2;
> location="C:/work/netcdf/TSUV.nc">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
>   
>   
> 
> 
>   
>   
> 
> 
>   
>   
>   
> 
> 
>   
>   
> 
> 
>   
>   
> 
> 
>   
>   
> 
> 
>   
> 
>
> Thanks,
> King
> ___
> 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
>


-- 
Regards,
Daniele Romagnoli
==
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

---

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 

Re: [Geoserver-users] Geoserver endpoints

2019-12-05 Thread Samy Otero
Thanks, Vitor,

I am using this (
https://docs.geoserver.org/latest/en/api/#/latest/en/api/1.0.0/usergroup.yaml
) as reference.

I switch to the new url you provided, and now I am getting this error in
the browser:

Handler dispatch failed; nested exception is
java.lang.NoClassDefFoundError:
org/codehaus/stax2/ri/Stax2WriterAdapter


and this error in the logs:

2019-12-05 15:58:01,755 ERROR [geoserver.rest] - Handler dispatch
failed; nested exception is java.lang.NoClassDefFoundError:
org/codehaus/stax2/ri/Stax2WriterAdapter
org.springframework.web.util.NestedServletException: Handler dispatch
failed; nested exception is java.lang.NoClassDefFoundError:
org/codehaus/stax2/ri/Stax2WriterAdapter
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1053)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:890)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:73)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
at 
org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:89)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
at org.geoserver.monitor.MonitorFilter.doFilter(MonitorFilter.java:137)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
at 
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
at 
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
at 
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
at 
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
at 
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
at 
org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:51)
at 

Re: [Geoserver-users] Geoserver endpoints

2019-12-05 Thread Vitor Fonseca
Correct URl is
rest/security/usergroup/users

is the documentation wrong?

Samy Otero  escreveu no dia quinta, 5/12/2019 à(s) 15:12:

> Hi all,
>
> I am trying to get a list of users from the rest url (
> http://localhost:8093/geoserver/rest/usergroup/users), but I am getting a
> 404 error message. I check the logs and here is the error (WARN [
> servlet.PageNotFound] - No mapping for GET /geoserver/rest/usergroup/users
> ).
>
> I can confirm other endpoints are working (e.g.:
> http://localhost:8093/geoserver/rest/monitor/requests)
>
> Any idea?
>
> Cheers
>
>
> --
> Samy Otero
>
> *PSD |* Software Developer
>
> www.psdrcs.com
>
> *London |* 148 Fullarton St. 9th floor.
>
> *Burlington |* 5045 South Service Rd.
>
>
>
> ___
> 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
>


-- 

www.vfonsecaz.pt
___
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] Geoserver endpoints

2019-12-05 Thread Samy Otero
Hi all,

I am trying to get a list of users from the rest url (
http://localhost:8093/geoserver/rest/usergroup/users), but I am getting a
404 error message. I check the logs and here is the error (WARN [
servlet.PageNotFound] - No mapping for GET /geoserver/rest/usergroup/users).

I can confirm other endpoints are working (e.g.:
http://localhost:8093/geoserver/rest/monitor/requests)

Any idea?

Cheers


-- 
Samy Otero

*PSD |* Software Developer

www.psdrcs.com

*London |* 148 Fullarton St. 9th floor.

*Burlington |* 5045 South Service Rd.
___
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] GeoServer Realtime Update of Spatial Data

2019-12-05 Thread Olyster
hi,

If I understood you correctly, you want to update the client when an update
is made in a shapefile right ?

First, I think you should use a spatial DB to avoid shared access problem.

Second, you have to tell the client when an update has been made. To achieve
this, you have to use server push. You'll have to search on this topic.

If you're using open layers, you have to trigger a map refresh from the
server (using server push). You'll also have to search on how to achieve
this.

Good luck



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


[Geoserver-users] geoserver: netcdf plugin coverage names empty list issue

2019-12-05 Thread King Wang via Geoserver-users
Hi all,I am running into an error when trying to create a WMS for a netcdf file 
in GeoServer.The file's ncml is attached at the end of email below.The error 
from the geoserver console is:Could not list layers for this store, an error 
occurred retrieving them: Failed to create reader from 
file://C:\work\netcdf\TSUV.nc and hints Hints: REPOSITORY = 
org.geoserver.catalog.CatalogRepository@24cf7e4b 

But from the server (jetty) log, the trace is:Caused by: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at 
java.lang.String.substring(String.java:1967) at 
org.geotools.imageio.netcdf.NetCDFImageReader.settingTypeNames(NetCDFImageReader.java:561)
 at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:521) 
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:285)

And it thrown from the below NetCDFImageReader.ajav call (geoserver 
2.16.x)StringBuilder builder = new StringBuilder();
for (Name coverage : coverages) {

builder.append(ancillaryFileManager.getTypeName(coverage.getLocalPart())).append(",");
}
String typeNames = builder.toString();
typeNames = typeNames.substring(0, typeNames.length() - 1);
I am using geoserver 2.16 with netcdf plugin. From the debugger, I see the real 
issue is that the coverage name list is null, and therefore the substring() 
call fails with index out of rage error. Then I find that the following 
call:AncillaryFileManager.getCoveragesNames() call return the empty coverage 
name list,  Does anyone know how to address this error?  What exactly the 
coverage is and how to fix it? Again I have the ncml attached right below. (the 
nc file is over 1GB with data, not attached). Also the file is generated 
following GDT convention. Does GS netcdf plugin support GDT?
http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2; 
location="C:/work/netcdf/TSUV.nc">    
      
        
              
                    
  
                                                  
Thanks,King___
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] how authkey modules actually should be setup on GeoServer

2019-12-05 Thread Deen
Hello all,

I want to have auth keys module on production server, so I explored it a
little bit but still quite confused for the setup. 

What I did:

1. Installed authkey extension to GeoServer (2.15.3)
2. Added a new authentication filter called *authkey*under web admin
*Authentication Filters *
3. After click synchronize user/group service,  I saw authkey.properties
genereated in */security/usergroup/default*
4. Then I added the service rule with *.*  ROLE_AUTHENTICATED

What I expect:

1. Without authkey, I should get 401 error

curl -X GET
'http://localhost:8080/geoserver/wms?service=wms=2.0.0=GetCapabilities'

2. With authkey, I should get the correct repsonse

curl -X GET
'http://localhost:8080/geoserver/wms?service=wms=2.0.0=GetCapabilities='

However, with authkey I am getting 401, it only works when I provide basic
auth.

Any step is missing or wrong to achieve what I expect? Or am I just
misunderstood how authkey is supposed to work in this case. Thanks in
advance

Deen


 









--
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] Duplicate element values in app-schema

2019-12-05 Thread Nuno Oliveira
Hi,
if you link on the root element the service name translations by the
foreign key from the table you shared (I guess the ids e4217f80-90b2-
45db-b5fe-c0b604449871, ...) this should work.
You may want to select GEOTOOLS_DEVELOPPER log level and see the
queries that are being send to the database by GEOSERVER.
The values not showing up can be caused by several things:
 * an issue with the database model
 * the database you are using, I guess is PostgreSQL
 * the App-Schema mappings
 * the GML target schema
 * ... an actual bug in App-Schema?
Hope it helps,
Nuno Oliveira
On Wed, 2019-12-04 at 00:50 -0700, lge.geo wrote:
> Hi, many thanks for answer. I have checked links you included, but i
> am afraid It does not help with my problem. I am able to join the
> nested table, but the duplicated values are not show. For example, in
> the output is just one element: service name 2 while I am expecting:
> service name 2 service name 2 service name 2 I suppose that it is
> caused by the same element value (service name 2), even if element
> attributes are different (cz, en, de). Thanks for any idea how to
> solve it. Lange 
> Sent from the GeoServer - User mailing list archive at Nabble.com.
> ___
> 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://w
> ww.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/co
> mm/userlist-guidelines.html
> 
> If you want to request a feature or an improvement, also see this: ht
> tps://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
-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
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

---

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] GeoServer Realtime Update of Spatial Data

2019-12-05 Thread Chhorm Chhatra
Dear Olyster,
Thank you so much for your valuable reply. This is a really big help for me.

If you do not mind, could you clarify the trigger a GetMap function? If we
do it with open-layer, how can we do it?

I am looking forward to your kindness.
Thank you very much in advance.

Best regards,
Chhorm Chhatra

On Tue, 3 Dec 2019 at 20:54, Olyster  wrote:

> Hi,
>
> have considered using a spatial database like PostGres/PostGIS ?
>
> This way, every changes are automatically reflected in Geoserver at the
> next
> operation (zoom, pan)
>
> If you want server push, you would need to trigger a GetMap Request or a
> refresh of the browser and invalidating browser cache on the client as soon
> as a change is done in your source.
>
> Geoserver is unaware of changes made in your data source in real-time.
>
> Thanks
>
>
>
> --
> 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
>
___
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