<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
I haven't been able to get either -wrapdateline or -datelineoffset
to alter the coords. As far as I can figure out, the
-wrapdateline option only operates on features that actually
intersect the 180 line, so using it doesn't alter my coords since
mine are only on either side. I'm just trying to shift any polys
<-180 to be have long +360. Here's a sample shape if anybody
wants to take a swing: <a class="moz-txt-link-freetext" href="http://branewright.org/test/test_file.zip">http://branewright.org/test/test_file.zip</a><br>
<br>
Robb<br>
<br>
On 11/18/13 12:50 PM, Frank Warmerdam wrote:<br>
</div>
<blockquote
cite="mid:CA+YzLBeoUBpX3C=8+6QPRj0R8EQFTKwdyT6p9HpcrOREV4yRCA@mail.gmail.com"
type="cite">
<div dir="ltr">Robb,
<div><br>
</div>
<div>Have you tried the -wrapdateline switch? I do not believe
geometries that cross the dateline will be handled ideally
(they aren't split as one might hope), but if you don't have
them then the rest of the geometries should be wrapped. I see
there is even now a -datelineoffset switch if someone needed 0
to 360.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Frank</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Nov 18, 2013 at 8:36 AM, Robb
K. Wright <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:robbkwright@gmail.com" target="_blank">robbkwright@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I need to use ogr2ogr (or any other command line) to convert
a shapefile with longitudes spanning from -220 to -60,
forcing it into a +-180 scheme, so the -220 coordinate would
come out as +140 and the -60 stays as -60. I don't need to
worry about the polys that actually cross the 180 line.<br>
<br>
Any thoughts? I was thinking that running it through
EPSG:4326 would reshape it (as it does in Esri-land), but no
luck.<br>
<br>
Robb<br>
<br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a
moz-do-not-send="true" href="mailto:warmerdam@pobox.com"
target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a
moz-do-not-send="true" href="http://pobox.com/%7Ewarmerdam"
target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Software
Developer<br>
</div>
</blockquote>
<br>
<br>
</body>
</html>