[postgis-devel] GML3 output signatures
Sandro Santilli
strk at keybit.net
Tue Feb 22 01:43:18 PST 2011
On Tue, Feb 22, 2011 at 10:36:26AM +0100, Olivier Courtin wrote:
>
> On Feb 22, 2011, at 10:06 AM, Sandro Santilli wrote:
>
> >I'm planning to change the gml3 output function signatures
> >to merge the current is_dims and is_degree arguments into
> >a single bitfield, to allow for future expansion of the flags
> >(in particular to add LineString vs. Curve representation [1]).
> >
> >Does anyone have problems with it ?
> >
> >[1] http://trac.osgeo.org/postgis/ticket/816
>
> Naive question, but why do you need to do that ?
> The option parameter (already a bit field) should be enough isnt'it ?
It's a bitfield at the SQL level, which I'll keep.
I'm talking about the liblwgeom level, where you have named
parameters (is_degree, is_dims), so adding any new option would
require changing the signature anyway.
Hopefully switching to a bitfield at the liblwgeom level would avoid
future needs to further change the interface when new options
needs arise.
I'll provide a patch when I'm done.
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the postgis-devel
mailing list