From a35b3d93c7f7904c6014711abbc2235780b9d5fe Mon Sep 17 00:00:00 2001 From: glory Date: Mon, 14 Nov 2022 21:53:57 +0500 Subject: [PATCH] add geojson interface --- .gitignore | 1 + interfaces/geojson.d.ts | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 interfaces/geojson.d.ts diff --git a/.gitignore b/.gitignore index 0014295..34a702f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ logs *.log .vscode/ +data/ \ No newline at end of file diff --git a/interfaces/geojson.d.ts b/interfaces/geojson.d.ts new file mode 100644 index 0000000..0ad6ab5 --- /dev/null +++ b/interfaces/geojson.d.ts @@ -0,0 +1,48 @@ +declare module "GeoJSON" { + + export interface Geometry { + type: string; + coordinates: number[][][]; + } + + export interface Properties { + objectid: number; + area_lic: string; + god_licenz: number; + nom_zsngp: number; + nom_list: string; + nom: number; + data_start: any; + data_end: any; + vid: string; + tip: string; + name: string; + number: string; + sostoyanie: string; + priznak: string; + nom_lic: string; + head_nedro: string; + oblast: string; + zsngp: string; + nedropolz: string; + nedropol_1: string; + nom_yrfo: number; + authority: string; + st_area(shape)?: number; + st_length(shape)?: number; + } + + export interface Feature { + type: string; + id: number; + geometry: Geometry; + properties: Properties; + } + + export interface RootObject { + type: string; + features: Feature[]; + } + +} +