Hi,

You are using some custom CRS in Geoserver, EPSG:45557. Could you add the WKT 
that you have used for configuring it?

-Jukka Rahkonen-

Lähettäjä: Alexander Petkov <green...@gmail.com>
Lähetetty: maanantai 30. tammikuuta 2023 14.09
Vastaanottaja: geoserver-users <geoserver-users@lists.sourceforge.net>
Aihe: Re: [Geoserver-users] Geotiff in LCC shifted after WMS GetMap request

I upgraded to 2.22.1 (latest at the time of writing).

The problem with the systematic shift of layers in LCC projection persists.

Steps taken to reproduce:
1. Rasterize the states layer (I used the VectorToRaster WPS).
2. Reproject to Lambert Conformal Conic:
gdalwarp -ts 2145 1377 -t_srs '+proj=lcc +lat_0=25 +lon_0=-95 +lat_1=25 
+lat_2=25 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs' states_4326.tif 
states_45557.tif
3. Configure the reprojected raster as a Geotiff store.
4. Make a getMap request:
https://wfas.firenet.gov/geoserver/osm/wms?service=WMS&version=1.1.0&request=GetMap&layers=osm%3Astates_45557,osm:states&bbox=-2973344.8603333654%2C-4525.983623652253%2C2805742.5427372716%2C3061083.104743568&width=768&height=407&srs=EPSG%3A45557&styles=&format=application/openlayers<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwfas.firenet.gov%2Fgeoserver%2Fosm%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Dosm%253Astates_45557%2Cosm%3Astates%26bbox%3D-2973344.8603333654%252C-4525.983623652253%252C2805742.5427372716%252C3061083.104743568%26width%3D768%26height%3D407%26srs%3DEPSG%253A45557%26styles%3D%26format%3Dapplication%2Fopenlayers&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C7f7ad617f40f4cc0971608db02bbc084%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106777639503897%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JK%2B38OSMDa9GgciJuyOmNkJyaE4lrtsfGrtQfGXc7fg%3D&reserved=0>

Upon zoom/pan around the misalignment of the data is visible.

5. Import states_45557.tif as a layer in QGis, and add the WMS layer from Step 
3.  The misalignment is visible in the attached screenshot.

I believe this problem occurs when making a WMS request. If the layers is 
exported wia WCS, it displays fine in QGis.

What advice would you give me to rectify this issue?
Thanks in advance,
Alex

On Tue, Jan 24, 2023 at 12:54 AM Alexander Petkov 
<green...@gmail.com<mailto:green...@gmail.com>> wrote:
I noticed that the misalignment I described above (about a year ago) is also 
present in other coverage layers in Lambert Conformal Conic:
https://wfas.firenet.gov/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=ndfd%3ATemperature,osm:states&bbox=-2764561.134059207%2C-265067.6408074065%2C2683272.815316402%2C3232213.174246306&width=768&height=493&srs=EPSG%3A45558&styles=&format=application/openlayers<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwfas.firenet.gov%2Fgeoserver%2Fwms%3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Dndfd%253ATemperature%2Cosm%3Astates%26bbox%3D-2764561.134059207%252C-265067.6408074065%252C2683272.815316402%252C3232213.174246306%26width%3D768%26height%3D493%26srs%3DEPSG%253A45558%26styles%3D%26format%3Dapplication%2Fopenlayers&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C7f7ad617f40f4cc0971608db02bbc084%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106777639660142%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=orvwmwUSSKzxUriIFZZCWsEb31P%2FlzZrvjONvQWfXSU%3D&reserved=0>

The Geoserver release used is 2.18.5.
I guess a good first step would be to upgrade to latest and test again? Has 
anyone noticed this?

TIA,
Alex

On Wed, Jan 26, 2022 at 6:07 AM Alexander Petkov 
<green...@gmail.com<mailto:green...@gmail.com>> wrote:
Hi,

I have time series data in Geotiff format, which appears shifted after a WMS 
GetMap request.

The data is in Lambert Conformal Conic projection:
https://spatialreference.org/ref/sr-org/6825/<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspatialreference.org%2Fref%2Fsr-org%2F6825%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C7f7ad617f40f4cc0971608db02bbc084%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106777639660142%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TI5Otxc7lqtG4%2BtnAGofpmBMIj4VeXpGXuZRJdAqSWo%3D&reserved=0>

When the raster is overlaid with the states shapefile, the misalignment becomes 
apparent (zoom to the upper boundary of the shapefile):

https://aws.wfas.net/geoserver//wms?service=WMS&version=1.3.0&request=GetMap&layers=test%3Afbx_20210822,osm:states&bbox=-2764474.351%2C-265059.31999999983%2C2683188.584%2C3232111.711&width=768&height=493&srs=EPSG%3A45557&styles=&format=application/openlayers<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Faws.wfas.net%2Fgeoserver%2F%2Fwms%3Fservice%3DWMS%26version%3D1.3.0%26request%3DGetMap%26layers%3Dtest%253Afbx_20210822%2Cosm%3Astates%26bbox%3D-2764474.351%252C-265059.31999999983%252C2683188.584%252C3232111.711%26width%3D768%26height%3D493%26srs%3DEPSG%253A45557%26styles%3D%26format%3Dapplication%2Fopenlayers&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C7f7ad617f40f4cc0971608db02bbc084%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106777639660142%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ksg7KM7sr%2FrGh7VJaB3M5tnyf7ZHmCP0Po7Kuk8cS7M%3D&reserved=0>
Here is a zoomed version captured to illustrate the problem:

https://ibb.co/ZzjTjXS<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibb.co%2FZzjTjXS&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C7f7ad617f40f4cc0971608db02bbc084%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106777639660142%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MoL3TCm0JLaowjgzA%2Fs%2BfRJjwMzFsoLJU%2BdlKVnwzs4%3D&reserved=0>
WCS GetCoverage request serves the data without this shift.
Any ideas  about correcting this?
Thanks in advance!!
Alex
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to