<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
Sorry, the above example WMS GetMap URL is incorrect (doh!). The correct one is as follows:<br>
<br>
</span>
<pre style="background-color: rgb(255, 255, 255);"><div style="text-align: left; white-space: pre-wrap; margin: 0px;"><span style="font-size: 12pt; color: rgb(0, 0, 0);"><a href="http://geo/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360" target="_blank" id="OWA31998533-30d1-8566-9db1-e8ed7fb23585" class="OWAAutoLink" data-linkindex="0" data-loopstyle="linkonly" style="margin: 0px;">http://geo.weather.gc.ca./geomet?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360</a></span></div><div style="text-align: left; white-space: pre-wrap; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
</span></div><div class="elementToProof" style="text-align: left; white-space: pre-wrap; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">That'll teach me to always re-read my emails... or not!
Etienne</span></div></pre>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Pelletier,Étienne (ECCC) via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Sent:</b> January 30, 2024 8:45 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> [MapServer-users] Is it possible to wrap GeoJSON over multiple globes when using OGR connection type?</span>
<div> </div>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
We often use single-image requests when generating animations from WMS GetMap images via the use of OpenLayer's ImageWMS source. In many cases, the user may make a request for an image that contains a wrapped globe. In most cases, MapServer is able to handle
these requests correctly but we have noticed an issue with a simple EPSG:4326 GeoJSON.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
See the following request as an example:</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><a href="http://geomet-dev-22.cmc.ec.gc.ca:8020/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360" id="OWA5f3cb5f3-0da7-0b68-3350-c8fbb4b80045" class="OWAAutoLink" shash="W5jq5Av84U3syPTQXdOavjrTFkwWG3YSs0tSsTtygY/YWTyoFOYc/CSEZW4cErrzW7dZf2NGjJ8dEbjh4ubGzH8BMvV6/FXydubnz6IgNMGOPP2E1QoMLK14FPQdInAnYIB9UdvTtRUuFlzMcSMwsor0jskq3GJHORbPWyDJk9M=" originalsrc="http://geomet-dev-22.cmc.ec.gc.ca:8020/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360" data-auth="Verified" data-loopstyle="linkonly">http://geomet-dev-22.cmc.ec.gc.ca:8020/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=RADAR_COVERAGE_RSNO.INV&STYLES=&CRS=EPSG%3A4326&WIDTH=2560&HEIGHT=893&BBOX=-85,-180,85,360</a></span></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The PROJECTION directive in the mapfile is defined as such:</div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">PROJECTION</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "proj=longlat"</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "datum=WGS84"</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "no_defs"</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">END</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">For a similar GeoTIFF with the same projection, adding the lon_wrap=-180 parameter
to the proj4 string does the trick and allows the data to be displayed on these "multi-globe" single-image requests. See the following which image which has the following PROJECTION directive defined:<br>
<br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><a href="https://pasteboard.co/DPK1uNvyEKTd.png" id="OWA580f33ee-4db5-bfa7-867d-40960829235b" class="OWAAutoLink" shash="fxgsKP1138+N4e+2N6l09LRgypU2EOnyp3HVhzLI2hnKPFrB/Ecyed5vbGfudkHbUzRn0mzwy2yw4Yhg/zTHxnKBi5mrmReQMDyaPs+SkalJztkwpG06tXsTdaByTODvPbPHvqxxgInDYdQHUP2pSPgOZVyOq7YBGVH/l9KzVwo=" originalsrc="https://pasteboard.co/DPK1uNvyEKTd.png" data-auth="Verified" data-loopstyle="linkonly">https://pasteboard.co/DPK1uNvyEKTd.png</a></span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">PROJECTION</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "proj=longlat"</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "datum=WGS84"</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "lon_wrap=-180"</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> "no_defs"</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">END</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div style="direction: ltr; text-align: left; margin: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Is this simply not interpreted the same way for OGR
connections? Thanks in advance!<br>
<br>
</span></div>
<div id="x_Signature">
<p style="background-color: white; margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Etienne Pelletier,</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Spécialiste en géomatique / Geomatics Specialist</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Systèmes de données géospatiales et ouvertes</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Geospatial and Open Data Systems</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Service Météorologique du Canada</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Meteorological Service of Canada</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Environnement et Changement Climatique Canada</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);">Environment and Climate Change Canada</span></p>
<p style="text-align: left; background-color: white; margin-top: 0px; margin-bottom: 0px;">
<span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125); background-color: white;">(514)464-6772</span><span style="font-family: "Courier New"; font-size: 12pt; color: rgb(31, 73, 125);"><br>
<a href="mailto:etienne.pelletier@ec.gc.ca" id="OWA2aab0480-f687-9c7b-b6fa-63bb3af361e5" class="OWAAutoLink" data-loopstyle="linkonly" style="margin-top: 0px; margin-bottom: 0px;">etienne.pelletier@ec.gc.ca</a></span></p>
<p style="background-color: white; margin-top: 0px; margin-bottom: 0px;"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> </span></p>
</div>
</body>
</html>