[Geoserver-users] Padding set to 0 instead of No Data when reprojecting

I have some Tiff files in EPSG:26915 (UTM 15 N) which I am requesting via WMS in EPSG:4326 to display on a map.

When the image is reprojected, it is rotated and the padding area added to make the image rectangular again has its value set to 0 instead of to the No Data value.

Since my image also has actual values of 0, this means that the new padding which should be set to No Data (and rendered transparent) is instead rendered with a color as though it had data.

This screenshot makes it clear what I mean: Screenshot: http://s31.postimg.org/5f96rqvi3/what_am_i_doing_wrong.png

Has anyone seen this? Am I doing something wrong? I tried searching, but I might not be describing it correctly in my searches. The best I could do was this 7 year old GDAL ticket: https://trac.osgeo.org/gdal/ticket/2724

Thanks,
Michael

Other info that might be relavant:

GeoServer Build Information

Version 2.8.3
Git Revision 1c8c9ba0f74a465c397d46cf19d3b34b95b2fb6e
Build Date 22-Mar-2016 21:12
GeoTools Version 14.3 (rev 2298d56000bef6f526b521a480316ea544c74571)
GeoWebCache Version 1.8.2 (rev 1.8.x/442d5127d1a01942f4c04c8140ade4c4538bb16d)

This is running on Windows Server 2012 (64 bit), but running 32 bit GeoServer and 32 bit java.

My WMS request looks like this:

http://MyServer/geoserver/rabaey-fred/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&LAYERS=myLayer&STYLES=rainbowstatic&SRS=EPSG:4326&WIDTH=331&HEIGHT=769&BBOX=MyBBox

The GeoServer log for that request looks like this:

2016-04-22 09:34:37,549 INFO [geoserver.wms] -
Request: getMap
Filters = null
BgColor = java.awt.Color[r=255,g=255,b=255]
SRS = EPSG:4326
Tiled = false
Palette = null
FeatureVersion = null
Styles = [StyleImpl[ name=rainbowstatic]]
Layers = [org.geoserver.wms.MapLayerInfo@anonymised.com]
MaxFeatures = null
Angle = 0.0
Crs = GEOGCS[“WGS 84”,
DATUM[“World Geodetic System 1984”,
SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]],
AUTHORITY[“EPSG”,“6326”]],
PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”, 0.017453292519943295],
AXIS[“Geodetic longitude”, EAST],
AXIS[“Geodetic latitude”, NORTH],
AUTHORITY[“EPSG”,“4326”]]
Bbox = SRSEnvelope[MyBbox]
Env = {}
StartIndex = null
CQLFilter = null
RemoteOwsURL = null
ViewParams = null
FormatOptions = {}
FeatureId = null
RemoteOwsType = null
Elevation =
Sld = null
ValidateSchema = false
Interpolations =
Transparent = true
StyleFormat = sld
StyleUrl = null
SldBody = null
TilesOrigin = null
Exceptions = SE_XML
StyleVersion = null
SldVersion = null
StyleBody = null
ScaleMethod = null
Time =
Height = 769
Width = 331
Format = image/png8
Buffer = 0
Filter = null
Request = GetMap
BaseUrl = http://MyServer/geoserver/
RawKvp = {REQUEST=GetMap, FORMAT=image/png8, SRS=EPSG:4326, BBOX=MyBBox, VERSION=1.1.1, STYLES=rainbowstatic, SERVICE=WMS, WIDTH=331, HEIGHT=769, TRANSPARENT=true, LAYERS=MyLayer}
Get = true
RequestCharset = UTF-8
Version = 1.1.1

Gdalinfo reports the following for the source .tiff image:

