Skip to content

Commit 81f473f

Browse files
authored
Fixed GeoJSON serialization of MULTIPOINT (#212)
1 parent 9180d07 commit 81f473f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## VERSION X.X
22

3+
* \#210: Fixed GeoJSON serialization of multipoints (Stanislas Courouble)
4+
35
* \#206: Upgraded to JTS 1.18.1. This JTS release had an incompatible [API change](https://github.com/locationtech/jts/blob/master/doc/JTS_Version_History.md#api-changes) and it requires Java 1.8.
46
Only Spatial4j's `JtsBinaryCodec` was impacted, and thus only use of this will require a JTS upgrade.
57
(Christian Marsch)

src/main/java/org/locationtech/spatial4j/io/jackson/GeometryAsGeoJSONSerializer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public void serialize(Geometry geom, JsonGenerator gen, SerializerProvider seria
9595
MultiPoint v = (MultiPoint) geom;
9696
gen.writeFieldName("coordinates");
9797
write(gen, v.getCoordinates());
98-
return;
9998
} else if (geom instanceof MultiLineString) {
10099
MultiLineString v = (MultiLineString) geom;
101100
gen.writeFieldName("coordinates");

0 commit comments

Comments
 (0)