1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From 16c29550d999fd10286d5139fb407d2421d15ee9 Mon Sep 17 00:00:00 2001
From: systemed <richard@systemeD.net>
Date: Mon, 9 Feb 2026 18:43:33 +0000
Subject: Fix GeoJSON string reading
---
src/geojson_processor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/geojson_processor.cpp b/src/geojson_processor.cpp
index 6a55751..9cb0ddf 100644
--- a/src/geojson_processor.cpp
+++ b/src/geojson_processor.cpp
@@ -261,7 +261,7 @@ AttributeIndex GeoJSONProcessor::readProperties(const rapidjson::Value &pr, bool
std::string key = it->name.GetString();
if (!layer.useColumn(key)) continue;
if (it->value.IsString()) {
- attributeStore.addAttribute(attributes, key, it->value.GetString(), 0);
+ attributeStore.addAttribute(attributes, key, static_cast<const std::string&>(it->value.GetString()), 0);
layer.attributeMap[key] = 0;
} else if (it->value.IsBool()) {
attributeStore.addAttribute(attributes, key, it->value.GetBool(), 0);
--
2.47.3
|