VMDZipFileCollection

Extracts all VMDFiles from a zip folder, so that the collection can then be passed to the VMD parser to retrieve all relevant VMD data. At a minimum, the zip file should contain map.xml and map.geojson.

Since

1.1

Constructors

Link copied to clipboard
constructor(mapZipFile: VMDFile, extractionFilePath: String)

Properties

Link copied to clipboard

Building XML files for legacy VMDs

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val FILE_FORMAT_CUSTOM_INFO: String = "customMapInfo.json"

Default file name for json file.

Link copied to clipboard
val FILE_FORMAT_GEOJSON: String = "map.geojson"

Default file name for geojson file.

Link copied to clipboard
val FILE_FORMAT_MAP: String = "map.xml"

Default file name for xml file.

Link copied to clipboard
val GEOJSON_EXT: String = ".geojson"
Link copied to clipboard
val JSON_EXT: String = ".json"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val XML_EXT: String = ".xml"

Functions

Link copied to clipboard
Checks if there is an existing zip file that can be unzipped.
Link copied to clipboard
open fun listFiles(baseDirectory: String): Array<String>
Link copied to clipboard
fun load(venueId: String, baseDirectory: String, mapProvider: MapProvider, destinationDirectory: String)
Link copied to clipboard
open fun openFile(fileName: String): InputStream
Link copied to clipboard
fun setMapGeojsonFile(mapGeojsonFile: VMDFile)
Link copied to clipboard
open fun unzipFiles()
Unzips the contents from the zip file to the file path provided.