Driver: GTiff/GeoTIFF
Files: 0-0-62.tiff
Size is 247, 229
Coordinate System is:
PROJCS[“NAD83 / UTM zone 15N”,
GEOGCS[“NAD83”,
DATUM[“North_American_Datum_1983”,
SPHEROID[“GRS 1980”,6378137,298.257222101,
AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[“EPSG”,“6269”]],
PRIMEM[“Greenwich”,0,
AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”,0.0174532925199433,
AUTHORITY[“EPSG”,“9122”]],
AUTHORITY[“EPSG”,“4269”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,-93],
PARAMETER[“scale_factor”,0.9996],
PARAMETER[“false_easting”,500000],
PARAMETER[“false_northing”,0],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AXIS[“Easting”,EAST],
AXIS[“Northing”,NORTH],
AUTHORITY[“EPSG”,“26915”]]
Origin = (myOrigin,myOrigin)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Upper Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Center ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Band 1 Block=247x8 Type=Float32, ColorInterp=Gray
NoData Value=1.701410009187828e+038

Hi Michael,
the problem might have been fixed in GeoServer 2.9.x, can you try out the beta2 release?
It’s the latest we have:
http://blog.geoserver.org/2016/04/22/geoserver-2-9-beta2-released/

Cheers
Andrea

···

On Fri, Apr 22, 2016 at 4:44 PM, Michael Moore <stuporglue@anonymised.com…> wrote:

I have some Tiff files in EPSG:26915 (UTM 15 N) which I am requesting via WMS in EPSG:4326 to display on a map.

When the image is reprojected, it is rotated and the padding area added to make the image rectangular again has its value set to 0 instead of to the No Data value.

Since my image also has actual values of 0, this means that the new padding which should be set to No Data (and rendered transparent) is instead rendered with a color as though it had data.

This screenshot makes it clear what I mean: Screenshot: http://s31.postimg.org/5f96rqvi3/what_am_i_doing_wrong.png

Has anyone seen this? Am I doing something wrong? I tried searching, but I might not be describing it correctly in my searches. The best I could do was this 7 year old GDAL ticket: https://trac.osgeo.org/gdal/ticket/2724

Thanks,
Michael

Other info that might be relavant:

GeoServer Build Information

Version 2.8.3
Git Revision 1c8c9ba0f74a465c397d46cf19d3b34b95b2fb6e
Build Date 22-Mar-2016 21:12
GeoTools Version 14.3 (rev 2298d56000bef6f526b521a480316ea544c74571)
GeoWebCache Version 1.8.2 (rev 1.8.x/442d5127d1a01942f4c04c8140ade4c4538bb16d)

This is running on Windows Server 2012 (64 bit), but running 32 bit GeoServer and 32 bit java.

My WMS request looks like this:

http://MyServer/geoserver/rabaey-fred/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&LAYERS=myLayer&STYLES=rainbowstatic&SRS=EPSG:4326&WIDTH=331&HEIGHT=769&BBOX=MyBBox

The GeoServer log for that request looks like this:

2016-04-22 09:34:37,549 INFO [geoserver.wms] -
Request: getMap
Filters = null
BgColor = java.awt.Color[r=255,g=255,b=255]
SRS = EPSG:4326
Tiled = false
Palette = null
FeatureVersion = null
Styles = [StyleImpl[ name=rainbowstatic]]
Layers = [org.geoserver.wms.MapLayerInfo@anonymised.com]
MaxFeatures = null
Angle = 0.0
Crs = GEOGCS[“WGS 84”,
DATUM[“World Geodetic System 1984”,
SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]],
AUTHORITY[“EPSG”,“6326”]],
PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”, 0.017453292519943295],
AXIS[“Geodetic longitude”, EAST],
AXIS[“Geodetic latitude”, NORTH],
AUTHORITY[“EPSG”,“4326”]]
Bbox = SRSEnvelope[MyBbox]
Env = {}
StartIndex = null
CQLFilter = null
RemoteOwsURL = null
ViewParams = null
FormatOptions = {}
FeatureId = null
RemoteOwsType = null
Elevation =
Sld = null
ValidateSchema = false
Interpolations =
Transparent = true
StyleFormat = sld
StyleUrl = null
SldBody = null
TilesOrigin = null
Exceptions = SE_XML
StyleVersion = null
SldVersion = null
StyleBody = null
ScaleMethod = null
Time =
Height = 769
Width = 331
Format = image/png8
Buffer = 0
Filter = null
Request = GetMap
BaseUrl = http://MyServer/geoserver/
RawKvp = {REQUEST=GetMap, FORMAT=image/png8, SRS=EPSG:4326, BBOX=MyBBox, VERSION=1.1.1, STYLES=rainbowstatic, SERVICE=WMS, WIDTH=331, HEIGHT=769, TRANSPARENT=true, LAYERS=MyLayer}
Get = true
RequestCharset = UTF-8
Version = 1.1.1

