Skip to content

Commit

Permalink
add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jan 19, 2025
1 parent 8c7257e commit 1b0e9d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sfc-sfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ List sfc_unique_sfg_dims_and_types(List sfc) {
class_dim.insert("XYZM");
}

if (!Rf_inherits(item, "sfg"))
stop("object(s) should be of class 'sfg'");

if (Rf_inherits(item, "POINT")) {
class_type.insert("POINT");
continue;
Expand Down

0 comments on commit 1b0e9d8

Please sign in to comment.