-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #454 from databrickslabs/feature/remove_vsimem
Remove any usage of /vsimem/ due to memory leaks.
- Loading branch information
Showing
128 changed files
with
2,179 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
src/main/scala/com/databricks/labs/mosaic/core/raster/api/FormatLookup.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
package com.databricks.labs.mosaic.core.raster.api | ||
|
||
object FormatLookup { | ||
|
||
// ShortDriverName -> FormatExtension | ||
val formats: Map[String, String] = Map( | ||
"AAIGrid" -> "asc", | ||
"ACE2" -> "ace2", | ||
"ADRG" -> "gen", | ||
"AIG" -> "aig", | ||
"AIRSAR" -> "airsar", | ||
"ARCGEN" -> "gen", | ||
"ARG" -> "arg", | ||
"BLX" -> "blx", | ||
"BMP" -> "bmp", | ||
"BT" -> "bt", | ||
"CAD" -> "dwg", | ||
"CEOS" -> "ceos", | ||
"COASP" -> "coasp", | ||
"COSAR" -> "cosar", | ||
"CPG" -> "cpg", | ||
"CSW" -> "csw", | ||
"CTG" -> "ctg", | ||
"DB2ODBC" -> "db2", | ||
"DERIVED" -> "derived", | ||
"DGN" -> "dgn", | ||
"DIMAP" -> "dim", | ||
"DIPEx" -> "dipex", | ||
"DOQ1" -> "doq1", | ||
"DOQ2" -> "doq2", | ||
"DTED" -> "dt0", | ||
"DXF" -> "dxf", | ||
"ECRGTOC" -> "toc", | ||
"ECRGTP" -> "ecrgtp", | ||
"EEDA" -> "eeda", | ||
"EIR" -> "eir", | ||
"ELAS" -> "elas", | ||
"ENVI" -> "hdr", | ||
"ERS" -> "ers", | ||
"ESAT" -> "esat", | ||
"ESRI Shapefile" -> "shp", | ||
"ESRI" -> "ers", | ||
"FAST" -> "fst", | ||
"FIT" -> "fit", | ||
"FITS" -> "fits", | ||
"GFF" -> "gff", | ||
"GIF" -> "gif", | ||
"GLOBE" -> "globe", | ||
"GMT" -> "gmt", | ||
"GNM" -> "gnm", | ||
"GRASSASCIIGrid" -> "asc", | ||
"GRASS" -> "grass", | ||
"GRIB" -> "grb", | ||
"GTiff" -> "tif", | ||
"GXF" -> "gxf", | ||
"HDF4" -> "hdf4", | ||
"HDF5" -> "hdf5", | ||
"HF2" -> "hf2", | ||
"HFA" -> "img", | ||
"HTTP" -> "http", | ||
"IDRISI" -> "rst", | ||
"ILWIS" -> "mpr", | ||
"INGR" -> "grd", | ||
"IRIS" -> "ppm", | ||
"ISIS2" -> "cub", | ||
"ISIS3" -> "cub", | ||
"JDEM" -> "mem", | ||
"JPEG2000" -> "jp2", | ||
"JPEG" -> "jpg", | ||
"JP2OpenJPEG" -> "jp2", | ||
"KMLSUPEROVERLAY" -> "kml", | ||
"LAN" -> "lan", | ||
"LCP" -> "lcp", | ||
"L1B" -> "l1b", | ||
"MBTiles" -> "mbtiles", | ||
"MEM" -> "mem", | ||
"MFF" -> "mff", | ||
"MG4Lidar" -> "mg4l", | ||
"MRF" -> "mrf", | ||
"MSGN" -> "msgn", | ||
"NDF" -> "ndf", | ||
"NITF" -> "ntf", | ||
"NTv2" -> "gsb", | ||
"ODBC" -> "odbc", | ||
"OGR_GMT" -> "gmt", | ||
"OGR_PDS" -> "pds", | ||
"OGR_SDTS" -> "sdts", | ||
"OGR_VRT" -> "vrt", | ||
"OGR" -> "shp", | ||
"OpenAir" -> "oar", | ||
"PCIDSK" -> "pix", | ||
"PCRaster" -> "map", | ||
"PDF" -> "pdf", | ||
"PDS" -> "pds", | ||
"PGDUMP" -> "pgdump", | ||
"PGeo" -> "mdb", | ||
"PLMOSAIC" -> "mosaic", | ||
"PNG" -> "png", | ||
"PostgreSQL" -> "pg", | ||
"R" -> "r", | ||
"RDA" -> "rda", | ||
"RIK" -> "rik", | ||
"RMF" -> "rmf", | ||
"ROI_PAC" -> "rsc", | ||
"RPFTOC" -> "toc", | ||
"RS2" -> "rs2", | ||
"RST" -> "rst", | ||
"SAGA" -> "sdat", | ||
"SAR_CEOS" -> "ceos", | ||
"SAR_SG" -> "sgm", | ||
"SDTS" -> "sdts", | ||
"SEGUKOOA" -> "dat", | ||
"SEGY" -> "segy", | ||
"Sentinel2" -> "jp2", | ||
"SRTMHGT" -> "hgt", | ||
"SQLite" -> "sqlite", | ||
"SUA" -> "sua", | ||
"SVG" -> "svg", | ||
"TIGER" -> "tiger", | ||
"TIL" -> "til", | ||
"TSX" -> "tsx", | ||
"USGSDEM" -> "dem", | ||
"VDV" -> "vdv", | ||
"VICAR" -> "vicar", | ||
"VFK" -> "vfk", | ||
"VRT" -> "vrt", | ||
"WCS" -> "wcs", | ||
"WFS" -> "wfs", | ||
"WMS" -> "wms", | ||
"XLS" -> "xls", | ||
"XLSX" -> "xlsx", | ||
"XPlane" -> "bin", | ||
"netCDF" -> "nc", | ||
"Zarr" -> "zarr" | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.