Importing Geofences from KML/KMZ

Geofences
Reading Time:
5 min read
Geofences on the map

Import geofences in bulk using KML or KMZ files from Google Earth or other GIS tools. This is the fastest way to set up many geofences at once.

What are KML/KMZ Files?

  • KML (Keyhole Markup Language) - XML format for geographic data
  • KMZ - Compressed KML file
  • Created in Google Earth, Google Maps, or GIS software
  • Contains polygons that define geofence boundaries

Preparing Your File

In Google Earth

  1. Open Google Earth Pro (free desktop application)
  2. Create polygons for each job site or boundary
  3. Name each polygon clearly (this becomes the geofence name)
  4. Right-click on the folder or polygon
  5. Select Save Place As
  6. Choose KML or KMZ format

File Requirements

  • Polygons must be closed shapes
  • Each polygon should have a unique name
  • Avoid overly complex shapes (many points slow performance)
  • Test with a small file first

Importing to CLUE

  1. Navigate to Geofence in the Directory section
  2. Click Import or the upload icon
  3. Select your KML or KMZ file
  4. Preview the geofences to be created
  5. Confirm names and adjust if needed
  6. Click Import to create all geofences

After Import

Once imported, you can:

  • View all new geofences on the map
  • Edit individual boundaries if needed
  • Rename geofences for clarity
  • Set up alerts for specific geofences

Common Issues

Import Fails

  • Check file format is valid KML/KMZ
  • Ensure polygons are properly closed
  • Remove any corrupt or invalid shapes

Shapes Don't Appear Correctly

  • Check coordinate system (should be WGS84)
  • Simplify complex polygons
  • Verify shapes aren't too large

Tips

  • Organize geofences into folders in Google Earth before export
  • Use descriptive names that match your project naming conventions
  • Import job sites in batches by region or division
  • Keep a backup of your KML files for future reference