Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeoJSONToGeoPackage

Hierarchy

  • GeoJSONToGeoPackage

Index

Constructors

constructor

Methods

_calculateTrueExtentForFeatureTable

  • _calculateTrueExtentForFeatureTable(gp: any, tableName: any): Array<number>
  • Parameters

    • gp: any
    • tableName: any

    Returns Array<number>

_updateBoundingBoxForFeatureTable

  • _updateBoundingBoxForFeatureTable(gp: any, tableName: any): void
  • Parameters

    • gp: any
    • tableName: any

    Returns void

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>, 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>

extract

  • extract(geopackage: GeoPackage, tableName: string): Promise<any>
  • Parameters

    • geopackage: GeoPackage
    • tableName: string

    Returns Promise<any>

setupConversion

Generated using TypeDoc