Gdalinfo reports the following for the source .tiff image:

Driver: GTiff/GeoTIFF
Files: 0-0-62.tiff
Size is 247, 229
Coordinate System is:
PROJCS[“NAD83 / UTM zone 15N”,
GEOGCS[“NAD83”,
DATUM[“North_American_Datum_1983”,
SPHEROID[“GRS 1980”,6378137,298.257222101,
AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[“EPSG”,“6269”]],
PRIMEM[“Greenwich”,0,
AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”,0.0174532925199433,
AUTHORITY[“EPSG”,“9122”]],
AUTHORITY[“EPSG”,“4269”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,-93],
PARAMETER[“scale_factor”,0.9996],
PARAMETER[“false_easting”,500000],
PARAMETER[“false_northing”,0],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AXIS[“Easting”,EAST],
AXIS[“Northing”,NORTH],
AUTHORITY[“EPSG”,“26915”]]
Origin = (myOrigin,myOrigin)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Upper Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Center ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Band 1 Block=247x8 Type=Float32, ColorInterp=Gray
NoData Value=1.701410009187828e+038


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Will do. Downloading now.

I also found this site: http://www.geo-solutions.it/blog/developers-corner-jai-ext-the-open-source-replacement-for-oracle-jai/

which indicates that “JAI is unable to deal with NoData” – I realized after sending my email that I had forgotten to mention that I do have JAI enabled.

Thanks,
Michael Moore

···

On Fri, Apr 22, 2016 at 10:05 AM, Andrea Aime <andrea.aime@…1107…> wrote:

Hi Michael,
the problem might have been fixed in GeoServer 2.9.x, can you try out the beta2 release?
It’s the latest we have:
http://blog.geoserver.org/2016/04/22/geoserver-2-9-beta2-released/

Cheers
Andrea

On Fri, Apr 22, 2016 at 4:44 PM, Michael Moore <stuporglue@anonymised.com> wrote:

I have some Tiff files in EPSG:26915 (UTM 15 N) which I am requesting via WMS in EPSG:4326 to display on a map.

When the image is reprojected, it is rotated and the padding area added to make the image rectangular again has its value set to 0 instead of to the No Data value.

Since my image also has actual values of 0, this means that the new padding which should be set to No Data (and rendered transparent) is instead rendered with a color as though it had data.

This screenshot makes it clear what I mean: Screenshot: http://s31.postimg.org/5f96rqvi3/what_am_i_doing_wrong.png

Has anyone seen this? Am I doing something wrong? I tried searching, but I might not be describing it correctly in my searches. The best I could do was this 7 year old GDAL ticket: https://trac.osgeo.org/gdal/ticket/2724

Thanks,
Michael

Other info that might be relavant:

GeoServer Build Information

Version 2.8.3
Git Revision 1c8c9ba0f74a465c397d46cf19d3b34b95b2fb6e
Build Date 22-Mar-2016 21:12
GeoTools Version 14.3 (rev 2298d56000bef6f526b521a480316ea544c74571)
GeoWebCache Version 1.8.2 (rev 1.8.x/442d5127d1a01942f4c04c8140ade4c4538bb16d)

This is running on Windows Server 2012 (64 bit), but running 32 bit GeoServer and 32 bit java.

My WMS request looks like this:

http://MyServer/geoserver/rabaey-fred/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/jpeg&TRANSPARENT=true&LAYERS=myLayer&STYLES=rainbowstatic&SRS=EPSG:4326&WIDTH=331&HEIGHT=769&BBOX=MyBBox

The GeoServer log for that request looks like this:

2016-04-22 09:34:37,549 INFO [geoserver.wms] -
Request: getMap
Filters = null
BgColor = java.awt.Color[r=255,g=255,b=255]
SRS = EPSG:4326
Tiled = false
Palette = null
FeatureVersion = null
Styles = [StyleImpl[ name=rainbowstatic]]
Layers = [org.geoserver.wms.MapLayerInfo@anonymised.com]
MaxFeatures = null
Angle = 0.0
Crs = GEOGCS[“WGS 84”,
DATUM[“World Geodetic System 1984”,
SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]],
AUTHORITY[“EPSG”,“6326”]],
PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”, 0.017453292519943295],
AXIS[“Geodetic longitude”, EAST],
AXIS[“Geodetic latitude”, NORTH],
AUTHORITY[“EPSG”,“4326”]]
Bbox = SRSEnvelope[MyBbox]
Env = {}
StartIndex = null
CQLFilter = null
RemoteOwsURL = null
ViewParams = null
FormatOptions = {}
FeatureId = null
RemoteOwsType = null
Elevation =
Sld = null
ValidateSchema = false
Interpolations =
Transparent = true
StyleFormat = sld
StyleUrl = null
SldBody = null
TilesOrigin = null
Exceptions = SE_XML
StyleVersion = null
SldVersion = null
StyleBody = null
ScaleMethod = null
Time =
Height = 769
Width = 331
Format = image/png8
Buffer = 0
Filter = null
Request = GetMap
BaseUrl = http://MyServer/geoserver/
RawKvp = {REQUEST=GetMap, FORMAT=image/png8, SRS=EPSG:4326, BBOX=MyBBox, VERSION=1.1.1, STYLES=rainbowstatic, SERVICE=WMS, WIDTH=331, HEIGHT=769, TRANSPARENT=true, LAYERS=MyLayer}
Get = true
RequestCharset = UTF-8
Version = 1.1.1

