[gdal-dev] ogr2og / forcing a +-180 system

Frank Warmerdam warmerdam at pobox.com
Mon Nov 18 09:50:50 PST 2013


Robb,

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.

Best regards,
Frank


On Mon, Nov 18, 2013 at 8:36 AM, Robb K. Wright <robbkwright at gmail.com>wrote:

>
> 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.
>
> Any thoughts?  I was thinking that running it through EPSG:4326 would
> reshape it (as it does in Esri-land), but no luck.
>
> Robb
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131118/716c27ad/attachment.html>


More information about the gdal-dev mailing list