Skip to content

Commit 03c6460

Browse files
committed
Merge branch 'develop' of https://github.com/davidfrantz/force into develop
2 parents 771c5ab + 8ee7396 commit 03c6460

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aux-level/_stratified-sample.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ OGRGeometryH point;
221221
if ((col_count = find_table_col(&sample_size, "count")) < 0){
222222
printf("could not find column name %s in file-sample-size\n", "count"); exit(FAILURE);}
223223

224+
if (col_size == col_class || col_size == col_count){
225+
printf("third column name cannot be class or count\n"); exit(FAILURE);}
226+
224227
#ifdef FORCE_DEBUG
225228
print_table(&sample_size, false, false);
226229
printf("column %s in column %d\n", "class", col_class);

0 commit comments

Comments
 (0)