Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sldProblem with SLD on GeoServerGeoserver - SLD style with aliasesGeoserver returns nullGeoserver SLD with CQLSAXParseException GeoServer SLD errorSLD From QGIS in Geoserver - Displacement errorGeoserver SLD Styling Error with zoomGeowebcache pre-seed creates white and black tilesError When Creating SLDOrdering symbols in GeoServer using SLD with rendering transformations
Is there a korbon needed for conversion?
What is the opposite of 'gravitas'?
Is there a good way to store credentials outside of a password manager?
Sequence of Tenses: Translating the subjunctive
How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?
How can I kill an app using Terminal?
How to pronounce the slash sign
Inappropriate reference requests from Journal reviewers
CREATE opcode: what does it really do?
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Trouble understanding the speech of overseas colleagues
Integer addition + constant, is it a group?
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
Escape a backup date in a file name
Why escape if the_content isnt?
What can we do to stop prior company from asking us questions?
Is expanding the research of a group into machine learning as a PhD student risky?
Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?
Purchasing a ticket for someone else in another country?
How do I go from 300 unfinished/half written blog posts, to published posts?
How to safely derail a train during transit?
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Class Action - which options I have?
How to check is there any negative term in a large list?
Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sld
Problem with SLD on GeoServerGeoserver - SLD style with aliasesGeoserver returns nullGeoserver SLD with CQLSAXParseException GeoServer SLD errorSLD From QGIS in Geoserver - Displacement errorGeoserver SLD Styling Error with zoomGeowebcache pre-seed creates white and black tilesError When Creating SLDOrdering symbols in GeoServer using SLD with rendering transformations
I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.
Here is the SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<name>S1_Polarisation_V1</name>
<UserStyle>
<Title>S1_Polarisation_V1</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-31</VendorOption>
<VendorOption name="maxValue">-9</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Here is a print of gdalinfo of the raster dataset:
$ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
Driver: GTiff/GeoTIFF
Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
Size is 29838, 22566
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646,
AUTHORITY["EPSG","7001"]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","27700"]]
Origin = (361198.731133800232783,334600.354760660964530)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
Min=-86.068 Max=36.300
Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=36.300262451172
STATISTICS_MEAN=-10.272119897872
STATISTICS_MINIMUM=-86.068229675293
STATISTICS_STDDEV=4.0615322980508
Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
Min=-88.151 Max=31.867
Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=31.86660194397
STATISTICS_MEAN=-15.95944476309
STATISTICS_MINIMUM=-88.151100158691
STATISTICS_STDDEV=5.2701868900943
Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.
Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.
Here are some of the errors reported in the geoserver catalina.out log
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.ClassCastException: [[B cannot be cast to [[F
at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: The input argument(s) may not be null.
at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
26 Mar 15:37:12 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.
Is there anything else I can try or should I raise an issue on the Geoserver JIRA?
geoserver sld sentinel-1
add a comment |
I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.
Here is the SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<name>S1_Polarisation_V1</name>
<UserStyle>
<Title>S1_Polarisation_V1</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-31</VendorOption>
<VendorOption name="maxValue">-9</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Here is a print of gdalinfo of the raster dataset:
$ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
Driver: GTiff/GeoTIFF
Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
Size is 29838, 22566
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646,
AUTHORITY["EPSG","7001"]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","27700"]]
Origin = (361198.731133800232783,334600.354760660964530)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
Min=-86.068 Max=36.300
Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=36.300262451172
STATISTICS_MEAN=-10.272119897872
STATISTICS_MINIMUM=-86.068229675293
STATISTICS_STDDEV=4.0615322980508
Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
Min=-88.151 Max=31.867
Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=31.86660194397
STATISTICS_MEAN=-15.95944476309
STATISTICS_MINIMUM=-88.151100158691
STATISTICS_STDDEV=5.2701868900943
Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.
Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.
Here are some of the errors reported in the geoserver catalina.out log
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.ClassCastException: [[B cannot be cast to [[F
at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: The input argument(s) may not be null.
at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
26 Mar 15:37:12 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.
Is there anything else I can try or should I raise an issue on the Geoserver JIRA?
geoserver sld sentinel-1
add a comment |
I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.
Here is the SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<name>S1_Polarisation_V1</name>
<UserStyle>
<Title>S1_Polarisation_V1</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-31</VendorOption>
<VendorOption name="maxValue">-9</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Here is a print of gdalinfo of the raster dataset:
$ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
Driver: GTiff/GeoTIFF
Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
Size is 29838, 22566
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646,
AUTHORITY["EPSG","7001"]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","27700"]]
Origin = (361198.731133800232783,334600.354760660964530)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
Min=-86.068 Max=36.300
Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=36.300262451172
STATISTICS_MEAN=-10.272119897872
STATISTICS_MINIMUM=-86.068229675293
STATISTICS_STDDEV=4.0615322980508
Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
Min=-88.151 Max=31.867
Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=31.86660194397
STATISTICS_MEAN=-15.95944476309
STATISTICS_MINIMUM=-88.151100158691
STATISTICS_STDDEV=5.2701868900943
Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.
Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.
Here are some of the errors reported in the geoserver catalina.out log
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.ClassCastException: [[B cannot be cast to [[F
at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: The input argument(s) may not be null.
at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
26 Mar 15:37:12 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.
Is there anything else I can try or should I raise an issue on the Geoserver JIRA?
geoserver sld sentinel-1
I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.
Here is the SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<name>S1_Polarisation_V1</name>
<UserStyle>
<Title>S1_Polarisation_V1</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-31</VendorOption>
<VendorOption name="maxValue">-9</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Here is a print of gdalinfo of the raster dataset:
$ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
Driver: GTiff/GeoTIFF
Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
Size is 29838, 22566
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646,
AUTHORITY["EPSG","7001"]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","27700"]]
Origin = (361198.731133800232783,334600.354760660964530)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
Min=-86.068 Max=36.300
Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=36.300262451172
STATISTICS_MEAN=-10.272119897872
STATISTICS_MINIMUM=-86.068229675293
STATISTICS_STDDEV=4.0615322980508
Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
Min=-88.151 Max=31.867
Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=31.86660194397
STATISTICS_MEAN=-15.95944476309
STATISTICS_MINIMUM=-88.151100158691
STATISTICS_STDDEV=5.2701868900943
Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.
Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.
Here are some of the errors reported in the geoserver catalina.out log
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.ClassCastException: [[B cannot be cast to [[F
at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: The input argument(s) may not be null.
at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)
Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
26 Mar 15:37:12 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.
Is there anything else I can try or should I raise an issue on the Geoserver JIRA?
geoserver sld sentinel-1
geoserver sld sentinel-1
asked 15 hours ago
SamFranklinSamFranklin
120129
120129
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316838%2fgeoserver-2-15-error-when-rendering-a-geotiff-with-normalize-and-stretchtominimu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316838%2fgeoserver-2-15-error-when-rendering-a-geotiff-with-normalize-and-stretchtominimu%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown