isoxml-angular
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
14 lines (13 loc) • 840 B
TypeScript
import { MultiPolygon as TurfMultiPolygon, Polygon as TurfPolygon } from "@turf/turf";
import { Polygon, PolygonAttributes, PolygonPolygonTypeEnum } from "../baseEntities";
import { TAGS } from "../baseEntities/constants";
import { ISOXMLManager } from "../ISOXMLManager";
import { Entity, XMLElement } from "../types";
export declare class ExtendedPolygon extends Polygon {
tag: TAGS;
constructor(attributes: PolygonAttributes, isoxmlManager: ISOXMLManager);
static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId: string): Promise<Entity>;
static fromGeoJSON(geoJSON: TurfMultiPolygon | TurfPolygon, polygonType: PolygonPolygonTypeEnum, isoxmlManager: ISOXMLManager): Polygon[];
static normalizePolygons(polygons: Polygon[]): Polygon[];
static toGeoJSON(polygons: Polygon[]): TurfMultiPolygon;
}