Shapefile Upload Guide
Learn how to prepare and upload field boundary shapefiles to CropVoice
Overview
CropVoice accepts zipped shapefiles containing field boundary polygons in three different archive formats. This guide will help you prepare your shapefiles correctly for upload.
Supported Archive Formats
CropVoice supports three ways to organize your shapefile archives:
Format 1: Individual Files
Select all shapefile components and compress them together.
When to use:
- You have a single shapefile with one or more field boundaries
- All files are in the same directory
How to create:
- Select all shapefile components in your file manager (.shp, .dbf, .prj, .shx, etc.)
- Right-click and choose "Compress" (Mac) or "Send to > Compressed folder" (Windows)
- Upload the resulting .zip file
Archive contents:
fields.zip/
├── fields.shp
├── fields.dbf
├── fields.prj
├── fields.shx
└── fields.cpg
Format 2: Single Directory
Compress a directory that contains one shapefile.
When to use:
- Your shapefile is already organized in a single directory
- You want to maintain the directory structure
How to create:
- Locate the directory containing your shapefile
- Right-click the directory and choose "Compress" (Mac) or "Send to > Compressed folder" (Windows)
- Upload the resulting .zip file
Archive contents:
boundaries-5.zip/
└── boundaries-5/
├── boundaries.shp
├── boundaries.dbf
├── boundaries.prj
├── boundaries.shx
└── boundaries.cpg
Format 3: Multiple Directories (Nested)
Compress multiple directories, each containing one shapefile.
When to use:
- You have multiple shapefiles organized by farm, field, or region
- You want to upload many fields at once from different locations
- Field names will be prefixed with their directory name for organization
How to create:
- Organize your shapefiles into separate directories (e.g., by farm name)
- Each directory should contain one complete shapefile
- Select all directories
- Right-click and choose "Compress" (Mac) or "Send to > Compressed folder" (Windows)
- Upload the resulting .zip file
Archive contents:
farms.zip/
├── Dr. Baer Farm/
│ ├── 05N.shp
│ ├── 05N.dbf
│ └── 05N.prj
├── Gillan Farm/
│ ├── 02.shp
│ ├── 02.dbf
│ └── 02.prj
└── Robinson Farm/
├── 09.shp
├── 09.dbf
└── 09.prj
Technical Requirements
File Requirements
- Required files: .shp and .dbf
- Recommended: .prj, .shx, .cpg
- Maximum file size: 50MB
- Maximum fields: 500 per upload
Coordinate System
- Auto-reprojected to WGS84 if a .prj file is included
- Geometry types: Polygon or MultiPolygon
- Point, Line, and other geometry types are not supported
Common Issues
Error: "Invalid archive format: The selected directory contains subdirectories"
This error occurs when using the single directory format with nested subdirectories. Make sure all shapefile components are in the same directory with no subdirectories.
Error: "Unable to interpret the coordinate system in your shapefile"
The .prj file could not be parsed. Ensure your shapefile includes a valid .prj file, or reproject to WGS84 (EPSG:4326) using GIS software like QGIS or ArcGIS before uploading.
Error: "Directory does not contain a .shp file" or "Directory does not contain a .dbf file"
Each shapefile directory must contain both a .shp file and a .dbf file. Check that all required components are present.