[Gdal-dev] Tool to convert shapefile from [-180, 180] to [0, 360] range

Frank Warmerdam warmerdam at pobox.com
Mon Jun 19 08:45:36 EDT 2006


Martin Daly wrote:
>> I also have an extension to WKT for setting this.  I believe you add
>> an entry like EXTENSION["CENTER_LONG",180] as a child of the 
>> GEOGCS node.
>> I would have mentioned this whole issue here sooner, except 
>> that I just
>> know that Martin Daly will now rightly jump all over me for corrupting
>> the standard WKT format.  I must say, I now regret not having 
>> advocated
>> on behalf of a vendor specific extension mechanism in the past. :-)
> 
> As predicted...
> 
> Can you handle any of this with a (standard) FITTED_CS instead of a
> (non-standard) EXTENSION?

Martin,

I have spent a few minutes refamiliarizing myself with the more esoteric
parts of 01-009.  It would be possible in theory to use FITTED_CS with
a custom parameterized transformation.  But this would hugely change
and complicate the internal representation and I can't predict how much
that would mess up parts of GDAL/OGR, much less what would happen if I
ended up trying to write this out for use in another system.

One can hope that extra entries like EXTENSION would just be ignored by
most non-recognizing systems.  But a FITTED_CS would most likely just
cause unsuspecting software to give up.

To be honest, I always pretty much ignored the parts of 01-009 for
describing transformations, including the FITTED_CS.  My highest
aspiration with regard to WKT is to add support for COMPD_CS and
GEOCCS and to handle the AXIS keyword properly.

Best regards,
-- 
---------------------------------------+--------------------------------------
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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list