Skip to content

gi-nx


gi-nx / GeoJsonFeature

ts
type GeoJsonFeature = {
  geometry:   | {
     coordinates: [number, number];
     type: "Point";
   }
     | {
     coordinates: [number, number][];
     type: "MultiPoint";
   }
     | {
     coordinates: [number, number][];
     type: "LineString";
   }
     | {
     coordinates: [number, number][][];
     type: "MultiLineString";
   }
     | {
     coordinates: [number, number][][];
     type: "Polygon";
   }
     | {
     coordinates: [number, number][][][];
     type: "MultiPolygon";
   };
  properties: Record<string, any>;
  type: "Feature";
};

Properties

PropertyType
geometry| { coordinates: [number, number]; type: "Point"; } | { coordinates: [number, number][]; type: "MultiPoint"; } | { coordinates: [number, number][]; type: "LineString"; } | { coordinates: [number, number][][]; type: "MultiLineString"; } | { coordinates: [number, number][][]; type: "Polygon"; } | { coordinates: [number, number][][][]; type: "MultiPolygon"; }
propertiesRecord<string, any>
type"Feature"