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

2013-11-19 Thread Brent Wood
omething up with GMT v5, which works in mod360 for longitudes? Brent Wood From: Robb K. Wright To: Frank Warmerdam Cc: gdal dev Sent: Tuesday, November 19, 2013 8:29 AM Subject: Re: [gdal-dev] ogr2og / forcing a +-180 system I haven't been ab

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

2013-11-19 Thread Robb K. Wright
Perfect! The double project fits my needs exactly. Robb On 11/18/13 7:49 PM, Even Rouault wrote: Le lundi 18 novembre 2013 20:29:07, Robb K. Wright a écrit : I haven't been able to get either -wrapdateline or -datelineoffset to alter the coords. As far as I can figure out, the -wrapdatelin

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

2013-11-18 Thread Even Rouault
Le lundi 18 novembre 2013 20:29:07, Robb K. Wright a écrit : > 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 alte

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

2013-11-18 Thread Robb K. Wright
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 tryin

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

2013-11-18 Thread Frank Warmerdam
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 some

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

2013-11-18 Thread Robb K. Wright
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.