Class ShapefileToGeoPackage
Methods
addFeaturesToTable
- addFeaturesToTable(geopackage: GeoPackage, builder: any, progressCallback: Function): Promise<void>
-
Parameters
-
geopackage: GeoPackage
-
builder: any
-
progressCallback: Function
Returns Promise<void>
addLayer
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<any>
convert
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
convertShapefileReaders
- convertShapefileReaders(readers: any, geopackage: GeoPackage, progressCallback: Function): Promise<GeoPackage>
-
Parameters
-
readers: any
-
geopackage: GeoPackage
-
progressCallback: Function
Returns Promise<GeoPackage>
createFeatureTable
- createFeatureTable(geopackage: GeoPackage, builder: any): Promise<any>
-
Parameters
-
geopackage: GeoPackage
-
builder: any
Returns Promise<any>
createOrOpenGeoPackage
- createOrOpenGeoPackage(geopackage: GeoPackage, options: ShapefileConverterOptions, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
geopackage: GeoPackage
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
createShapefile
- createShapefile(geopackage: GeoPackage, tableName: string | Array<string>): Promise<any>
-
Parameters
-
geopackage: GeoPackage
-
tableName: string | Array<string>
Returns Promise<any>
determineFeatureTableColumns
- determineFeatureTableColumns(builder: any): any
determineTableName
- determineTableName(preferredTableName: string, geopackage: GeoPackage): string
-
Parameters
-
preferredTableName: string
-
geopackage: GeoPackage
Returns string
extract
- extract(geopackage: any, tableName: any): Promise<any>
-
Parameters
-
geopackage: any
-
tableName: any
Returns Promise<any>
getReadersFromZip
- getReadersFromZip(zip: any): Promise<any[]>
-
Parameters
Returns Promise<any[]>
readRecord
- readRecord(builder: any): Promise<unknown>
-
Parameters
Returns Promise<unknown>
setupConversion
-
Parameters
-
-
progressCallback: Function
Returns Promise<any>