/** * GeoJSON conversion from S-57 dataset. * * Resolves feature geometry by following spatial record references. * Output is standard GeoJSON FeatureCollection. */ import type { S57Dataset } from './types.js'; export interface GeoJSONFeatureCollection { type: 'FeatureCollection'; features: GeoJSONFeature[]; } export interface GeoJSONFeature { type: 'Feature'; geometry: GeoJSONGeometry | null; properties: Record; } export type GeoJSONGeometry = { type: 'Point'; coordinates: [number, number]; } | { type: 'MultiPoint'; coordinates: [number, number][]; } | { type: 'LineString'; coordinates: [number, number][]; } | { type: 'Polygon'; coordinates: [number, number][][]; } | { type: 'GeometryCollection'; geometries: GeoJSONGeometry[]; }; /** * Convert an S-57 dataset to a GeoJSON FeatureCollection. * * @param dataset - Parsed S-57 dataset * @param objlFilter - Optional array of OBJL codes to include (undefined = all) */ export declare function toGeoJSON(dataset: S57Dataset, objlFilter?: number[]): GeoJSONFeatureCollection; //# sourceMappingURL=geojson.d.ts.map