You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2023/01/06 06:47:16 UTC
[sedona] branch rdd-save-geojson updated: For a null value, replace string "null" with empty string
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch rdd-save-geojson
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/rdd-save-geojson by this push:
new cd1b4302 For a null value, replace string "null" with empty string
cd1b4302 is described below
commit cd1b4302372c311e0679e108905aa3bf9f47a412
Author: Jia Yu <ji...@apache.org>
AuthorDate: Thu Jan 5 23:47:10 2023 -0700
For a null value, replace string "null" with empty string
---
core/src/main/java/org/apache/sedona/core/formatMapper/FormatUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/sedona/core/formatMapper/FormatUtils.java b/core/src/main/java/org/apache/sedona/core/formatMapper/FormatUtils.java
index c15c3567..0b0aca57 100644
--- a/core/src/main/java/org/apache/sedona/core/formatMapper/FormatUtils.java
+++ b/core/src/main/java/org/apache/sedona/core/formatMapper/FormatUtils.java
@@ -172,7 +172,7 @@ public class FormatUtils<T extends Geometry> implements Serializable {
for (Object property : featurePropertiesproperties.values()
) {
if (property == null) {
- nonSpatialData.add("null");
+ nonSpatialData.add("");
}
else {
nonSpatialData.add(property.toString());