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

com.alibaba.fastjson2.support.geo.Geometry Maven / Gradle / Ivy

The newest version!
package com.alibaba.fastjson2.support.geo;

import com.alibaba.fastjson2.annotation.JSONType;

/**
 * @since 1.2.68
 */
@JSONType(
        seeAlso = {
            GeometryCollection.class,
            LineString.class,
            MultiLineString.class,
            Point.class,
            MultiPoint.class,
            Polygon.class,
            MultiPolygon.class,
            Feature.class,
            FeatureCollection.class},
        typeKey = "type"
)
public abstract class Geometry {
    private final String type;
    private double[] bbox;
    protected Geometry(String type) {
        this.type = type;
    }
    public String getType() {
        return type;
    }
    public double[] getBbox() {
        return bbox;
    }
    public void setBbox(double[] bbox) {
        this.bbox = bbox;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy