import { Geometry } from "./Geometry";
import { List } from "../dataType/List";

/**
 *   Geometry
 * @class Geometry.Point
 * @since gve.Geometry
 */
export class Point extends Geometry {
  /**
   * 坐标点构造点Geometry
   * @hideconstructor
   * @param {List<Number>} [coords] 给定坐标系下的点坐标
   * @param {String} [proj] 可选参数,待转换的投影坐标
   * @return Geometry.Point
   */
  constructor(coords: List<Number> | number[], proj?: string) {
    let geojson = {
      type: "Point",
      coordinates: coords,
    };
    super(geojson);
    if (!(this instanceof Point)) {
      return new Point(coords);
    }
  }
  // /**
  //  * 添加多边形
  //  */
  // addPint() {}
  // /**
  //  * 删除多边形
  //  */
  // removePoint() {}
}