Skip to content

Commit

Permalink
more ifdef -> if fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed May 10, 2023
1 parent 3113ddc commit 57a604a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int main(int argc, char *argv[]) {
// TODO: Instead of iterating through a collection of FeatureBase objects mapping to nexi, we instead want to iterate through HY_HydroLocation objects
geojson::GeoJSON nexus_collection;
if (boost::algorithm::ends_with(nexusDataFile, "gpkg")) {
#ifdef NGEN_WITH_SQLITE3
#if NGEN_WITH_SQLITE3
nexus_collection = geopackage::read(nexusDataFile, "nexus", nexus_subset_ids);
#else
throw std::runtime_error("SQLite3 support required to read GeoPackage files.")
Expand All @@ -278,7 +278,7 @@ int main(int argc, char *argv[]) {
// TODO: Instead of iterating through a collection of FeatureBase objects mapping to catchments, we instead want to iterate through HY_Catchment objects
geojson::GeoJSON catchment_collection;
if (boost::algorithm::ends_with(catchmentDataFile, "gpkg")) {
#ifdef NGEN_WITH_SQLITE3
#if NGEN_WITH_SQLITE3
catchment_collection = geopackage::read(catchmentDataFile, "divides", catchment_subset_ids);
#else
throw std::runtime_error("SQLite3 support required to read GeoPackage files.")
Expand Down

0 comments on commit 57a604a

Please sign in to comment.