Re: [Geoserver-users] create wfs extension

2019-06-12 Thread Andrea Aime
On Mon, Jun 3, 2019 at 11:07 AM shyoon  wrote:

> hi.
>
> I want to develop a wfs extension module (create czml format). I do not
> know
> how to get started. Could you help me?
>

Do you need to read a czml or produce it? If read, Brad's answer is on the
spot, otherwise
you'll need to build a new output format, see the
https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/WFSGetFeatureOutputFormat.java
base class and all its subclasses

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] Geotiff hosted Azure Blob Storage to be used as mosaic

2019-06-12 Thread Andrea Aime
On Tue, Jun 11, 2019 at 8:57 AM Guy Doulberg  wrote:

> Hi guys
>
> I am working on a POC using Geoserver.
>
> I have several COGs (cloud optimized Geotiff) stored on azure blob storage
> and accessible via HTTP.
>

> I want to render them in a mosaic store in Geoserver with time granule
> configured.
>
> I already did some steps, but I failed to achieve what I wanted.
> So I will describe what I did so far, but if there is a different way to
> achieve my goal that I missed, I will be more than happy to do so.
>
> I am using geoserver 2.15  and GDAL 2.4
>

Only GeoServer 2.16.x supports GDAL 2.4 officially. GeoServer 2.15.x should
go with 1.9.2, even if there are people that managed
to make it work with 2.x too (but not officially supported)


>
> 1. I installed the imageI/O-ext
> 2. I created a VRT file refering for each Geotiff in azure using /vsicurl/
> 2. I configured the mosaic plugin using these VRT files
> 3. Each of the vrt files has also mask band
>

> The outcome of this was, that I could render the mosaic, but the mask is
> not being respected.
>
> Just for tests, I replaced the VRT file with the GeoTiff it is referring
> to (downloaded to geoserver storage), and I could see the mask is being
> respected. So maybe imageI/O-ext doesn't respect the mask band of a VRT?
>

The GDAL readers have no support for masks yet, it's present at the GDAL
level but not exposed through the Java API
GeoServer is using yet (via imageio-ext). Support is possible but
coding/funding is needed to make that work.



> Since it didn't work I tried to use the footprint configuration, I
> followed the instructions of footprint and added a file name with the
> suffix wkt to each of the vrt files.
>
> The outcome of this was NullPointerException when rendering the tiles (WMS)
>
> Can somone help me understand on which scenario footprint might return
> NullPointerExceptions?
>

The NPE happens when no data could be read from the raster, the real issue
is happening before this trace.

If the masks are internal to the geotiff you might want to try out skipping
the VRTs and using this (community, thus unsupported) plugin
to read directly from the remote site (not sure if it will work on Azure
blobstore, maybe not, but I'll share it for you to try):

https://docs.geoserver.org/latest/en/user/community/s3-geotiff/index.html

Generally speaking, the path you're trying to take needs some development
to work properly, I'd suggest you get in touch with
a commercial support provider: http://geoserver.org/support/

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] Geoserver does not start up again after tomcat-restart

2019-06-12 Thread Andrea Aime
Hi Uwe,
the logs you shared are part of the shutdown and you'll find them in any
case, even when the startup succeeded.
Can you share a full log of a failing startup, from the beginning?

Cheers
Andrea

On Wed, Jun 5, 2019 at 5:09 PM Uwe Seher  wrote:

> Hello group!
> At the moment i have a hard problem. After a restart of my running tomcat8
> the geoserver-application (2.11) did not start up. some other applications
> (geonetwork, jasper) run as good as before. After that i did an update to
> 2.15.1, whicht starts up with a clean data-directory. When i copy my old
> data-dir in the new installation, it does not start up again.
>
> in the catalina-log are the following lines, which i think descripbe the
> error, but i am not able to understand what they want to tell me. Somewhere
> else i found a reference to the encrytion used (
> http://osgeo-org.1560.x6.nabble.com/GeoServer-doesn-t-Start-up-td5268309.html),
> but i wanted to ask  someone before i do something weird. The whole logfile
> can be delievered also.
>
> So please, can someone tell me, what happened here?
>
> Thanks in advance
>
> Uwe Seher
>
> 05-Jun-2019 16:21:35.844 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@437d4b79]) and a value of type
> [org.springframework.security.core.context.SecurityContextImpl] (value
> [org.springframework.security.core.context.SecurityContextImpl@:
> Null authentication]) but failed to remov
> e it when the web application was stopped. Threads are going to be renewed
> over time to try and avoid a probable memory leak.
>
> 05-Jun-2019 16:21:35.858 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run Couldn't create user
> preferences directory. User preferences are unusable.
>
> 05-Jun-2019 16:21:35.859 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run java.io.IOException: No such
> file or directory
>
> 05-Jun-2019 16:21:35.875 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@286a76ba]) and a value of type
> [org.geotools.referencing.operation.projection.TransverseMercator.Provider]
> (value [PROJECTION["Transverse_Mercator"]]) but failed to remove it when
> the web application was stopped. Thr
> eads are going to be renewed over time to try and avoid a probable memory
> leak.
>
> 05-Jun-2019 16:21:35.916 INFO [Finalizer]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [org.geotools.metadata.i18n.Lo
> ggings]. The following stack trace is thrown for debugging purposes as
> well as to attempt to terminate the thread which caused the illegal access.
> ___
> 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, Andrea Aime == 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 anyo

