Skip to content

Commit

Permalink
map alternative ids for feature linking and index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Nov 6, 2023
1 parent 5cd9f2a commit 1af2edf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/partitionGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@ int main(int argc, char* argv[])
global_nexus_collection->add_feature(feature);
//std::cout<<"Catchment "<<feature->get_id()<<" -> Nexus "<<feature->get_property("toID").as_string()<<std::endl;
}

//Update the feature ids for the combined collection, using the alternative property 'id'
//to map features to their primary id as well as the alternative property
//Do this before linking features so that the alt ids can lookup the correct feature
global_nexus_collection->update_ids("id");
global_nexus_collection->link_features_from_property(nullptr, &link_key);
// make a global network
Network global_network(global_nexus_collection);
Expand Down

0 comments on commit 1af2edf

Please sign in to comment.