Export primary data
User Guide GeoDMS GUI - export primary data
activate export
Source data and model results can be exported to different formats. Select a Data item in the TreeView and choose the menu option Export Primary Data. The option is available on a data item or on a Container with direct data items.
The following dialog then appears (here for a container with neighborhood data).

Vector/Raster
The dialog has two tabs, Vector and Raster. The dialog shows the tab that fits the Domain unit of the data items to export:
- Vector for one dimensional domains
- Raster for two dimensional domains
Both tabs work in a similar way.
You can set the following options:
- Foldername: the folder to which the data is exported, in one or multiple files. Use the button to select a folder, or type its name in the text box. By default the folder is the LocalData folder of the project (the
%localDataProjDir%placeholder) followed by the path of the exported item. - Filename (no extension): the part of the filename without the file extension. Some formats (e.g. ESRI Shapefile) write multiple actual files in one export, which is why you set the name without extension here. The Resulting filename(s) box in the dialog shows the actual files that will be written.
- Format: select the format from a combobox. The vector formats start with CSV, GeoParquet, GeoPackage and ESRI Shapefile, in that order. The dialog proposes GeoParquet for an item with geometry and CSV for a table without geometry.
- Use native driver: for some formats, both a native GeoDMS StorageManager and a GDAL driver can export the data. Check the box to use the native driver, or uncheck it to use the GDAL driver. In some cases only one option is available, and you cannot change the setting. The checkbox starts ticked for every format that has a native driver. Once you tick or untick it for a format, it stays that way for the rest of the GUI session.
Press the Export button to export the data.
the proposed format
Since GeoDMS 20.29.0 the dialog proposes GeoParquet (.parquet, written with Gdalwrite.vect) for an item with geometry. Before, it proposed the ESRI Shapefile with the native writer. A shapefile has limits that the newer formats do not: attribute names are cut to 10 characters in the .dbf, a string field holds at most 254 characters, the .shp and the .dbf are limited to 2 GB each, and one export is four files that get separated when they are passed on. A GeoParquet is one file, usually much smaller than the same data as a GeoPackage or a shapefile, and writing the same data twice gives the same bytes.
Not every receiver reads GeoParquet. QGIS 3.40 reads and writes it, and Esri documents GeoParquet support in ArcGIS Pro, but the CRAN build of the R package sf for Windows (1.1.3) has no Parquet driver, so st_read cannot open the file. For such a receiver choose GeoPackage, the next format in the list. The shapefile is still there, below it.
What changes on upgrading:
- An export with the proposed settings now writes a
.parquetwhere it wrote a.shp,.shx,.dbfand.prj. A process that picks up the shapefile has to read the GeoParquet, or the modeller has to choose ESRI Shapefile in the dialog. The same goes for the ExportPrimaryData verb of a GUI test script, which takes the proposed settings. - Polygons whose rings run counterclockwise get a negative Area. After a round trip through a GeoParquet or a GeoPackage their area comes back with the opposite sign, positive; through the native shapefile writer and reader it comes back unchanged. Polygons whose rings run clockwise come back with the same area from all three.
a container of several tables
When the item is a Container whose sub-items are tables of different domain units, each table is exported.
Since GeoDMS 20.29.0 such a container counts as an item with geometry when one of its tables has geometry, so the dialog proposes GeoParquet for it and offers the formats that require geometry. Before, the dialog only looked at the container and its direct sub-items, the tables themselves, and not at the geometry inside them: it proposed CSV, and GeoPackage, ESRI Shapefile, GML and GeoJSON were disabled.
Since GeoDMS 20.29.0 a format that holds one table per file, CSV, GeoParquet, GeoJSON, ESRI Shapefile and DBF, writes a file per table, in a folder named after the export: <Foldername>/<Filename>/<table name>.<extension>. The Resulting filename(s) box lists those files. GeoPackage, GML and XML still write one file with a layer per table, and the layers are now named after the tables.
Before 20.29.0 only the native CSV and shapefile writers wrote a file per table, the shapefile into a folder called <Filename>.shp. The other formats put all tables in the one file. Where they could be chosen, GeoJSON and the GDAL shapefile writer (Use native driver unticked) failed at the second table, GDAL’s CSV writer wrote the columns of all tables into a single file, and the native DBF writer refused the container with Storage expected an unabiguous domain. The layers of a GeoPackage were called DbTable, DbTable1, and so on.
what is exported
An export writes the Feature attribute of the selected table plus all its other attributes of the same Domain unit. For an ESRI Shapefile these are the .shp and the .dbf. For a Geopackage they are the geometry and the attribute columns of the layer. This also holds when the item you select is the feature attribute.
The feature attribute is the obvious item to select when the domain unit has no map relation. A map relation is a DialogType = "map" with a DialogData naming the feature attribute, or a sub-item named literally geometry. Without one, the other attributes of the table open as a table, and the feature attribute is the only item that opens as a map. The map relation is worth configuring for other reasons (see DialogData), but a complete export does not need it.
a failed export
When an export fails, the dialog shows an error box that names the reason. The dialog stays open, so that you can correct a setting and try again. The Eventlog shows which item failed and why.
This also holds for a CSV export with Use native driver ticked, of a table or a container of tables in which an attribute cannot be computed. The file of a table is created only after all its attributes have been computed. So a table that fails leaves an earlier export of it unchanged. In a container of tables, the tables before the failing one have been written, and the tables after it have not.