Exporting & Importing Shapefiles
This guide outlines the steps to import shapefiles into TytonAI and recreate a deleted training area. It includes instructions for mapping classifications, managing workflows, and verifying the successful import.
Overview
In this example, users export an existing training area as a shapefile .zip
, delete the training area from the project and then re-import the shapefile to restore or transfer the data. This is useful for versioning, backup or migrating training data between projects.
Step 1: Export the Training Area
- In the Explorer Panel, right-click the Training Area you want to export.
- Select Export as > Shapefile.
- Save the exported
.zip
file to your local device.
Ensure your training area polygons include classifications, color codes, and any other metadata you want to retain.
Step 2: Delete the Original Training Area
- Right-click the Training Area again.
- Select Delete.
- Confirm the deletion to remove it from the project.
Step 3: Begin Import Process
- Click the Import icon in the main toolbar.
- In the Import Panel, click Browse Files and select the
.zip
shapefile previously exported. - Click Import to begin the import process.
Step 4: Map Classifications and Attributes
During the import:
- TytonAI will prompt you to map imported attributes (e.g. Class, Color, UUID) to the existing classification system in your current project.
- Confirm or adjust the mapping using the drop-down selectors provided.
- Click Continue to proceed.
This ensures imported features align with your current project schema and class definitions.
Step 5: Monitor Import Workflow
- A new Import Shapefile workflow will appear in the Workflow Monitor tab.
- Click on the workflow to view progress, logs, and status.
- Wait for the workflow to complete. This may take a few minutes depending on file size and system load.
Step 6: Verify Import
- Once the import is complete, go to the Map tab.
- Your imported shapefile will now appear as a new Training Area in the Explorer.
- Expand the training area to view individual polygons and classifications.
tip
- Use Clear Class Names: Ensure your exported shapefile includes standardized class names that match your project's current classification system to simplify the mapping step.
- Keep Attributes Clean: Clean up attribute tables before export to avoid confusion during the import mapping stage. Unnecessary columns or inconsistent field names may cause mapping issues.
- Workflow Monitoring: Always check the Workflow Monitor tab for logs and success confirmation. Failures may occur if shapefile schemas do not match the expected structure.
- Avoid Overwrites: Rename imported training areas if you're working in a shared project to prevent confusion or accidental overwrites with existing layers.