[gdal-dev] Axis Ordering RFC

Martin Chapman mchapman at texelinc.com
Sat Jan 12 17:52:01 EST 2008


Andrey,

Are you guys talking about the parameters in a projection file like
AXIS['Lat',NORTH],AXIS['Long',EAST]?  When you say "axis order awareness" I
was wondering how would that manifest itself in the API? Would it be methods
on the OGRSpatialReference class? I believe it's possible to extract those
values out of the projection string today if I am not mistaken.  How would
the awareness be different from what exists today?  Just curious.

Best regards,

Martin


-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam
Sent: Friday, January 11, 2008 1:00 PM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Axis Ordering RFC

Andrey Kiselev wrote:
> On Thu, Jan 10, 2008 at 05:18:41PM -0500, Frank Warmerdam wrote:
>> Due to issues with GDAL handling of geographic GMLJP2 files (and
>> issues on the horizon with WCS 1.1 support) I'm eager to get "axis
>> order awareness" into GDAL 1.6.0.  I have prepared a preliminary RFC
>> and am currently seeking feedback.
>>
>>   http://trac.osgeo.org/gdal/wiki/rfc20_srs_axes
> 
> That is very good addition and I even know where I will use this new
> functionality. I am +1 on it and only two notes to add:
> 
> 1. SetAxes() should care of Z axis too. It can be overloaded in C++ part
>    of API and have two variants in C bindings (e.g. SetAxes()
>    SetAxesZ()).

Andrey,

Done.  I have not documented the C API bindings in the RFC, but this would
be
the way to do it.  But I should stress that at this time I am not adding any
sort of broad support for the Z axis to be remapped.

> 2. Orientation and axis names should be enumerations instead of plain
>    integers.

Done.  I'm slightly concerned this may make handling via SWIG messier which
is why I used the simple type "int" initially.

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 OSGeo, http://osgeo.org

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list