<div dir="ltr">Hi,<div><br></div><div>I am trying to use gdal_grid to interpolate some data and I am having trouble making gdal_grid treat spatial data (WGS84 lat/lon coordinates) as points on a continuous plane.  It seems to be ignoring the dateline so for example values at 45, 179 are not properly interacting with values at 45, -179 and so on.  I'm using the following gdal_grid command:</div>
<div><br></div><div>gdal_grid -l bath bath.vrt bath.tif -outsize 4000 4000 -txe -180 180 -tye -90 90<br></div><div><br></div><div style>bath.vrt contents are as follows:</div><div style><br></div><div style><div><OGRVRTDataSource></div>
<div>    <OGRVRTLayer name="bath"></div><div>    <SrcDataSource>bath.csv</SrcDataSource> </div><div>    <GeometryType>wkbPoint</GeometryType> </div><div>    <GeometryField encoding="PointFromColumns" x="LON" y="LAT" z="DEPTH"/> </div>
<div>    <LayerSRS>WGS84</LayerSRS></div><div>    </OGRVRTLayer></div><div></OGRVRTDataSource></div><div><br></div><div style>bath.csv contents are:  </div><div style><div>LAT, LON, DEPTH</div><div>
0, 0, 3100</div><div>-25, -120, 4200</div><div>35, 150, 5000</div><div>37, 152, 5900</div><div>38, 158, 6900</div><div>-60, 30, 2500</div><div>-62, 29, 2300</div><div>-60, 20, 1200</div><div>-80, -150, 500</div><div>80, 140, 700</div>
<div><br></div><div><br></div><div style>I can see when I plot these values using mapserver that the points near the dateline don't seem to be "wrapping" properly.  Here's the image that I'm creating:</div>
<div style><br></div><div style><a href="http://i1025.photobucket.com/albums/y315/deuce2367/bath_zps7434f8d2.png">http://i1025.photobucket.com/albums/y315/deuce2367/bath_zps7434f8d2.png</a><br></div><div style><br></div><div style>
Embedded link:  <a href="<a href="http://s1025.beta.photobucket.com/user/deuce2367/media/bath_zps7434f8d2.png.html">http://s1025.beta.photobucket.com/user/deuce2367/media/bath_zps7434f8d2.png.html</a>" target="_blank"><img src="<a href="http://i1025.photobucket.com/albums/y315/deuce2367/bath_zps7434f8d2.png">http://i1025.photobucket.com/albums/y315/deuce2367/bath_zps7434f8d2.png</a>" border="0" alt="Photobucket"/></a></div>
<div style><br></div><div style>Any help with this issue is greatly appreciated!!</div><div style><br></div><div style>Thanks,</div><div style><br></div><div style>-Andy Smith</div><div style><br></div><div style><br></div>
<div style><br></div><div style><br></div></div></div><div style><br></div></div>