Re: [Geoserver-users] Geoserver does not start up again after tomcat-restart

2019-06-12 Thread Vera Green
That's a good suggestion.  Easier to change the config file than to move
backups back and forth which is what I did.
Vera

On Wed, Jun 12, 2019 at 6:49 PM Humphries, Graham (StateGrowth) <
graham.humphr...@stategrowth.tas.gov.au> wrote:

> Just to add my 2c worth
>
>
>
> Don’t install your data files into the
> /tomcat/webapps/geoserver/data directory. Host your data
> elsewhere on the file system.
>
>
>
> You can change the value for GEOSERVER_DATA_DIR in the web.xml file in
> /tomcat/webapps/geoserver/WEB-INF directory to point to this
> location.
>
>
>
> Eg:
>
>
>
>GEOSERVER_DATA_DIR
>
> /opt/spatial/geoserver/data
>
> 
>
>
>
> This way you can:
>
> · Install your new instance of Geoserver and check that it works.
>
> · Stop Geoserver
>
> · Change the web.xml file as outlined above
>
> · Start Geoserver.
>
>
>
> All your data should now be available
>
>
>
> *From:* Vera Green [mailto:vera.green...@gmail.com]
> *Sent:* Thursday, 13 June 2019 10:02 AM
> *To:* Uwe Seher 
> *Cc:* GeoServer Mailing List List 
> *Subject:* Re: [Geoserver-users] Geoserver does not start up again after
> tomcat-restart
>
>
>
> I have had a similar issue migrating from a much older GeoServer version
> to a new one and my solution was to NOT migrate the data folder in it's
> entirety but instead to migrate only some components.  I won't pretend to
> understand the underlying issue but it fixed it for me.  The components I
> migrated resulted in me having all of the important stuff in the new
> GeoServer version and a running GeoServer. I migrated the following in the
> order specified:
>
>- workspaces
>- security
>- styles
>
> If you want to try this here are the steps:
>
>1.  shut down tomcat
>2. go to your freshly installed data folder
>(your_tomcat/webapps/geoserver/data)
>3. mv -rf fullpath_to_your_backup/workspaces/* workspaces/.
>4. mv -rf fullpath_to_your_backup/security/*  security/.
>5. mv -rf fullpath_to_your_backup/styles/*   styles/.
>6. cd ..
>7. chown -R tomcat:tomcat data
>8. restart tomcat
>
> Hope this helps,
> Vera
>
>
>
> On Wed, Jun 5, 2019 at 9:03 AM Uwe Seher  wrote:
>
> Hello group!
> At the moment i have a hard problem. After a restart of my running tomcat8
> the geoserver-application (2.11) did not start up. some other applications
> (geonetwork, jasper) run as good as before. After that i did an update to
> 2.15.1, whicht starts up with a clean data-directory. When i copy my old
> data-dir in the new installation, it does not start up again.
>
> in the catalina-log are the following lines, which i think descripbe the
> error, but i am not able to understand what they want to tell me. Somewhere
> else i found a reference to the encrytion used (
> http://osgeo-org.1560.x6.nabble.com/GeoServer-doesn-t-Start-up-td5268309.html),
> but i wanted to ask  someone before i do something weird. The whole logfile
> can be delievered also.
>
>
>
> So please, can someone tell me, what happened here?
>
>
>
> Thanks in advance
>
>
>
> Uwe Seher
>
>
>
> 05-Jun-2019 16:21:35.844 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@437d4b79]) and a value of type
> [org.springframework.security.core.context.SecurityContextImpl] (value
> [org.springframework.security.core.context.SecurityContextImpl@:
> Null authentication]) but failed to remov
> e it when the web application was stopped. Threads are going to be renewed
> over time to try and avoid a probable memory leak.
>
> 05-Jun-2019 16:21:35.858 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run Couldn't create user
> preferences directory. User preferences are unusable.
>
> 05-Jun-2019 16:21:35.859 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run java.io.IOException: No such
> file or directory
>
> 05-Jun-2019 16:21:35.875 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@286a76ba]) and a value of type
> [org.geotools.referencing.operation.projection.TransverseMercator.Provider]
> (value [PROJECTION["Transverse_Mercator"]]) but failed to remove it when
> the web application was stopped. Thr
> eads are going to be renewed over time to try and avoid a probable memory
> leak.
>
> 05-Jun-2019 16:21:35.916 INFO [Finalizer]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [org.geotools.metadata.i18n.Lo
> ggings]. The following stack trace is thrown for debugging purposes as
> well as to attempt to terminate the th

Re: [Geoserver-users] Geoserver does not start up again after tomcat-restart

2019-06-12 Thread Humphries, Graham (StateGrowth)
Just to add my 2c worth

Don’t install your data files into the /tomcat/webapps/geoserver/data 
directory. Host your data elsewhere on the file system.

You can change the value for GEOSERVER_DATA_DIR in the web.xml file in 
/tomcat/webapps/geoserver/WEB-INF directory to point to this location.

Eg:
   
   GEOSERVER_DATA_DIR
/opt/spatial/geoserver/data


This way you can:

· Install your new instance of Geoserver and check that it works.

· Stop Geoserver

· Change the web.xml file as outlined above

· Start Geoserver.


All your data should now be available

From: Vera Green [mailto:vera.green...@gmail.com]
Sent: Thursday, 13 June 2019 10:02 AM
To: Uwe Seher 
Cc: GeoServer Mailing List List 
Subject: Re: [Geoserver-users] Geoserver does not start up again after 
tomcat-restart

I have had a similar issue migrating from a much older GeoServer version to a 
new one and my solution was to NOT migrate the data folder in it's entirety but 
instead to migrate only some components.  I won't pretend to understand the 
underlying issue but it fixed it for me.  The components I migrated resulted in 
me having all of the important stuff in the new GeoServer version and a running 
GeoServer. I migrated the following in the order specified:

  *   workspaces
  *   security
  *   styles
If you want to try this here are the steps:

  1.   shut down tomcat
  2.  go to your freshly installed data folder 
(your_tomcat/webapps/geoserver/data)
  3.  mv -rf fullpath_to_your_backup/workspaces/* workspaces/.
  4.  mv -rf fullpath_to_your_backup/security/*  security/.
  5.  mv -rf fullpath_to_your_backup/styles/*   styles/.
  6.  cd ..
  7.  chown -R tomcat:tomcat data
  8.  restart tomcat
Hope this helps,
Vera

On Wed, Jun 5, 2019 at 9:03 AM Uwe Seher 
mailto:uwe.se...@gmail.com>> wrote:
Hello group!
At the moment i have a hard problem. After a restart of my running tomcat8 the 
geoserver-application (2.11) did not start up. some other applications 
(geonetwork, jasper) run as good as before. After that i did an update to 
2.15.1, whicht starts up with a clean data-directory. When i copy my old 
data-dir in the new installation, it does not start up again.
in the catalina-log are the following lines, which i think descripbe the error, 
but i am not able to understand what they want to tell me. Somewhere else i 
found a reference to the encrytion used 
(http://osgeo-org.1560.x6.nabble.com/GeoServer-doesn-t-Start-up-td5268309.html),
 but i wanted to ask  someone before i do something weird. The whole logfile 
can be delievered also.

So please, can someone tell me, what happened here?

Thanks in advance

Uwe Seher

05-Jun-2019 16:21:35.844 SEVERE [localhost-startStop-1] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [geoserver] created a ThreadLocal with key of type 
[java.lang.ThreadLocal] (value [j
ava.lang.ThreadLocal@437d4b79]) and a 
value of type [org.springframework.security.core.context.SecurityContextImpl] 
(value [org.springframework.security.core.context.SecurityContextImpl@: 
Null authentication]) but failed to remov
e it when the web application was stopped. Threads are going to be renewed over 
time to try and avoid a probable memory leak.

05-Jun-2019 16:21:35.858 WARNING [localhost-startStop-1] 
java.util.prefs.FileSystemPreferences$1.run Couldn't create user preferences 
directory. User preferences are unusable.

05-Jun-2019 16:21:35.859 WARNING [localhost-startStop-1] 
java.util.prefs.FileSystemPreferences$1.run java.io.IOException: No such file 
or directory

05-Jun-2019 16:21:35.875 SEVERE [localhost-startStop-1] 
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
The web application [geoserver] created a ThreadLocal with key of type 
[java.lang.ThreadLocal] (value [j
ava.lang.ThreadLocal@286a76ba]) and a 
value of type 
[org.geotools.referencing.operation.projection.TransverseMercator.Provider] 
(value [PROJECTION["Transverse_Mercator"]]) but failed to remove it when the 
web application was stopped. Thr
eads are going to be renewed over time to try and avoid a probable memory leak.

05-Jun-2019 16:21:35.916 INFO [Finalizer] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Illegal access: this web application instance has been stopped already. Could 
not load [org.geotools.metadata.i18n.Lo
ggings]. The following stack trace is thrown for debugging purposes as well as 
to attempt to terminate the thread which caused the illegal access.
___
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/co

Re: [Geoserver-users] Geoserver does not start up again after tomcat-restart

2019-06-12 Thread Vera Green
I have had a similar issue migrating from a much older GeoServer version to
a new one and my solution was to NOT migrate the data folder in it's
entirety but instead to migrate only some components.  I won't pretend to
understand the underlying issue but it fixed it for me.  The components I
migrated resulted in me having all of the important stuff in the new
GeoServer version and a running GeoServer. I migrated the following in the
order specified:

   - workspaces
   - security
   - styles

If you want to try this here are the steps:

   1.  shut down tomcat
   2. go to your freshly installed data folder
   (your_tomcat/webapps/geoserver/data)
   3. mv -rf fullpath_to_your_backup/workspaces/* workspaces/.
   4. mv -rf fullpath_to_your_backup/security/*  security/.
   5. mv -rf fullpath_to_your_backup/styles/*   styles/.
   6. cd ..
   7. chown -R tomcat:tomcat data
   8. restart tomcat

Hope this helps,
Vera

On Wed, Jun 5, 2019 at 9:03 AM Uwe Seher  wrote:

> Hello group!
> At the moment i have a hard problem. After a restart of my running tomcat8
> the geoserver-application (2.11) did not start up. some other applications
> (geonetwork, jasper) run as good as before. After that i did an update to
> 2.15.1, whicht starts up with a clean data-directory. When i copy my old
> data-dir in the new installation, it does not start up again.
>
> in the catalina-log are the following lines, which i think descripbe the
> error, but i am not able to understand what they want to tell me. Somewhere
> else i found a reference to the encrytion used (
> http://osgeo-org.1560.x6.nabble.com/GeoServer-doesn-t-Start-up-td5268309.html),
> but i wanted to ask  someone before i do something weird. The whole logfile
> can be delievered also.
>
> So please, can someone tell me, what happened here?
>
> Thanks in advance
>
> Uwe Seher
>
> 05-Jun-2019 16:21:35.844 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@437d4b79]) and a value of type
> [org.springframework.security.core.context.SecurityContextImpl] (value
> [org.springframework.security.core.context.SecurityContextImpl@:
> Null authentication]) but failed to remov
> e it when the web application was stopped. Threads are going to be renewed
> over time to try and avoid a probable memory leak.
>
> 05-Jun-2019 16:21:35.858 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run Couldn't create user
> preferences directory. User preferences are unusable.
>
> 05-Jun-2019 16:21:35.859 WARNING [localhost-startStop-1]
> java.util.prefs.FileSystemPreferences$1.run java.io.IOException: No such
> file or directory
>
> 05-Jun-2019 16:21:35.875 SEVERE [localhost-startStop-1]
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
> The web application [geoserver] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [j
> ava.lang.ThreadLocal@286a76ba]) and a value of type
> [org.geotools.referencing.operation.projection.TransverseMercator.Provider]
> (value [PROJECTION["Transverse_Mercator"]]) but failed to remove it when
> the web application was stopped. Thr
> eads are going to be renewed over time to try and avoid a probable memory
> leak.
>
> 05-Jun-2019 16:21:35.916 INFO [Finalizer]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [org.geotools.metadata.i18n.Lo
> ggings]. The following stack trace is thrown for debugging purposes as
> well as to attempt to terminate the thread which caused the illegal access.
> ___
> 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-n

Re: [Geoserver-users] Absolute URL paths in clustered Geoserver's settings

2019-06-12 Thread Adam Borczyk
Actually the problem was in proxied headers and I did not think this would
be the case, but I fixed it accidentally doing some other task. Anyway, one
should just add those headers in Nginx:

proxy_set_header Host$host;
proxy_set_header X-Forwarded-For $remote_addr;

Sorry for cluttering here.

Best regards

* Adam Borczyk*

*-GIS Support Sp. z o.o.Dobrzańskiego 3,
Lublin 20-262
tel.
+48 81 451 14 90, NIP: 9462641761*


On Wed, 12 Jun 2019 at 16:57, Adam Borczyk 
wrote:

> Hi everyone!
> I set up a dockerized Geoserver cluster, where I have one Master node and
> multiple Secondary nodes. They share config using JDBCConfig. In front of
> them I have Nginx, that redirects every request in administrative panel to
> "Master node" (with rule that does proxy_pass if path starts with
> "/geoserver/web") and every other requests to "Secondary nodes".
>
> I noticed that in the admin panel of Geoserver, most links are to relative
> URL (in my case it takes "localhost/"), but in some parts they point to
> my Docker container's hostname, eg. with Layer Preview "
> http://geoserver-master:8080/geoserver/nurc/wms.";.
>
> As there is no connectivity straight to the container, this request
> obviously fails. How can I approach this? Do I have to explicitly specify
> Geoserver's hostname? Or maybe there is a way to make it relative like
> "/geoserver/nurc/wms." and resolve automatically through Nginx?
>
> Best regards
>
> * Adam Borczyk*
>
> *-GIS Support Sp. z o.o.Dobrzańskiego 3,
> Lublin 20-262
> tel.
> +48 81 451 14 90, NIP: 9462641761*
>
___
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] Absolute URL paths in clustered Geoserver's settings

2019-06-12 Thread Adam Borczyk
Hi everyone!
I set up a dockerized Geoserver cluster, where I have one Master node and
multiple Secondary nodes. They share config using JDBCConfig. In front of
them I have Nginx, that redirects every request in administrative panel to
"Master node" (with rule that does proxy_pass if path starts with
"/geoserver/web") and every other requests to "Secondary nodes".

I noticed that in the admin panel of Geoserver, most links are to relative
URL (in my case it takes "localhost/"), but in some parts they point to
my Docker container's hostname, eg. with Layer Preview "
http://geoserver-master:8080/geoserver/nurc/wms.";.

As there is no connectivity straight to the container, this request
obviously fails. How can I approach this? Do I have to explicitly specify
Geoserver's hostname? Or maybe there is a way to make it relative like
"/geoserver/nurc/wms." and resolve automatically through Nginx?

Best regards

* Adam Borczyk*

*-GIS Support Sp. z o.o.Dobrzańskiego 3,
Lublin 20-262
tel.
+48 81 451 14 90, NIP: 9462641761*
___
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] NearestNeighbor and GeoWebCache producing bad quality tiles

2019-06-12 Thread Maik1 via Geoserver-users
Have setup GeoServer to work with GeoWebCache. Apparently, I have applied
most of the tweaks for improving performance and quality, but still have
rendering issues when using Nearest Neighbor interpolation or GeoWebCache:

Summarizing, I have:

 - Enabled direct integration with GeoServer WMS, tiled=true..etc
 - Enabled the fullWMS mode, using hints=quality parameter in the URL

I have been using Bicubic interpolation because this produces good results
for basemaps when viewed as WMS. This is what I get when using WMS+Bicubic:
 

However, when using Nearest Neighbor+WMS, a white line pattern shows up. So
lines and labels seem to be "split". This is only a slight change but it
makes the map pretty much unreadable:
 

Now, when moving to GeoWebCache with Bicubic interpolation, I expected to
get the same good results as Bicubic+WMS. However, it turns out that I have
exactly the same rendering issue when using GeoWebCache.

My guess is that I am doing something wrong in the layer setup that
generates the rendering issue both in NearestNeighbor+WMS and
GeoWebCache+whatever interpolation method used.

If possible, I would like to use NearestNeighbor because it requires less
resources. I think that if I can get the rendering issue with
NearestNeighbor sorted, then the results will be good in GeoWebCache as
well. BTW, the rendering issue happens also when using Bilinear method.

Can anybody provide some feedback on what I'm doing wrong with this basemap?



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