Class GeoJSONToGeoPackage
Methods
_calculateTrueExtentForFeatureTable
- _calculateTrueExtentForFeatureTable(gp: any, tableName: any): Array<number>
-
Parameters
Returns Array<number>
_updateBoundingBoxForFeatureTable
- _updateBoundingBoxForFeatureTable(gp: any, tableName: any): void
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>, 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>
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 | string, options: GeoJSONConverterOptions, progressCallback?: Function): Promise<GeoPackage>
-
Parameters
-
geoPackage: GeoPackage | string
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>
extract
- extract(geopackage: GeoPackage, tableName: string): Promise<any>
-
Parameters
-
geopackage: GeoPackage
-
tableName: string
Returns Promise<any>
setupConversion
-
Parameters
-
-
Optional progressCallback: Function
Returns Promise<GeoPackage>