import { List } from "../dataType/List";
import { Geometry } from "./Geometry";
/**
* Geometry
* @class Geometry.LinearRing
* @since gve.Geometry
*/
export class LinearRing extends Geometry {
/**
* 多个坐标点构造环Geometry
* @hideconstructor
* @param {List<Geometry> | List<List<Number>> | List<Number>} coords 给定坐标系下的多个点构成的坐标序列
* @param {String} [proj] 可选参数,待转换的投影坐标
* @return Geometry.LinearRing
*/
constructor(coords: List<Geometry> | number[] | number[][], proj?: string) {
let geojson = {
type: "LinearRing",
coordinates: coords,
};
super(geojson);
if (!(this instanceof LinearRing)) {
return new LinearRing(coords);
}
}
}