<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">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div class="elementToProof" style="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 class="elementToProof" style="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 class="elementToProof"><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="LPlnk993317">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 class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="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 class="elementToProof"><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 class="elementToProof"><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><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><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><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 class="elementToProof"><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 class="elementToProof"><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 class="elementToProof"><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 class="elementToProof"><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="LPlnk">https://pasteboard.co/DPK1uNvyEKTd.png</a></span></div>
<div class="elementToProof"><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 class="elementToProof"><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="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 class="elementToProof" style="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 class="elementToProof" style="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="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 class="elementToProof" style="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 class="elementToProof" style="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 class="elementToProof" style="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="Signature">
<p style="background-color: white;"><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;"><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;"><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;"><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;"><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;"><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;"><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;"><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;"><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" style="margin-top: 0px; margin-bottom: 0px;">etienne.pelletier@ec.gc.ca</a></span></p>
<p style="background-color: white;"><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>