Skip to content

Commit 16c2955

Browse files
committed
Fix GeoJSON string reading
1 parent 4343e8f commit 16c2955

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/geojson_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ AttributeIndex GeoJSONProcessor::readProperties(const rapidjson::Value &pr, bool
261261
std::string key = it->name.GetString();
262262
if (!layer.useColumn(key)) continue;
263263
if (it->value.IsString()) {
264-
attributeStore.addAttribute(attributes, key, it->value.GetString(), 0);
264+
attributeStore.addAttribute(attributes, key, static_cast<const std::string&>(it->value.GetString()), 0);
265265
layer.attributeMap[key] = 0;
266266
} else if (it->value.IsBool()) {
267267
attributeStore.addAttribute(attributes, key, it->value.GetBool(), 0);

0 commit comments

Comments
 (0)