All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.jawg.geojson.GeoJsonObject.kt Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package io.jawg.geojson

import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo

@JsonTypeInfo(property = "type", use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY)
@JsonSubTypes(
    JsonSubTypes.Type(Point::class),
    JsonSubTypes.Type(MultiPoint::class),
    JsonSubTypes.Type(LineString::class),
    JsonSubTypes.Type(MultiLineString::class),
    JsonSubTypes.Type(Polygon::class),
    JsonSubTypes.Type(MultiPolygon::class),
    JsonSubTypes.Type(GeometryCollection::class),
    JsonSubTypes.Type(Feature::class),
    JsonSubTypes.Type(FeatureCollection::class)
)
@JsonInclude(JsonInclude.Include.NON_NULL)
abstract class GeoJsonObject(
    val type: String
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy