[Geoserver-users] Raster projections

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

···

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement

···

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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


Jody Garnett

Hello Jody,

Thanks for the reply. I seem to be encountering an issue related to raster projections and SLD visualization. I shall try to explain.

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

Global Landcover Legend dynamic
…Text goes here…

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)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.926155811957313E7 : 1.3966597672528865E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {TRANSPARENT=true, BBOX=-19261558.11957313,-16109824.066402005,13966597.672528865,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/
RequestCharset = UTF-8

Request #2 (Pan West, with error)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.965247759948021E7 : 1.3575678192621782E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {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/
RequestCharset = UTF-8

···

On Sun, Sep 27, 2015 at 4:20 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement


Jody Garnett

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

Hi David,
we likely need data, style and request to reproduce locally, in order to provide any help.
Also, which version of GeoServer are you using?

Cheers
Andrea

···

On Mon, Sep 28, 2015 at 4:31 PM, David Haynes II <dahaynes@anonymised.com…851…> wrote:

Hello Jody,

Thanks for the reply. I seem to be encountering an issue related to raster projections and SLD visualization. I shall try to explain.

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
Title>Global Landcover Legend dynamic
…Text goes here…

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)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.926155811957313E7 : 1.3966597672528865E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {TRANSPARENT=true, BBOX=-19261558.11957313,-16109824.066402005,13966597.672528865,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/
RequestCharset = UTF-8

Request #2 (Pan West, with error)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.965247759948021E7 : 1.3575678192621782E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {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/
RequestCharset = UTF-8



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

On Sun, Sep 27, 2015 at 4:20 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org


Jody Garnett

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.


I will send a google drive invitation to your personal e-mails. I am using geoserver 2.7

···

On Mon, Sep 28, 2015 at 9:45 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi David,
we likely need data, style and request to reproduce locally, in order to provide any help.
Also, which version of GeoServer are you using?

Cheers
Andrea

On Mon, Sep 28, 2015 at 4:31 PM, David Haynes II <dahaynes@anonymised.com> wrote:

Hello Jody,

Thanks for the reply. I seem to be encountering an issue related to raster projections and SLD visualization. I shall try to explain.

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
Title>Global Landcover Legend dynamic
…Text goes here…

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)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.926155811957313E7 : 1.3966597672528865E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {TRANSPARENT=true, BBOX=-19261558.11957313,-16109824.066402005,13966597.672528865,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/
RequestCharset = UTF-8

Request #2 (Pan West, with error)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.965247759948021E7 : 1.3575678192621782E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {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/
RequestCharset = UTF-8



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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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 Sun, Sep 27, 2015 at 4:20 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org


Jody Garnett

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

Hi David,
what do you mean by “I believe you should have all the files that you need. The raster is loaded using the PostgreSQL JDBC connection.”

Are you using the image mosaic JDBC module? Like, data stored in postgis raster?

Cheers
Andrea

···

On Mon, Sep 28, 2015 at 5:30 PM, David Haynes II <dahaynes@anonymised.com> wrote:

I will send a google drive invitation to your personal e-mails. I am using geoserver 2.7

On Mon, Sep 28, 2015 at 9:45 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi David,
we likely need data, style and request to reproduce locally, in order to provide any help.
Also, which version of GeoServer are you using?

Cheers
Andrea

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

On Mon, Sep 28, 2015 at 4:31 PM, David Haynes II <dahaynes@anonymised.com> wrote:

Hello Jody,

Thanks for the reply. I seem to be encountering an issue related to raster projections and SLD visualization. I shall try to explain.

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
Title>Global Landcover Legend dynamic
…Text goes here…

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)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.926155811957313E7 : 1.3966597672528865E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {TRANSPARENT=true, BBOX=-19261558.11957313,-16109824.066402005,13966597.672528865,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/
RequestCharset = UTF-8

Request #2 (Pan West, with error)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.965247759948021E7 : 1.3575678192621782E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {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/
RequestCharset = UTF-8



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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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 Sun, Sep 27, 2015 at 4:20 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org


Jody Garnett

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.


what do you mean by “I believe you should have all the files that you need. The raster is loaded using the PostgreSQL JDBC connection.”

···

On Mon, Sep 28, 2015 at 10:35 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi David,
what do you mean by “I believe you should have all the files that you need. The raster is loaded using the PostgreSQL JDBC connection.”

Are you using the image mosaic JDBC module? Like, data stored in postgis raster?

Cheers
Andrea

On Mon, Sep 28, 2015 at 5:30 PM, David Haynes II <dahaynes@anonymised.com> wrote:

I will send a google drive invitation to your personal e-mails. I am using geoserver 2.7

==
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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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 Mon, Sep 28, 2015 at 9:45 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi David,
we likely need data, style and request to reproduce locally, in order to provide any help.
Also, which version of GeoServer are you using?

Cheers
Andrea

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

On Mon, Sep 28, 2015 at 4:31 PM, David Haynes II <dahaynes@anonymised.com> wrote:

Hello Jody,

Thanks for the reply. I seem to be encountering an issue related to raster projections and SLD visualization. I shall try to explain.

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
Title>Global Landcover Legend dynamic
…Text goes here…

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)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.926155811957313E7 : 1.3966597672528865E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {TRANSPARENT=true, BBOX=-19261558.11957313,-16109824.066402005,13966597.672528865,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/
RequestCharset = UTF-8

Request #2 (Pan West, with error)
AUTHORITY[“EPSG”,“3857”]]
Bbox = SRSEnvelope[-1.965247759948021E7 : 1.3575678192621782E7, -1.6109824066402005E7 : 4.401359194330725E7]
RemoteOwsType = null
RemoteOwsURL = null
Env = {GSUSER=auser, LCWATER=1}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
StartIndex = null
ViewParams = null
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Interpolations =
Filters = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Version = 1.1.1
Request = GetMap
Get = true
RawKvp = {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/
RequestCharset = UTF-8



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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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 Sun, Sep 27, 2015 at 4:20 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

I am not sure I understand you question Dr. Haynes - the blog post is a new feature (rather than an error). The feature has been included in recent GeoServer releases …

For example see 2.6.0 release aouncement

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org


Jody Garnett

On 25 September 2015 at 13:07, David Haynes II <dahaynes@anonymised.com> wrote:

Hello,

I recently ran into this post and I am wondering if this error will be fixed in updated versions of geoserver. http://www.geo-solutions.it/blog/developers-corner-advanced-raster-projection-geoserver/

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org



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

David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
www.terrapop.org

On Mon, Sep 28, 2015 at 5:58 PM, David Haynes II <dahaynes@anonymised.com> wrote:

what do you mean by "I believe you should have all the files that you
need. The raster is loaded using the PostgreSQL JDBC connection."

>> I think I have given you all the files if there is something missing
please let me know. I am using the image mosaic JDBC module. Do you need
that configuration file as well?

The main issue is, I cannot help you if you are using the image mosaic JDBC
module. If the issue can be reproduced with a plain geotiff,
then I can have a look, but you will have to tell me if that's the case
(I'm going to help you in my spare time after all).
If it's image mosaic JDBC specific, Christian is probably the best person
to check what's going on after it.

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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

Ok,
Now I understand what you are asking about. Thank you Andrea, but for now this issue seems to occur when using the image-mosaic JDBDC connection. I will try to reproduce this issue using other data formats.

···

On Mon, Sep 28, 2015 at 11:16 AM, Andrea Aime <andrea.aime@anonymised.com.> wrote:

On Mon, Sep 28, 2015 at 5:58 PM, David Haynes II <dahaynes@anonymised.com> wrote:

what do you mean by “I believe you should have all the files that you need. The raster is loaded using the PostgreSQL JDBC connection.”

I think I have given you all the files if there is something missing please let me know. I am using the image mosaic JDBC module. Do you need that configuration file as well?

The main issue is, I cannot help you if you are using the image mosaic JDBC module. If the issue can be reproduced with a plain geotiff,
then I can have a look, but you will have to tell me if that’s the case (I’m going to help you in my spare time after all).
If it’s image mosaic JDBC specific, Christian is probably the best person to check what’s going on after it.

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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.


David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
612-626-3933
www.terrapop.org