Configure and Import Map Features in EarthRanger Admin

Map features in EarthRanger represent key geographic data such as boundaries, roads, and points of interest that help contextualize real-time operations. These features are typically imported as geospatial files (shapefiles or GeoJSON) and can be customized for clear and meaningful map visualization.

This guide walks you through how to prepare, import, and organize geospatial data in EarthRanger. You’ll also learn how to create the organizational structure of Display Categories and Feature Classes, and understand when drawing features directly might be a better option. 

How Map Files Are Organized

EarthRanger groups map features into two levels of hierarchy:

  • Display Categories: Top-level groupings (e.g., Hydrography, Boundaries).
  • Feature Classes: Nested under Display Categories, representing folders for specific feature types (e.g., Rivers, Park Zones).

These folders appear under Map Layers in both the Admin and Operator interfaces. You can use EarthRanger’s defaults or create custom categories to fit your needs.

Overview of the Import Process

The process for adding map features follows these key steps:

  1. Prepare a geospatial file
  2. Verify or create the corresponding Display Categories and Feature Classes
  3. Add the file to EarthRanger
  4. Confirm features are imported correctly
  5. Customize appearance as needed

Step 1: Prepare a Shapefile or GeoJSON File

EarthRanger supports two types of geospatial files: Shapefiles and GeoJSON. These can be created using a GIS tool like QGIS

Your file must meet the following requirements:

  • Format: Files must be Shapefiles (.shp) or geoJSON files (.geojson). 
  • Projection: Files must use the EPSG:4326 projection.
  • Attributes: Each feature must have an attribute with a unique name. 
    • Ensure the column contains no null values.
    • Ensure the attribute table includes a column with unique values for each feature.
    • This attribute will be used by EarthRanger to identify and name the features. 
  • Layers: Files must contain only one layer but can include multiple features.
  • Feature Type: Each file must contain only one type of feature (e.g., polygons, lines, or points). Create separate files for different feature types.
  • e.g. One shapefile for park boundaries (polygons) and a separate shapefile for rivers (lines)

File-Specific Requirements

Shapefiles:
If using shapefiles, collect the following file types into a single compressed (ZIP) file before importing into EarthRanger:

  • .cpg
  • .dbf
  • .prj
  • .shp
  • .shx


GeoJSON Files:
GeoJSON files are self-contained and support all spatial data in a single file, requiring no additional preparation.


Grouping Recommendations:

To ensure proper organization in EarthRanger:

  • Include in a single file only features that should belong to the same dropdown folder (Feature Class) in EarthRanger.
  • If features should appear in separate Feature Classes, use separate geospatial files even if they share the same geometry type.


Example:
In the example below, three geospatial files are uploaded into EarthRanger:

  • Lakes.geojson
  • Secondary_rivers.geojson
  • Primary_rivers.geojson

Each file is imported into its corresponding Feature Class. These Feature Classes (Lakes, Primary Rivers, and Secondary Rivers) are grouped under the Display Category Hydrography.

 
 

This is what the Attributes Table looks like for the Primary_Rivers.geojson file, note the unique names in the Nombre column:


Step 2: Verify/Create the corresponding Display Categories and Feature Classes

Before importing your geospatial file, ensure that the appropriate Feature Class and Display Category are set up in EarthRanger. Follow these steps:

  1. Check Existing Feature Classes
    1. Navigate to Map Layers > Feature Classes in EarthRanger admin page.
    2. Review the list of existing Feature Classes to see if one matches your geospatial file.
      1. For example, if your file represents rivers, check for a Feature Class like Rivers under the relevant Display Category (e.g., Hydrography).
  2. Create a New Feature Class (if needed)
    1. If no suitable Feature Class exists:
      1. Select Add Feature Class.
      2. Provide a clear, descriptive name (e.g., Primary Rivers, Roads).
      3. Assign the new Feature Class to an existing Display Category or create a new one by selecting the green plus icon.
    2. Ensure the Name Attribute matches the column in your geospatial file that contains unique feature names.
    3. Optionally, specify a Feature Class Attribute to further classify your features.
  3. Save your changes.

 

Pro Tip: For more details about managing Feature Classes, refer to the Feature Classes article.

 

Step 3: Add Files to EarthRanger 

Once your geospatial files are ready, follow these steps to upload them to EarthRanger: 

  1. Access the Feature Import Files Page
    1. In EarthRanger Admin, navigate to Map Layers > Feature Import Files.
  2. Add a New File
    1. Select Add Feature Import File.
    2. Choose the appropriate file type (e.g., Shapefile or GeoJSON).
  3. Provide File Details
    1. Enter a name and description for the file to help identify its contents.
    2. Select the corresponding Feature Class.
  4. Set Attribute Fields (Optional)
    1. Specify the Name and ID fields according to the column names in your file’s attribute table.
    2. By default, EarthRanger uses columns labeled Name and ID, automatically recognizing these if they exist.
    3. Click Save.

Example: In the file Primary_rivers, the attribute table column containing feature names was labeled Nombre. This column was set as the Name Attribute during the import process, ensuring proper feature identification in EarthRanger.



Step 4: Verify Features are Imported Correctly

After importing, confirm that the features appear correctly on the map:

  1. Go to the main EarthRanger site and click on the Map Layers tab.
  2. Select Features to view the imported data.
  3. Refresh the browser to ensure the changes are displayed.


Step 5: Customize Feature Types

Once your map features are imported into EarthRanger, you can enhance their visibility by customizing their appearance.

  • Polygons and Lines: Modify settings such as fill color, stroke color, stroke width, and opacity.
  • Points: Configure options like icon size and image URLs for better visual distinction.
     

For step-by-step instructions on how to apply these customizations, see the Feature Classes article. 

 

Alternative: Draw Features directly in EarthRanger

If you don’t have a geospatial file prepared, EarthRanger also allows you to draw map features manually within the Admin interface. This is a useful option when you need to create one-off boundaries, markers, or shapes without using GIS software.

For a full walkthrough of the drawing workflow, including detailed tool usage and editing tips, see: Draw and Add Map Features in EarthRanger Admin

 

 

 

 

 

Up Next: Draw and Add Map Features in EarthRanger Admin