You can configure, visualize, and use multifile feature connections (MFC) in analysis.
Use an MFC
Once you have structured your data, you can do the following:
- Configure an MFC.
- Visualize an MFC dataset.
- Use MFC datasets in analysis.
Configure an MFC
To get started, you must create an MFC. There are two ways to create an MFC:
- Use the New Multifile Feature Connection dialog box. To access the dialog box, on the Insert ribbon, click Connections, and select New Multifile Feature Connection. Alternatively, right-click in the Catalog pane, and click New > New Multifile Feature Connection. The dialog box provides an interactive experience to create an MFC and configure properties on each dataset.
- Use the Create Multifile Feature Connection geoprocessing tool.
You may run into one of two issues when discovering datasets in an MFC:
- Datasets that you expected are missing. In this case, verify that the path you specified as a source folder that contains subfolders is correct and that it's a supported data type.
- One or more datasets fail to register. If datasets fail to register, you may note some of the following:
Issue Solution Example The dataset is not in the expected format.
Open the file to see if it looks as expected. If the data is structured incorrectly, update and try again.
A .csv file has a few lines and a summary of the data and then only empty lines.
The schemas of datasets in a folder do not match.
All files in a dataset folder must have the same schema. Open the files to compare the schemas. Resolve any mismatched schemas and try to register the dataset again.
You have one .csv file with 10 fields and another with 8.
The file types of a dataset in a folder do not match.
All files in a dataset folder must have the same extension (file type). Check the file types of the data source location and remove or relocate any misplaced files.
A shapefile dataset is in the same folder as a parquet file.
You have an unrecognized field format.
This is unlikely but may occur if ORC and parquet use an unexpected format. Ensure that you use valid field formats.
You have a parquet file with an unknown field format.
If you create an MFC using a delimited file and don't see header rows, you may have an invalid header row. Ensure that all fields have a header and that none are empty. If you're using the dialog box to create the MFC, you can update the field headers on the Fields pane.
To update the properties for an MFC dataset after it has been created, use one of the following methods:
- In the Catalog pane, right-click the MFC dataset and choose Properties. This will open a properties dialog box where you can view or modify the multifile feature connection properties.
- Use the Update Multifile Feature Connection Dataset Properties tool.
When you create an MFC, the schema, geometry, and time are discovered for each of your datasets. Often, you can change how the datasets represent those values. To verify that each dataset correctly represents the geometry, time, and fields, use the Describe Dataset geoprocessing tool. For example, when reviewing your datasets, you may want to make one or more of the following changes to one or more datasets in the MFC:
- Change the field names of delimited datasets.
- Modify which fields are visible for analysis.
- Change the fields used to represent geometry or time.
- Add a filter to a dataset.
- Add an alias to a dataset.
- Remove datasets from the MFC that you aren't interested in analyzing.
- Refresh the MFC to include a newly added dataset (a new subfolder under the source folder).
To make these optional changes, you can use the New Multifile Feature Connection dialog box, right-click an MFC dataset in the Catalog pane, or any combination of the following tools:
- Copy Dataset From Multifile Feature Connection—Copies a dataset from a MFC to a feature class.
- Duplicate Dataset From Multifile Feature Connection—Creates a view of an existing MFC dataset.
- Refresh Multifile Feature Connection—Checks for any new datasets and add them to the MFC.
- Remove Dataset From Multifile Feature Connection—Removes a dataset from the MFC.
- Update Multifile Feature Connection Dataset Properties—Modifies the properties of an individual MFC dataset.
- Preview Dataset From Multifile Feature Connection—Previews the first ten features in your dataset to verify they are correctly registered.
- Describe Dataset—Verifies that the dataset looks as expected.
Visualize an MFC dataset
You can visualize delimited- and shapefile-based MFC datasets on a map.
Note:
You cannot visualize MFC datasets that use parquet and ORC source files.To add your dataset to the map, locate the MFC item in the Catalog pane, click to expand the datasets, and add the dataset to the map.
MFC datasets have a simplified experience in your map and have the following limitations:
- When visualizing MFC datasets, the time properties in the MFC dataset properties are not automatically set in the new layer. To visualize the dataset with time, set the layer's time properties after adding the dataset to the map.
- Drawing delimited files will zoom to the full extent of the MFC dataset's spatial reference.
- If you add new records to an existing MFC dataset—for example, adding new rows to a .csv file in an existing MFC—the new records will not draw until you restart AllSource.
- If you add new files to an existing MFC dataset—for example, adding a new .csv file to an existing MFC dataset—the new records will not draw until you restart AllSource.
Use MFC datasets in analysis
When MFC datasets are used as input to GeoAnalytics Desktop tools, analysis is optimized to read the data and run in parallel across the cores of your machine. For all other geoprocessing tools, MFC dataset reading and processing is not optimized to run in parallel, rather it is sequential and single-threaded.
You can use MFC datasets based on delimited files or shapefiles in most geoprocessing tools.
Note:
MFC datasets using parquet and ORC source files can only be used in GeoAnalytics Desktop tools.You cannot apply a selection to a MFC dataset when it's used as input to a GeoAnalytics Desktop tool.
To use a MFC dataset in a geoprocessing tool, add a MFC dataset to a map and select the layer name from the parameter choice list or use the browse button to browse to a MFC workspace and select the input dataset. The following tools do not support input MFC files:
- Service-based tools, including GeoAnalytics Server, standard feature analysis, and ArcGIS Online analysis tools
- Tools that modify the input dataset, such as Calculate Field and Near