|
David Haynes created an issue |
Issue Type: |
|
---|---|
Affects Versions: |
2.7.1 |
Assignee: |
Unassigned |
Attachments: |
glc_dynamic.xml, glc_projected_water.JPG, glc_projected_water_zoom_broken.JPG, glc_projected_water_zoom_broken_v2.JPG, glc_projected_water_zoom_east.JPG, glc_projected_water_zoom.JPG, glc_projected_water_zoom_west.JPG, map.png |
Components: |
Image mosaic JDBC, PostGIS, WMS |
Created: |
02/Oct/15 4:27 PM |
Environment: |
Geoserver 2.7.1 |
Labels: |
SLD |
Priority: |
|
Reporter: |
I seem to be encountering an issue related to raster stores (geoTiff or ImageMosaic JDB) and SLD visualization. Here is my explanation. The geotiff is 33mb so I can not upload this, however if you would like the original file please contact me. I have place screen shots that hopefully clear up the issue. The goal is to make an application that allows the user to visualize a raster dataset by turning pixel values on and off. Currently we are working with the raster dataset GLC2000, which is the landcover classification of the world for the year 2000. We have created an SLD for this dataset that converts the raster to transparent, setting each pixel value opacity to zero. Through the application users can turn on and off raster pixel values like water. We simply update the SLD with the env parameter ‘env=lcwater:1’. Now all of the water is visible on the map. Here is a subset of the SLD we are currently using <FeatureTypeStyle> {env(‘lcprimveg’,0)} " /> {env(‘lcbrdevgrn’,0)} “/> {env(‘lcdecidcl’,0)} " /> {env(‘lcdecidop’,0)} " /> {env(‘lcndlevgrn’,0)} “/> {env(‘lcndldecid’,0)} " /> {env(‘lcmxlftree’,0)} " /> {env(‘lcaqtrfrsh’,0)} " /> {env(‘lcwater’,0)} " /> The problem we are having is that the raster style (SLD) is not working at all map extents. The raster layer has the native SRS set as 4326 and the declared SRS set to 3857. SRS handling is set to project native to declared. The interpolation is set to nearest neighbor and the default SLD is glc_dynamic. I preview the glc_dynamic raster layer through geoserver everything shows up fine, the screen is blank.I add the &env=lcwater:1 parameter and now I see water across the whole map. The only thing visible on the map is water. Preview scale is at 1:279M, rough bbox dimensions are -19144282.29W and 13927505.70963E. Now if I Pan west to -19535201.77042 the entire color legend is now visible on the map. This same error will occur if I pan to far east. If map zoom level goes out further to 1:558M. The error disappears, by some potential artifacts appear around the east and west edges of the map. I pulled the map requests from the log file to determine what was going on. I don’t find any errors. Comparing the two files, I get differences on two lines. However these just look like differences in the bbox request. I am unable to recreate this error using the same raster data set in its native WGS84 projection or if I project it to 3857 and add it as a new data storage. However, this error does appear when I use the geoserver raster projection framework. Request #1 (Initial View, No error) {GSUSER=auser, LCWATER=1} Request #2 (Pan West, with error) FormatOptions = {} {TRANSPARENT=true, BBOX=-19652477.59948021,-16109824.066402005,13575678.192621782,44013591.94330725, VERSION=1.1.1, FORMAT=image/jpeg, SERVICE=WMS, HEIGHT=769, ENV=lcwater:1, REQUEST=GetMap, LAYERS=Shoumith:glc_dynamic, STYLES=Shoumith:glc_dynamic, SRS=EPSG:3857, WIDTH=425} BaseUrl = https://localhost:8080/geoserver/ |
This message was sent by Atlassian JIRA (v7.0.0-OD-07-011#70107-sha1:db940e9) |
|