Methods
addFeatureProperties
- addFeatureProperties(feature: any, currentProperties: Record<string, any>): void
-
Parameters
-
feature: any
-
currentProperties: Record<string, any>
Returns void
addLayer
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<any>
convert
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
convertGeoJSONToGeoPackage
- convertGeoJSONToGeoPackage(geoJson: any, geopackage: GeoPackage, tableName: string, properties: Record<string, any>, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
geoJson: any
-
geopackage: GeoPackage
-
tableName: string
-
properties: Record<string, any>
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
convertGeoJSONToGeoPackageWithSrs
- convertGeoJSONToGeoPackageWithSrs(geoJson: any, geopackage: GeoPackage, tableName: string, properties: Record<string, any>, srsNumber: number, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
geoJson: any
-
geopackage: GeoPackage
-
tableName: string
-
properties: Record<string, any>
-
srsNumber: number
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
createOrOpenGeoPackage
- createOrOpenGeoPackage(geopackage: GeoPackage, options: CSVConverterOptions, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
geopackage: GeoPackage
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
extract
- extract(geopackage: GeoPackage, tableName: string): Promise<any>
-
Parameters
-
geopackage: GeoPackage
-
tableName: string
Returns Promise<any>
setupConversion
- setupConversion(options: CSVConverterOptions, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>