Skip to content

Commit

Permalink
Merge branch 'iwxxm-issue-47'
Browse files Browse the repository at this point in the history
  • Loading branch information
petringo committed Dec 11, 2020
2 parents 501d844 + 08d72b4 commit f3dc845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/fi/fmi/avi/model/Geometry.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
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;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@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 {
Expand Down

0 comments on commit f3dc845

Please sign in to comment.