On Mon, May 29, 2017 at 11:39 PM, Nyall Dawson >>>
QgsVectorFileWriter::ogrTypeFromWkbType( QgsWkbTypes::Type type )
>>> {
>>>   type = QgsWkbTypes::dropM( type );
>>
>> It works without that line, can I remove it or there is any reason?
>
> I suspect that's probably a remnant from GDAL < 2.1. I can't see any
> reason to keep it for the newer gdal versions.

Min required is GDAL 2.0, I used:

+#if GDAL_VERSION_NUM < GDAL_COMPUTE_VERSION(2,1,0)
   type = QgsWkbTypes::dropM( type );
+#endif

Radim
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to