@ngageoint/geopackage-pbf-js - v4.1.3
Functions
convertGeoJSONToGeoPackage
- convertGeoJSONToGeoPackage(geoJson: any, geoPackage: GeoPackage | string, tableName: string, progressCallback: Function, append: any): Promise<any>
-
Parameters
-
geoJson: any
-
geoPackage: GeoPackage | string
-
tableName: string
-
progressCallback: Function
-
append: any
Returns Promise<any>
correctGeoJson
- correctGeoJson(geoJson: any, x: any, y: any, z: any): object
-
Parameters
-
geoJson: any
-
x: any
-
y: any
-
z: any
Returns object
-
features: []
-
type: "FeatureCollection"
createOrOpenGeoPackage
- createOrOpenGeoPackage(geoPackage: any, options: any, progressCallback: any): Promise<GeoPackage>
-
Parameters
-
geoPackage: any
-
options: any
-
progressCallback: any
Returns Promise<GeoPackage>
readFileAsBuffer
- readFileAsBuffer(file: any): Promise<unknown>
-
Parameters
Returns Promise<unknown>
setupConversion
- setupConversion(options: any, progressCallback?: Function): Promise<any>
-
Parameters
-
options: any
-
Default value progressCallback: Function = (): Promise<void> => Promise.resolve()
Returns Promise<any>