From 08d72b4bb80ec0f7c8cd18100594f7fdc3c9acbd Mon Sep 17 00:00:00 2001 From: kasarit <49980037+kasarit@users.noreply.github.com> Date: Tue, 3 Nov 2020 13:51:09 +0200 Subject: [PATCH] Added multipolygon to geometry subtypes --- src/main/java/fi/fmi/avi/model/Geometry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/fi/fmi/avi/model/Geometry.java b/src/main/java/fi/fmi/avi/model/Geometry.java index 4b4c25b7..73814eb4 100644 --- a/src/main/java/fi/fmi/avi/model/Geometry.java +++ b/src/main/java/fi/fmi/avi/model/Geometry.java @@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import fi.fmi.avi.model.immutable.CircleByCenterPointImpl; +import fi.fmi.avi.model.immutable.MultiPolygonGeometryImpl; import fi.fmi.avi.model.immutable.PointGeometryImpl; import fi.fmi.avi.model.immutable.PolygonGeometryImpl; @@ -14,7 +15,8 @@ @JsonSubTypes({ // @JsonSubTypes.Type(value = PointGeometryImpl.class, name = "Point"), // @JsonSubTypes.Type(value = PolygonGeometryImpl.class, name = "Polygon"), // - @JsonSubTypes.Type(value = CircleByCenterPointImpl.class, name = "CircleByCenterPoint")// + @JsonSubTypes.Type(value = CircleByCenterPointImpl.class, name = "CircleByCenterPoint"), // + @JsonSubTypes.Type(value = MultiPolygonGeometryImpl.class, name = "MultiPolygon") // }) @JsonPropertyOrder({ "crs" }) public interface Geometry {