com.alibaba.fastjson2.support.geo.Geometry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson2-extension Show documentation
Show all versions of fastjson2-extension Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
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;
}
}