Using One Shapefile to
display Multiple Map Layers in ERMA
I thought I was late to the party learning how to utilize
one shapefile as the basis for multiple map layers simultaneously in ERMA. However, I soon discovered that most seasoned
ERMA uploaders either didn’t know this workflow or were under the impression
that this creates a database conflict in ERMA (it doesn’t). Hence, a blog post!
Case study: I received
model outputs that contain environmental data for a large number of grid cells
over a study area. For each grid cell in
the attribute table, data are provided for every month over a period of 7 years
(Figure 1). My goal was to create layers
in ERMA that show the environmental data by month and year. This shapefile is around 30 megabytes, so duplicating
it and uploading it to ERMA multiple times in order to have a shapefile for
each layer to point to would have occupied a lot of space both on my computer
and in the ERMA database.
![]() |
| Figure 1. Master shapefile containing data for multiple months/years to be uploaded. |
Instead, you can upload the master shapefile once, and set
up multiple layers in ERMA for months/years of interest. Each map layer will have symbology that
references a different column in the same shapefile’s attribute table.
The workflow: do any
processing and have the master shapefile zipped and ready to upload. Run through a typical upload, and create your
first layer for a month/year of interest, and set up the symbology to display
as you’d like it to (Figure 2).
![]() |
| Figure 2. One layer’s symbology for a particular month/year. |
Once
you have one layer set up, the workflow changes for the remaining layers. Now, go to the Admin menu in ERMA and select “Map
Layers” in the drop-down list. Search
the list and locate the first layer you created (I used the “F” button to
filter for map layers containing a keyword specific to my dataset) (Figure 3).
![]() |
|
Figure 3. Search for
and locate your first map layer.
|
Once you’ve found it, scroll all the way to the right in the
Map Layer list and click “copy” (Figure 4).
![]() |
|
Figure 4. Scroll to
the right, and click copy, to make a copy of your first map layer.
|
Once
you’ve clicked “copy” the following screen will appear (Figure 5). Give your new layer a name that is different
from the original map layer. In my case,
it made sense to name layers with the month/year of interest in the title. Also write a description for the new layer,
to be displayed in the table of contents.
Next, notice that ERMA tells you what the original shapefile was, and
gives you a pull-down box to locate a shapefile for your new layer. Simply find the same original shapefile in
the pull-down list. Then click “copy map
layer.”
![]() | |||||
| Figure 5. The copy map layer window in ERMA, with the fields you need to populate outlined. |
Once you click “copy map layer,” ERMA will tell you what
field was originally used to categorize data, and ask you to select a class
item for the new layer (Figure 6). I
selected a different month/year. Then
click “copy map layer” again.









No comments:
Post a Comment