Skip to content

Commit

Permalink
Updated format support list. Note: deprecated formats are retained to…
Browse files Browse the repository at this point in the history
… ensure compatibility with Open.Canada Portal.
  • Loading branch information
jvanulde committed Sep 10, 2018
1 parent 940933c commit 2d7c282
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions hnap2cc-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2834,18 +2834,22 @@ def canada_tags(value):
# 'web_service'
#]

# These should be synced with http://www.gcpedia.gc.ca/wiki/Federal_Geospatial_Platform/Policies_and_Standards/Catalogue/Release/Appendix_B_Guidelines_and_Best_Practices/Guide_to_Harmonized_ISO_19115:2003_NAP/Format
CL_Formats = [
'AAC',
'AIFF',
'APK',
'Android'
'APK', #deprecated
'ASCII Grid',
'AVI',
'Blackberry',
'BMP',
'BWF',
'CCT',
'CDED ASCII',
'CDF',
'CDR',
'COD',
'COD', #deprecated
'CSV',
'DBD',
'DBF',
Expand All @@ -2856,45 +2860,54 @@ def canada_tags(value):
'DXF',
'E00',
'ECW',
'EDI',
'EDI', #deprecated
'EMF',
'EPUB3',
'EPUB2',
'EPS',
'EPUB2',
'EPUB3',
'ESRI REST',
'EXE',
'FGDB/GDB',
'Flat raster binary',
'GeoJSON',
'GEOJSON', #deprecated
'GeoPackage',
'GeoPDF',
'GeoRSS',
'GeoTIF',
'GEOJSON',
'GPKG',
'GPKG', #deprecated
'GIF',
'GML',
'GRIB1',
'GRIB2',
'HDF',
'HTML',
'IATI',
'IPA',
'IOS',
'IPA', #deprecated
'JAR',
'JFIF',
'JP2',
'JPEG 2000',
'JPEG',
'JPG',
'JSON',
'JSONL',
'JSONL', #deprecated
'JSON Lines',
'JSON-LD',
'KML',
'KMZ',
'LAS',
'LYR',
'MapInfo',
'MFX',
'MOV',
'MP3',
'MPEG',
'MPEG-1',
'MP3',
'MXD',
'NetCDF',
'NT',
'NT', #deprecated
'ODP',
'ODS',
'ODT',
Expand All @@ -2913,26 +2926,28 @@ def canada_tags(value):
'SEGY',
'SHP',
'SQL',
'SQLITE3',
'SQLITE3', #deprecated
'SQLITE',
'SVG',
'TAB',
'TFW',
'TFW', #deprecated
'TIFF',
'TRIG',
'TRIX',
'TTL',
'TRiG',
'TRiX',
'TTL', #deprecated
'TXT',
'VPF',
'WAV',
'Web App',
'WCS',
'WFS',
'WMS',
'WMTS',
'WMV',
'XML',
'WPS',
'XLS',
'XLSM',
'XML',
'ZIP'
]

Expand Down

0 comments on commit 2d7c282

Please sign in to comment.