Gdalinfo reports the following for the source .tiff image:

Driver: GTiff/GeoTIFF
Files: 0-0-62.tiff
Size is 247, 229
Coordinate System is:
PROJCS[“NAD83 / UTM zone 15N”,
GEOGCS[“NAD83”,
DATUM[“North_American_Datum_1983”,
SPHEROID[“GRS 1980”,6378137,298.257222101,
AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[“EPSG”,“6269”]],
PRIMEM[“Greenwich”,0,
AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”,0.0174532925199433,
AUTHORITY[“EPSG”,“9122”]],
AUTHORITY[“EPSG”,“4269”]],
PROJECTION[“Transverse_Mercator”],
PARAMETER[“latitude_of_origin”,0],
PARAMETER[“central_meridian”,-93],
PARAMETER[“scale_factor”,0.9996],
PARAMETER[“false_easting”,500000],
PARAMETER[“false_northing”,0],
UNIT[“metre”,1,
AUTHORITY[“EPSG”,“9001”]],
AXIS[“Easting”,EAST],
AXIS[“Northing”,NORTH],
AUTHORITY[“EPSG”,“26915”]]
Origin = (myOrigin,myOrigin)
Pixel Size = (3.000000000000000,-3.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Left ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Upper Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Lower Right ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Center ( xxxxxx.xxx, xxxxxx.xxx) ( xxd x’xx.xx"W, xxdxx’xx.xx"N)
Band 1 Block=247x8 Type=Float32, ColorInterp=Gray
NoData Value=1.701410009187828e+038


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


On Fri, Apr 22, 2016 at 5:12 PM, Michael Moore <stuporglue@anonymised.com> wrote:

Will do. Downloading now.

Thanks

I also found this site:
http://www.geo-solutions.it/blog/developers-corner-jai-ext-the-open-source-replacement-for-oracle-jai/

which indicates that "JAI is unable to deal with NoData" -- I realized
after sending my email that I had forgotten to mention that I do have JAI
enabled.

JAI cannot really be avoided, by "jai enabled" do you mean you have native
JAI Installed?
If so, and 2.9-beta2 does not fix the issue, I'd also try to remove native
JAI.

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

On Fri, Apr 22, 2016 at 10:14 AM, Andrea Aime <andrea.aime@anonymised.com>
wrote:

On Fri, Apr 22, 2016 at 5:12 PM, Michael Moore <stuporglue@anonymised.com>
wrote:

Will do. Downloading now.

Thanks

I also found this site:
http://www.geo-solutions.it/blog/developers-corner-jai-ext-the-open-source-replacement-for-oracle-jai/

which indicates that "JAI is unable to deal with NoData" -- I realized
after sending my email that I had forgotten to mention that I do have JAI
enabled.

JAI cannot really be avoided, by "jai enabled" do you mean you have native
JAI Installed?
If so, and 2.9-beta2 does not fix the issue, I'd also try to remove native
JAI.

OK, I tried 2.9-beta2 on both my Mac and on Windows, and I tried it with
and without JAI-EXT and it still doesn't seem to be working quite right.

http://s31.postimg.org/f4dtqsryj/Issue_in_2_9_beta2.png

Without JAI-EXT it renders the same way as before.

With JAI-EXT it seems to convert all of the NoData cells to have a value of
zero too, but only for rendering. GetFeatureInfo requests still return the
appropriate value -- 0 in the zero areas, and 1.701410009187828E38 in the
NoData areas.

With the following test SLD:

                        <sld:ColorMap type="values">
                           <sld:ColorMapEntry color="#000000" label=" "
opacity="1.0" quantity="0"/> <!-- 0 -->
                        </sld:ColorMap>

Both the NoData and 0-value cells are rendered as black.

Any other things I could try?

--
Michael

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Hi Michael,
at this point I’d open a ticket at https://osgeo-org.atlassian.net/projects/GEOS/summary
attaching data, style and request to reproduce the issue

Cheers
Andrea

···

On Fri, Apr 22, 2016 at 10:39 PM, Michael Moore <stuporglue@anonymised.com> wrote:

On Fri, Apr 22, 2016 at 10:14 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

OK, I tried 2.9-beta2 on both my Mac and on Windows, and I tried it with and without JAI-EXT and it still doesn’t seem to be working quite right.

http://s31.postimg.org/f4dtqsryj/Issue_in_2_9_beta2.png

Without JAI-EXT it renders the same way as before.

With JAI-EXT it seems to convert all of the NoData cells to have a value of zero too, but only for rendering. GetFeatureInfo requests still return the appropriate value – 0 in the zero areas, and 1.701410009187828E38 in the NoData areas.

With the following test SLD:

<sld:ColorMap type=“values”>
<sld:ColorMapEntry color=“#000000” label=" " opacity=“1.0” quantity=“0”/>
</sld:ColorMap>

Both the NoData and 0-value cells are rendered as black.

Any other things I could try?


Michael

On Fri, Apr 22, 2016 at 5:12 PM, Michael Moore <stuporglue@anonymised.com> wrote:

Will do. Downloading now.

Thanks

I also found this site: http://www.geo-solutions.it/blog/developers-corner-jai-ext-the-open-source-replacement-for-oracle-jai/

which indicates that “JAI is unable to deal with NoData” – I realized after sending my email that I had forgotten to mention that I do have JAI enabled.

JAI cannot really be avoided, by “jai enabled” do you mean you have native JAI Installed?
If so, and 2.9-beta2 does not fix the issue, I’d also try to remove native JAI.

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.