Inventory of files¶
DicoGIS walks the folder tree, sorts the files by format, then opens each dataset with GDAL to read its metadata: CRS, geometry type, fields, extent, number of features, size… What is read depends on the format, see outputs.
dicogis-cli inventory --input-folder ./my_data --formats esri_shapefile,geojson,file_geodatabase_geopackage
Formats¶
--formats takes the formats to analyze, comma separated, all of them by default. In the GUI, they are the checkboxes of the Files tab.
|
GUI checkbox |
Files |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rasters go together: one raster format given to --formats analyzes all of them. Same for the CAD files with dgn.
A JPEG file is listed only when georeferenced, by a world file (.jgw, .jpgw, .jpegw or .wld) or a .aux.xml next to it: the others are most likely photos.
A format whose GDAL driver is missing from the installed GDAL (ECW and Geoconcept are not in every build) is disabled.
A file geodatabase (Esri FileGDB, GeoPackage, SpatiaLite) is one dataset, covering all its layers.
Output¶
--output-format (or the selector below the tabs of the GUI):
excel(default): an Excel workbook, one sheet per kind of dataset: vectors, rasters, file databases, CAD, PostGISjson: one JSON file per dataset, in a folderudata: one JSON file per dataset, shaped for a uData catalog, see Publishing to uDataiso19139: one ISO 19139 XML file per dataset, see Publishing to GeoNetwork
Without --output-path, the output is written in the current folder (the scanned folder from the GUI), named after the scanned folder and the date.
In the workbook, paths are hyperlinks to the parent folder: --opt-raw-path writes them as text. Sizes are in bytes: --opt-prettify-size writes them as 1 ko instead of 1024.
Errors¶
A dataset GDAL can’t open is recorded with its error and the analysis goes on. --opt-quick-fail stops at the first error instead, to debug.