<div dir="ltr">Hi Christophe,<div><br></div><div>What do you <i>expect or want</i> to happen with your images?</div><div><br></div><div>Are your 4326 image coordinates in -180° to +180° range (ie. the right longitude is < the left); or do they go past +180°?<br></div><div><br></div><div>3857 is a projected coordinate system, so doesn't have a builtin concept of wrapping. Some clients implement. </div><div>Do you want x values >20037508.34? But they'll only display on the "right" side of the world then (if at all).<br></div><div><br></div><div>The simplest approach is likely to be to do two warp operations, for the left and right parts, ending up with two images — one with left=-20037508.34 and one with right=+20037508.34</div><div><br></div><div>Rob :)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 March 2018 at 15:23, LAVOYE Christophe <span dir="ltr"><<a href="mailto:Christophe.LAVOYE@akka.eu" target="_blank">Christophe.LAVOYE@akka.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FR" link="blue" vlink="purple">
<div class="m_-2576737745888817087WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m using GDAL library in a C# project.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">To reproject some geotiff files i’m calling gdalwarp tool as external process with this command:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<table class="m_-2576737745888817087MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="636" valign="top" style="width:477.3pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal"><span lang="EN-US">gdalwarp.exe -s_srs EPSG:4326 -t_srs EPSG:3857 -dstalpha input.tiff output.tiff</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">All works fine except for data overlapping antimeridian such as the associated tiff file.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I don’t find how fix my problem or if I’m using the correct tool for those kind of data.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<table class="m_-2576737745888817087MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:4.35pt;border-collapse:collapse">
<tbody>
<tr>
<td width="172" style="width:129.0pt;background:white;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center;line-height:115%;page-break-after:avoid;text-autospace:none">
<span style="color:#1f497d"><img width="119" height="91" id="m_-2576737745888817087Image_x0020_1" src="cid:image001.png@01D3B179.7C0D6C50" alt="cid:image003.png@01D1FD34.3B7C8CC0"></span><span style="font-size:12.0pt;line-height:115%;font-family:"Tms Rmn","serif";color:#1f497d"><u></u><u></u></span></p>
</td>
<td width="343" style="width:257.25pt;background:white;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="line-height:115%;page-break-after:avoid;text-autospace:none">
<b><span style="font-family:"Arial","sans-serif";color:#595959">Christophe LAVOYE -
</span></b><i><span style="font-family:"Arial","sans-serif";color:#595959">Analyste</span></i><span style="font-size:12.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#595959">
</span><b><span style="font-family:"Arial","sans-serif";color:#595959"><br>
AKKA Technologies </span></b><span style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#595959">Informatique & Systèmes</span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#595959"><br>
7 boulevard Henri Ziegler – 31700 BLAGNAC<br>
Tél : <a href="tel:+33%205%2036%2025%2015%2040" value="+33536251540" target="_blank">+33 (0)5 36 25 15 40</a><br>
Email : </span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#365f91"><a href="mailto:christophe.lavoye@akka.eu" target="_blank"><span style="color:blue">christophe.lavoye@akka.eu</span></a></span><span style="font-size:8.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#595959"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span><font size="2" face="arial narrow, sans-serif"><p dir="ltr" style="line-height:1.38;margin-top:8pt;margin-bottom:0pt"><span style="color:rgb(51,51,51);white-space:pre-wrap;line-height:1.38">Chief Technology Officer
</span><span style="color:rgb(51,51,51);white-space:pre-wrap;line-height:1.38">Koordinates</span></p><p dir="ltr" style="line-height:1.38;margin-top:8pt;margin-bottom:0pt"><span style="color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"><a href="tel:+44%20759%209873480" target="_blank">+44 759 987 3480</a> / </span><a href="http://koordinates.com/" style="text-decoration:none" target="_blank"><span style="color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">koordinates.com</span></a><span style="color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"> / </span><a href="https://twitter.com/koordinates" style="text-decoration:none" target="_blank"><span style="color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">@koordinates</span></a><span style="color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"> </span></p></font></span></div></div></div></div></div></div></div>
</div>