sempr-tk / sempr

SEMPR - Semantic Environment Mapping, Processing and Reasoning
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

importFromWkt deprectated in GDAL 2.2.3 #23

Closed niniemann closed 6 years ago

niniemann commented 6 years ago
In file included from include/sempr/storage/traits/traits-sqlite.hxx:7:0,
                 from build/odb_gen/Person_odb.h:15,
                 from test/main.cpp:22:
 include/sempr/storage/traits/traits-sqlite-spatial-reference.hxx: In static member function ‘static void odb::sqlite::value_traits<OGRSpatialReference, (odb::sqlite::database_type_id)2u>::set_value(odb::sqlite::value_traits<OGRSpatialReference, (odb::sqlite::database_type_id)2u>::value_type&, const image_type&, std::size_t, bool)’:
 include/sempr/storage/traits/traits-sqlite-spatial-reference.hxx:33:42: warning: ‘OGRErr OGRSpatialReference::importFromWkt(char**)’ is deprecated [-Wdeprecated-declarations]
             spatialref.importFromWkt(&ptr);

Seems like importFromWkt(char **) was finally replaced by importFromWkt(const char **) and importFromWkt(const char*) in GDAL 2.3. So update GDAL? Or remove the dependency to GDAL altogether, as proposed in #19 ?