Re: [gdal-dev] Best vector driver?

2017-02-16 Thread Even Rouault
On jeudi 16 février 2017 08:44:22 CET Kurt Schwehr wrote: > Even, > > If a format can have a combination of point, lines, and polygons in a > layer, should the layer class set wkbGeometryCollection? No it shoud return wkbUnknown. wkbGeometryCollection is for geometries whose WKT is like GEOMETR

Re: [gdal-dev] Best vector driver?

2017-02-16 Thread Kurt Schwehr
Even, If a format can have a combination of point, lines, and polygons in a layer, should the layer class set wkbGeometryCollection? And if so, does that imply Z is okay or not okay? I see there is also wkbGeometryCollectionM and wkbGeometryCollectionZM, but no wkbGeometryCollectionZ. And I see

Re: [gdal-dev] Best vector driver?

2017-02-16 Thread Kurt Schwehr
Mateusz, I have been meaning to write up a new RFC for the switch to C++11 as a minimum in January and then the flu caught up with me. I will try to do that in the next week or two. And I really appreciate all folks who commented on that thread. In my opinion, RFC 8 could use a lot of things a

Re: [gdal-dev] Best vector driver?

2017-02-16 Thread Mateusz Loskot
On 15 February 2017 at 17:27, Kurt Schwehr wrote: > > Thanks for the pointers. I will do touchups on the driver tutorial as I go. > [...] > What's the cleanest way to setup the driver registration? > > Should I be deriving from GDALDataset? Kurt, BTW, I'd have similar or related question. Whic

Re: [gdal-dev] Best vector driver?

2017-02-15 Thread Even Rouault
On mercredi 15 février 2017 08:27:06 CET Kurt Schwehr wrote: > Even, > > Thanks for the pointers. I will do touchups on the driver tutorial as I go. > > Maybe more specifically, with the initial setup of the driver and the > datasource: > > I only see two drivers that use GDALDriver. > > grep

Re: [gdal-dev] Best vector driver?

2017-02-15 Thread Kurt Schwehr
Even, Thanks for the pointers. I will do touchups on the driver tutorial as I go. Maybe more specifically, with the initial setup of the driver and the datasource: I only see two drivers that use GDALDriver. grep class */*.{cpp,h} | grep GDALDriver db2/ogr_db2.h:class OGRDB2Driver : public GDA

Re: [gdal-dev] Best vector driver?

2017-02-15 Thread Even Rouault
On mercredi 15 février 2017 07:19:43 CET Kurt Schwehr wrote: > Hey all, > > What are the top couple vector drivers in terms of being up-to-date w.r.t. > API changes? I'm finally trying to start into adding code and I've got a > couple vector drivers I'd like to write. I've started reading RFC 46