diff --git a/DESCRIPTION b/DESCRIPTION index ef2d152..58cc1c7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: sfheaders Type: Package Title: Converts Between R Objects and Simple Feature Objects -Date: 2023-02-25 +Date: 2023-03-02 Version: 0.4.2 Authors@R: c( person("David", "Cooley", ,"david.cooley.au@gmail.com", role = c("aut", "cre")), @@ -18,7 +18,7 @@ RoxygenNote: 7.2.3 SystemRequirements: C++17 Depends: R (>= 3.0.2) LinkingTo: - geometries (>= 0.2.1), + geometries (>= 0.2.2), Rcpp Imports: Rcpp (>= 1.0.10) diff --git a/inst/include/sfheaders/df/sf.hpp b/inst/include/sfheaders/df/sf.hpp index ba3ae78..440728d 100644 --- a/inst/include/sfheaders/df/sf.hpp +++ b/inst/include/sfheaders/df/sf.hpp @@ -77,7 +77,6 @@ namespace df { for( i = 0; i < sfc_df_names.length(); ++i ) { Rcpp::String geom = sfc_df_names[ i ]; - std::find( geometry_columns.begin(), geometry_columns.end(), geom ); is_in = geometries::utils::where_is( geom, geometry_columns ); keep_columns[ i ] = is_in == -1 ? false : true; }