From e930cd95f3392b44152ae05b4189c65e833adaa3 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 20 Jun 2024 15:40:13 +0200 Subject: Conditionally use GetTZFlag()/SetTZFlag() depending on the GDAL version. OGRFieldDefn: add GetComment() / SetComment() methods were added in OGR 3.8.0, cf. https://github.com/OSGeo/gdal/blob/master/NEWS.md#core-3 . Don't comment out TZ on field definitions. Instead we check the GDAL/OGR version and ignore TZ on field definitions if the OGR version is too old. --- config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.yml') diff --git a/config.yml b/config.yml index d95e663..72a735e 100644 --- a/config.yml +++ b/config.yml @@ -264,7 +264,7 @@ layers: comment: Globalt unik identitet för generaliserat objekt - name: skapad type: DateTime - #tz: local + tz: local comment: Tidpunkt när objektet ändrades - name: lanskod type: Integer @@ -302,7 +302,7 @@ layers: comment: Globalt unik identitet för generaliserat objekt - name: skapad type: DateTime - #tz: local + tz: local comment: Tidpunkt när objektet ändrades - name: kommunkod type: Integer -- cgit v1.2.3