Thank you for your reply, I defined the projection exactly as reported in the source data.
I can certainly reproject to LCC with a different ellipsoid and see if the issue persists. Although I am aiming to not distort the source data. On Mon, Jan 30, 2023 at 6:42 AM Rahkonen Jukka < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > > > Have you been thinking if your Proj definition and Geoserver definitions > match exactly? I am not an expert, but this makes me wonder. In > https://proj.org/operations/projections/lcc.html the ellipsoid defaults > to GRS80 but in your WKT you are using a ball, if I understand it right: > DATUM["unknown", > > SPHEROID["Sphere",6371000,0]], > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* Alexander Petkov <green...@gmail.com> > *Lähetetty:* maanantai 30. tammikuuta 2023 15.06 > *Vastaanottaja:* geoserver-users <geoserver-users@lists.sourceforge.net> > *Aihe:* Re: [Geoserver-users] Geotiff in LCC shifted after WMS GetMap > request > > > > Yes: > > > > PROJCS["NDFD", > GEOGCS["GCS_Unknown", > DATUM["unknown", > SPHEROID["Sphere",6371000,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433, > AUTHORITY["EPSG","9122"]]], > PROJECTION["Lambert_Conformal_Conic_2SP"], > PARAMETER["latitude_of_origin",25], > PARAMETER["central_meridian",-95], > PARAMETER["standard_parallel_1",25], > PARAMETER["standard_parallel_2",25], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AXIS["Easting",EAST], > AXIS["Northing",NORTH]] > > > > +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 > > > > On Mon, Jan 30, 2023 at 5:38 AM Rahkonen Jukka < > jukka.rahko...@maanmittauslaitos.fi> wrote: > > 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%7C0c9d4d1cad694ac5519e08db02c2def3%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106808217014077%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FlzDMHQHFNf1quhp4WaXsN5fL0ynS9xkLOSYpE%2B2wz4%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> > 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%7C0c9d4d1cad694ac5519e08db02c2def3%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106808217014077%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=Mu%2BtpmX%2BSqg0fVqKdlbHjnxLG2wTbLtkXgXAb54xMXA%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> > 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%7C0c9d4d1cad694ac5519e08db02c2def3%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106808217014077%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=HkJmOS85SGkM2cHTgKOARV1a9YcPvk3qsbab%2Fr6iyoI%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%7C0c9d4d1cad694ac5519e08db02c2def3%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106808217014077%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=aghorR8domSbj5hzT40JBV5RX7q1CrvIMZRp2y4AQF4%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%7C0c9d4d1cad694ac5519e08db02c2def3%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C1%7C638106808217014077%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=ahZu0IeSr8sQE4vBNt9Sfg7883d5KY5druQZzejr3OU%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