foss4g_2017_geonode_solr

A GeoNode quickstart

In this first tutorial of the workshop you will use GeoNode as an end user. You will upload some layers using the user interface, then you will compile metadata for these layers and create a map with them.

You will use the datasets you are uploading to GeoNode in the next workshop’s tutorials, so make it sure to follow these instructions carefully.

You can find the shapefiles that are needed for this tutorial in the data/shapefiles directory. They are zipped, and you don’t need to unzip them as GeoNode can import zipped shapefiles.

Overview of the datasets

The datasets you are using here are part of the WorldMap Boston Research Map.

Harvard WorldMap is an online, open source mapping platform developed to lower barriers for scholars who wish to explore, visualize, edit, and publish geospatial information.
The WorldMap platform is based on an open source stack, including GeoNode, and it is developed and maintained by Harvard CGA

WorldMap Boston Research Map is an open source web mapping system that is an ongoing project of the Boston Area Research Initiative (BARI) in conjunction with the WorldMap team and built on top of the WorldMap platform. It is intended to help faculty and their students, policymakers and practitioners, and community members to explore the neighborhoods of Boston from their computer. Visitors to BostonMap can:

  1. Interact with the best available public data for the Boston region, while also uploading their own data.
  2. See the whole Boston area but also zoom in to particular places.
  3. Accumulate both contemporary and historical data supplied by researchers and make it permanently accessible online.
  4. Work collaboratively across disciplines and organizations with spatial information in an online environment.

Here is a quick overview of the datasets you are going to use:

Upload datasets to GeoNode

In this tutorial you will upload the shapefiles to GeoNode. Here is how you can upload one of the datasets. Just repeat the same process for all of the datasets.

Click on the “Data > Upload Layer” menu. Then drag and drop the biketrails_arc_p.zip file to the “Drop files here” area, or use for this purpose the “Choose Files” button.

Upload Shapefile

In a real use case scenario it would be possible to give granular permissions for this dataset to users or group of users. It is possible to do this using the “permissions” box.

For the purpose of this workshop we will leave default permissions for each datasets: this means that anyone will be able to see and download the datasets, but only the data owner and GeoNode administrators will be able to change the metadata, edit the styles, and administer the dataset.

Click on the “Upload Files” button. If everything works smoothly, you should see the following info box at the end of the upload process:

Upload Success

Now click on the “Layer Info” button, and you will get to the layer page.

Layer Page

Using the map widget you can browse the layer, use the “Identify” tool to query it, change the base maps and access to the style editor.

Metadata edit

Now, you are going to edit some of the layer’s metadata.

From the layer page, click on “Edit Layer” button, and then on “Edit Metadata” button.

Edit the biketrails_arc_p layer using the following information:

Edit Metadata

Repeat the process for the other datasets

Repeat the upload process for each shapefile, and compile the metadata using this information:

Create a map

Now go to the layers page (“Data > Layers”).

You should be able to see all of the layers. You should also be able to filter layers based on a text search, keywords, categories, regions and even date ranges.

Layers Page

What you are going to do now it is to compose a map with these layers you just uploaded. For this purpose click on the cart icon at the right of each layer. They will be added in the cart area as in the following figure

Layers Cart

At this point click on the “Create a Map” button: the map composer, which is based on GeoExplorer, should open with the layers in the map.

Center the map in the Boston area. Then drag and drop each layer in the table of contents area, and reorder all of the layers as in the following figure

Map Composer

Edit the style of the layers

Using the GeoNode map composer it is possible to edit layer styles. Let’s change the style for the “MBTA Subway Lines” layer.

Right click on that layer, and press “Layer Styles”. The Styles Editor widget will open.

For this layer, we will create one rule for each Boston Subway Line (Blue, Green, Orange, Red, Silver). The “MBTA Subway” layer has an attribute, named “LINE”, which is set to “BLUE”, “GREEN”, “ORANGE”, “RED”, “SILVER”, and that can therefore be used for this purpose.

Select the default rule (named “Blue Line” in the figure), and press the “Edit” button under it.

Style Editor

In the “Basic” tab, type “RED” in the “Name” textbox and select a Red color. As a width value, type “5”.

Style Editor

In the “Advanced” tab, check the “Limit by condition” checkbox. Then add the following condition: “LINE = RED”, and save it.

Style Editor

Repeat the process for the other lines. To add new rules to the default one, click on the “Add” button under the “Rules” area.

Those are all the rules which you will need to add:

This is how the layer style should look at the end:

Style Editor

Now, using the same approach based on rules, edit the style for the “Socioeconomic Status (2000-2014)”.

Create three different rules, using the attribute SESdx14:

Rule 1:

Rule 2:

Rule 3:

Finally for the layer “Bike Trails” remove one of the default two rules. Make the other rule of a purple color.

Your map should look similar to this now:

Final Map

Save the map

As a final step, do not forget to save the map by clicking on the “Map > Save Map” button.

Name the map something like “Boston Map at FOSS4G2017”