Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bin-optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Nov 1, 2024
2 parents 0123e9b + 120b8f4 commit f3ec6d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flatgeobuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ void readFeature(const FlatGeobuf::Feature *feature, long long feature_sequence_
sv.type = mvt_bool;
uint8_t bool_val;
memcpy(&bool_val, feature->properties()->data() + p_pos + sizeof(uint16_t), sizeof(bool_val));
sv.s = std::to_string(bool_val);
if (bool_val) {
sv.s = "true";
} else {
sv.s = "false";
}
p_pos += sizeof(uint16_t) + sizeof(bool_val);
} else if (col_type == FlatGeobuf::ColumnType_Short) {
sv.type = mvt_sint;
Expand Down

0 comments on commit f3ec6d4

Please sign in to comment.