Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CSVToGeoPackage

Hierarchy

  • CSVToGeoPackage

Index

Constructors

constructor

Methods

addFeatureProperties

  • addFeatureProperties(feature: any, currentProperties: Record<string, any>): void
  • Parameters

    • feature: any
    • currentProperties: Record<string, any>

    Returns void

addLayer

convert

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

    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>

Generated using TypeDoc