[Geoserver-users] NullPointerException with ContrastEnhancement

2024-04-12 Thread Stefan Ziegler
Hi

I try to apply some contrast enhancement to a geotiff file but I get some
null pointer exceptions. This happens with GeoServer 2.24.2 and 2.25.0. Any
idea what goes wrong? Perhaps not a supported compression or something
similar? The sld works without the ContrastEnhancement section or without
the ColorMap. Thanks.

Stefan

sld:

  rule1
  Opaque Raster
  A raster with 100% opacity
  
1.0

  
  
  


  
StretchToMinimumMaximum
50
100
  

  


gdalinfo:

Data axis to CRS axis mapping: 1,2
Origin = (2592000.000,1262000.000)
Pixel Size = (0.500,-0.500)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=DEFLATE
  INTERLEAVE=BAND
  LAYOUT=COG
  PREDICTOR=3
Corner Coordinates:
Upper Left  ( 2592000.000, 1262000.000) (  7d20' 0.15"E, 47d30'36.32"N)
Lower Left  ( 2592000.000, 1213000.000) (  7d20' 3.30"E, 47d 4' 9.51"N)
Upper Right ( 2645000.000, 1262000.000) (  8d 2'13.18"E, 47d30'30.94"N)
Lower Right ( 2645000.000, 1213000.000) (  8d 1'55.48"E, 47d 4' 4.17"N)
Center  ( 2618500.000, 1237500.000) (  7d41' 3.03"E, 47d17'22.18"N)
Band 1 Block=512x512 Type=Float32, ColorInterp=Gray
  Overviews: 53000x49000, 26500x24500, 13250x12250, 6625x6125, 3312x3062,
1656x1531, 828x765, 414x382

exception:

12 Apr 18:11:31 ERROR  [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
at
org.geoserver.wms.map.RenderedImageTimeDecorator.getData(RenderedImageTimeDecorator.java:129)
at
it.geosolutions.imageio.plugins.png.ScanlineProviderFactory.getProvider(ScanlineProviderFactory.java:54)
at
it.geosolutions.imageio.plugins.png.PNGWriter.isScanlineSupported(PNGWriter.java:128)
at org.geoserver.wms.map.png.PNGJWriter.writePNG(PNGJWriter.java:34)
at
org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:101)
at
org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:110)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:1018)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
___
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] [EXTERN!]: LOG4J Version in GeoServer

2022-01-10 Thread Stefan Ziegler
There is now a fork of log4j named reload4j: https://reload4j.qos.ch/ It is a 
drop-in replacement and the project aims to fix the most urgent issues.

Stefan


From: Ron Lindhoudt via Geoserver-users 
Sent: Monday, January 10, 2022 5:34 PM
To: geoserver-users@lists.sourceforge.net; Mark Prins
Subject: Re: [Geoserver-users] [EXTERN!]: LOG4J Version in GeoServer

Our customers are demanding to support the latest version of log4j in 
Geoserver, I mean the latest 2.* without vulnerabilities because log4j 1.* is 
EOL.
On the Geoserver website I found this (13-12-2021):

We are also aware that Log4J 1.2.17 is an “End Of Life” (EOL) project, and are 
actively looking for funding to perform an upgrade to more recent versions of 
them. All new logging libraries have a different API and a different 
configuration file layout, with potential backwards compatibility issues, so 
this will be likely done on newer versions of GeoServer (2.21.x).

What is the status at this moment?

Thanks,
Ron
On Monday, 20 December 2021, 11:38:54 CET, Mark Prins  
wrote:


On 19-12-2021 11:11, Michael Steigemann via Geoserver-users wrote:
> Hello!
> Thank you very much for providing the geoserver.war:
> log4j-1.2.17.norce.jar.
> I have integrated into geoserver and ran a OWASP dependency check (
> https://jeremylong.github.io/DependencyCheck/dependency-check-cli/index.html
> )
>
> The library is still classified as critical:
> geoserver.war: log4j-1.2.17.norce.jar
> cpe:2.3:a:apache:log4j:1.2.17:*:*:*:*:*:*:*
> pkg:maven/log4j/log4j@1.2.17-norceCRITICAL
> 2Highest27
>
> Do you think it is possible and a good idea to register the library as
> "safe" in the central database?

No, this is not a new release but the same release with some files
removed and a way of preventing people from shooting themselves in the
foot because they can no longer configure the culprit appenders.

After inspection of the new jar file you can add a suppression for false
positives like





^log4j:log4j:1\.2\.17$
CVE-2019-17571
CVE-2020-9488
CVE-2021-4104






___
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] Footprints (location) with Image Pyramid

2019-07-01 Thread Stefan Ziegler
Answering myself: The footprint files belong to the same folder where the
raster files are stored.

Stefan

On Mon, Jul 1, 2019 at 4:38 PM Stefan Ziegler 
wrote:

> Hi
>
> I'm struggling using a footprints shapefile with some raster files
> published as image mosaic. I created a footprints.shp with gdaltindex. The
> footprints.shp has one attribute called "location". The value of location
> is the raster file name, e.g. "2593_1226.tif".
>
> In which directory has this footprints.shp to be stored? The layer
> directory in the data dir?
>
> As far as I understand the documentation I do not need a
> footprints.properties file?
>
> Since It's not working, can I see some log output? I tried geootools
> develop profile, but couldn't spot any footprints specific output in the
> logfile?
>
> Thanks for any hints.
> Stefan
>
>
>
___
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] Footprints (location) with Image Pyramid

2019-07-01 Thread Stefan Ziegler
Hi

I'm struggling using a footprints shapefile with some raster files
published as image mosaic. I created a footprints.shp with gdaltindex. The
footprints.shp has one attribute called "location". The value of location
is the raster file name, e.g. "2593_1226.tif".

In which directory has this footprints.shp to be stored? The layer
directory in the data dir?

As far as I understand the documentation I do not need a
footprints.properties file?

Since It's not working, can I see some log output? I tried geootools
develop profile, but couldn't spot any footprints specific output in the
logfile?

Thanks for any hints.
Stefan
___
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] WMS raster rendering interpolation quality

2019-06-26 Thread Stefan Ziegler
Hi

Geoserver offers three options for raster rendering: nearest neighbor,
bilinear, bicubic. I made some tests with a single band (black and white)
geotiff with internal overviews.

Nearest neighbor: Rendering when zoomed out is as expected not very nice.
https://drive.google.com/file/d/18MXxA67lmfJFOmM_7qtRf9XUPploSamS/view?usp=sharing

Bilinear: It looks like nearest neighbor when zoomed out (which irritates
me a bit).
https://drive.google.com/file/d/1lGSxUC4VNEi5NpVoV7Q1Ury2vif3tf5I/view?usp=sharing

Bicubic: This is where i get black dots when zoomed out
https://drive.google.com/file/d/1iODH8-gEGGhBNfckQZ7XnXMnqyZDSVGW/view?usp=sharing

When I use the image pyramid plugin to publish the file and preprocess the
file with gdal_retile I get much better rendering results with all three
methods. Bicubic example:
https://drive.google.com/file/d/1Fjml6_FckcuGSVwdRglT30HhzLe_BWaT/view?usp=sharing

Is there a way to achieve the same rendering quality without preprocessing
the data (or using the image pyramid plugin respectively)?

Original file can be found here:
https://drive.google.com/file/d/19pG6ZCuq1V1WTCr8lb3bMqWCwaBWd2aT/view?usp=sharing

best regards
Stefan
___
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