@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
23 lines (22 loc) • 1.01 kB
TypeScript
import { BBox } from "../../src/types/index.js";
interface BundleOptions {
/** Name for data source. Will be used to automatically create s3 bucket */
name: string;
/** Database table with source features */
tableName: string;
/** Bundles will be no greater than this size. Defaults to 5500 */
pointsLimit?: number;
/** Limit bundles to this size (in kilometers). Defaults to 55 kilometers. */
envelopeMaxDistance?: number;
/** PostgreSQL connection. Defaults to postgres:// */
connection?: string;
/** Limit to a bounding box. Useful for testing. (xmin, ymin, xmax, ymax) */
bbox?: [number, number, number, number];
/** Skip uploads. For debugging bytesLimit, envelopeMaxDistance */
dryRun?: boolean;
}
/**
* bundleFeatures bundles records from the target table into
*/
declare const bundleFeatures: (_options: BundleOptions, callback?: (id: number, geobuf: Uint8Array, bbox: BBox) => Promise<any>) => Promise<string>;
export default bundleFeatures;