[gdal-dev] ISO WKB

Mateusz Loskot mateusz at loskot.net
Tue Dec 17 13:53:39 PST 2013


On 17 December 2013 20:16, Dmitriy Baryshnikov <bishop.dev at gmail.com> wrote:
> Hi,
>
> I afraid that we come to situation where:
>
> getGeometryType()
> getIsoGeometryType()
> getRFCGeometryType()
> ...
> getBlahBlahGeometryType()
>
> Why not have only one method and only one enum (as GDAL origin - single
> abstract data model to the calling application for all supported formats).
> I think all ISO specific things should be internal and driver specific. So,
> we will get single GDAL enum of geom types.

I agree with you, in principle, that it's best if abstraction layer actually
makes a common denominator, but it is in this particular case
it is too late (AFAIU what Even says) and single enumeration would
gather plain codes as well as bit flags, leading to further confusion
in interpretation.


Best regards,
-- 
Mateusz  Łoskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list