Author Archives: Geomenke

About Geomenke

FOSS4G user/advocate/trainer | Conservation GIS specialist for hire | Co-author 'Mastering QGIS' | 14ers | Good coffee | Paleo | Fitness | Vinyl

Community Health Maps at Rising Voices 7

Last week Community Health Maps traveled to Boulder, Colorado to teach a pre-conference workshop at Rising Voices 7. The theme was Converging Voices: Building relationships and practices for intercultural science. The conference was hosted by the National Center for Atmospheric Research (NCAR). The workshop was well attended with about two dozen participants representing numerous AI/AN tribes and other organizations. These workshop was part of the Community Health Maps project and was funded by the National Library of Medicine (funding for the workshop was provided under a sub-award from the National Library of Medicine to ICF International).

The goal of Rising Voices is to “advance science through collaborations”. Participants learn how indigenous and western scientific knowledge systems can compliment one another and advance our understanding of important issues in our communities. The focus is on climate.

2019-05-20_164427

A photo taken by Dr. Angel Garcia (https://www.jmu.edu/geology/people/all-people/garcia-angel.shtml) during the workshop

At three hours the workshop was slightly shorter than normal. This allowed us to focus on field data collection with Fulcrum and web mapping with Carto. With a few minutes to spare Kurt Menke shared QGIS. Since he didn’t have time to really demonstrate the use of QGIS he focused on the open source aspect. As an open source project, QGIS is both GIS software and a community. As such it aligns with the ethics many communities try to foster at Rising Voices.

2019-05-22_080251

A field data collection selfie!

 

Discover QGIS 3.x – A Workbook for Classroom or Independent Study

Today Discover QGIS 3.x was published by Locate Press. Authored by Community Health Mapper Kurt Menke, this is an update of the original title, using QGIS v3.6 and covering spatial analysis, data management, and cartography. It is designed to teach mapping and GIS using QGIS. As such it begins with basics. It is a comprehensive up-to-date workbook built for both the classroom and professionals looking to build their skills.

It is designed to take advantage of the latest QGIS features, and will guide you in improving your maps and analysis.

The book is a complete resource and includes:

  • Lab exercises
  • Challenge exercises
  • All data, discussion questions, and solutions

What’s new in this edition:

  • Updated to QGIS 3.6
  • Fifteen new exercises
  • A new section, Advanced Data Visualization, covering:
    • Blending modes
    • Live layer effects
    • Geometry generators
    • Rendering Points
    • Time Manager
    • Native 3D
    • Mesh data
  • Appendices covering:
    • Keyboard shortcuts
    • Useful Plugins
    • Getting involved

To see what’s included in the book, download the Table of Contents (PDF). Discover QGIS 3.x is available in color as an ebook or paper back.

2nd_ed_draft_covercropped

The Basics of Using MapBox Studio for Web Mapping

MapBox is a very popular web mapping platform used by many social networking apps and news outlets. It includes a very powerful set of tools and comes with a modest pricing scheme.  The amount you pay depends on the web traffic your site receives, for many this will be next to free. As such this can be a great alternative way to publish interactive maps.

Uploading Data

If you have collected data using Fulcrum you will want to export that as a GeoJSON file.

geoJSONexport

To start you can create a free account at https://www.mapbox.com/.  Once logged in click on the Products menu, choose Studio. From there click the Get started link.  From your Studio dashboard click on Datasets.

  • Click the New Dataset button
  • Select Upload  
  • Drag your GeoJSON file onto the form and click Confirm and Create
  • After it has finished uploading click Start editing. The data editor will open and your points will be displayed on a dark basemap. Next you will export your data to something called a tileset. Web maps are composed of tiles for each zoom level. During this next step MapBox will generate all the map tiles for your dataset.
  • Click the Export button and select Export to a new tileset.
  • Name your tileset and click Export.
  • It will process your data. When it has finished click on the dataset name to return to your Datasets on your Studio dashboard.

MBUploadDataset

Creating a Style

Now that you have uploaded your data you will learn about map Styles. Click on the Styles link on the top row of your dashboard.

  • Click the New style button
  • Choose an existing style such as Basic Template and click the Create button.
  • The style template will open. You can rename it from Basic Template to something more meaningful. Here the style has been renamed to Demo.
  • Next search for your area of interest in the white box to the right. In the example below I have searched for Ann Arbor, Michigan and then zoomed in a little closer to the data collection area.
  • You can customize the styling for any and all of the layers that make up this template. Here I am darkening the brown used for buildings a bit. To do this I clicked on Buildings and changed the color with the color widget.
  • Once you have made the changes you desire click the Publish button. Click Publish again and you have created your own basemap style.

MBCreateNewStyle

Adding a Layer to Your Map

Now you can add your tileset to your map style. Click the Add Layer button and choose the tileset you created.

 

MBAddLayer

Styling Points

Once the layer has been added click on the Style tab of the layer. Next you will learn to give each type of Infrastructure it’s own point color.

  • Select the Color component
  • Click on Style with data conditions
  • The popup box for Choose a data field window opens. In this case the field is named Infrastructure so I begin typing Inf to more quickly locate the field. When you have found the field containing the categories for mapping, select it.
  • A Set values for box window opens. Select the first value e.g., Bench. The Data field will now read: Data field Infrastructure is Bench. Select the color for that item.
  • In the Set values for box window select the next item e.g., Sign and assign a color.
  • Continue until you have assigned colors to each value.

MBpointsdifferentcolors

Creating pop up windows takes a little more work. You can read the MapBox tutorial for that here.

Publishing a Map

  • When you are ready to share your map click the Publish button.
  • In the window that opens click Publish again and you Style will be published again and a url to your map will be provided.
  • You can also change the permissions here, and if you do you will receive a Success message.
  • When finished close the window.
  • Then click the Share button. You are given a url on the Share tab and a code snippet on the Use tab. The code snippet can be copied and pasted into a website to embed your map.

MBPublish

This is just a basic primer for getting started with MapBox Studio. There is a lot you can do with this platform. You can find more tutorials here.

Community Health Maps in Michigan: Four Workshops in Four Days in Four Cities!

This past week Kurt Menke traveled to Michigan and taught four Community Health Maps workshops for the University of Michigan. These were organized by the University of Michigan Libraries and were done in four days on four different campuses: Ann Arbor, Flint, Detroit Center and Dearborn. These workshops were part of the Community Health Maps project and were funded by the National Library of Medicine (funding for the workshops was provided under a sub-award from the National Library of Medicine to ICF International)

Blog

A map showing the four workshops and the route taken between them.

Due to great outreach by the University of Michigan team of – Tyler Nix, Marisa Conte, Alexa Rivera, Justin Schell, Sara McDonnell, Troy Rosencrants, Kui-Bin Im and Claudia Walters – the workshops had great attendance and ran like clockwork.

The first was held at the University of Michigan – Ann Arbor at the Hatcher Graduate Library.  Twenty eight people attended. The audience was mainly a mix of faculty and representatives of local public health/community organizations with a few students. The final hour was reserved for group discussion and Justin Schell did a fantastic job moderating. Ideas for mapping park safety and identifying underserved populations were discussed as projects where mapping could help.

IMG_0204

Participants at the Ann Arbor workshop

The second was held the following day at the UM Flint. We started in the University Center Happenings Room and moved to Thompson Library for the afternoon QGIS session. Forty five people came out for this second training, quite a bit more than we expected. This included some walk-ins and late registrants. In addition to faculty and students there were quite a few representatives from local county health departments and non-profits.

20190403_134426

UM – Flint workshop participants working on QGIS.

The third was held at the UM Detroit Center on April 4th. Thirty people registered for this workshop. This was probably the most diverse group including some UM faculty, plus Wayne State faculty, county public health staff (including some as far away as Saginaw County) and non-profit public health workers.

20190404_142046

Kurt Menke describing Help Resources at the Detroit Center

The fourth was held at UM Dearborn on April 5th. This was the smallest of the four with 20 registrants. However, this allowed us to get a little farther into the capabilities of QGIS.

20190405_103209

Data collection at the UM Dearborn campus.

One of the most helpful components was a web page Marisa Conte set up for the workshops. It initially had all the important details for each workshop, including driving directions, links to the slides and workshop data. This alone set a new standard for workshop outreach and organization. During the discussion on the first day she began adding url’s for sites containing useful data and other resources identified during the afternoon discussion. During the week this  evolved into what is now a fantastic resource for everyone who attended. This will be helpful to anyone implementing CHM related projects or those who weren’t able to attend.

For the week  123 people were trained in Community Health Maps! This is a record that may never be broken. However what came out of the week more than the numbers, is the incredible potential for projects that can make a real difference in these communities. I’m looking forward to working more with everyone I met. Thanks again to UM Michigan for organizing such a successful series of workshops.

QGIS 3.6 Noosa Released!

This past weekend QGIS 3.6 Noosa was released as the next stable release. You can visit the QGIS download site to find installers for Windows, Mac and Linux.

f335c2ee37b714ad6eec143246d947f09a5ff2f1

At the same time QGIS 3.4 Madeira became the latest long-term release. This means that version 3.4 will be supported for a calendar year with bug fixes. This is now the version you should install and  work with for the next year.

D0PBNsOXcAAgwDc

If you have not yet worked with the new 3.x line you can look at the visual changelogs here: Version 3.0 – Version 3.2 – Version 3.4. In general the QGIS 3.x line is a major upgrade from 2.x. I encourage you to install it and make a map!

Mapping Field Photos in QGIS

We are on the eve of another QGIS release. Version 3.6 will be released any day now. This will mark an important milestone in QGIS development. QGIS 3.4 will become the first long-term release for the 3.x line. With 3.6 will come one specific change pertinent to this topic: the Raster Image Marker. Consider this post a small preview of what you can expect with v3.6!

In the typical CHM workshop attendees are shown how to use Fulcrum to download data collection points. These include photos. It is also possible to quickly and easily map any geotagged photo from your smartphone using just QGIS. For this example, I am using some photos I took yesterday during a hike with my iPhone.

    1. Using the Processing Toolbox, search for and open the Import Geotagged Photos tool and set it up as shown in below, pointing the tool to the folder containing your photos and naming the output point file.ImportGeoTaggedPhotos
    2. The data are in geographic coordinates (latitude and longitude). It will be helpful to project the photopoints to a Cartesian coordinate system such as UTM or State Plane. To do this right-click on the photopoints layer in the Layers Panel and choose Export –> Save As from the context menu.
    3. In the Save Vector Layer As window save a new copy of the layer. If you need help determining which coordinate system to use feel free to reach out to Kurt Menke (kurt at birdseyeviewgis.com). He is happy to help!SaveVectorLayerAs
    4. Now you have a couple interesting ways to visualize these points. First you can generate something called a Wedge Buffer.  These are pie shaped polygons that you can set up to represent the field-of-view of the photograph.wedgebuffers
    5. Search the Processing Toolbox for the Create Wedge Buffers tool.  The Input Layer will be the reprojected photopoints. The Buffers output can be a shapefile in your photos folder. The real trick is using what is known as a Data Defined Override. In QGIS you can use values in attribute columns or expressions for tool inputs instead of putting in a single typed value. In the animation below, a Data Defined Override is being used for the Azimuth parameter. This determines which way the wedge will be pointed. The Import Geotagged Photos tool extracts more than just photo location. It also extracts direction, altitude etc. Here the Azimuth parameter is simply being pointed to the direction attribute column and this orients the wedge in the direction the photo was taken! The only other parameter to set is the Outer Radius. This determines how long the wedge will be. Here it is being set to 300 meters.wedgebuffers
    6. Now there are both photo locations as points, and wedge buffers showing the field-of-view! wedgebufferscreated

 

  1.  Next let’s improve the default symbology for the wedge buffers using a Shapeburst fill. You will open the Layer Styling Panel (F7) and set the wedge buffers as the target layer. Next select the Simple Fill component and switch the Symbol layer type from Simple fill to Shapeburst fill. You can then set the two colors to use. Here I am using red and transparent. You can then set a distance for the effect and play with other settings like Blur strength. shapeburst
  2. Finally you will learn a feature that will be released with QGIS 3.6: Raster Image Markers. Here the target layer is the photopoints layer. The Symbol layer type is being switched from Simple fill to Raster image marker. Then the Data Defined Override for the image is being set to the photo field, and the Rotation parameter is being set to the rotation field!rasterimagemarker
  3. Now the photos have been mapped. Their field-of-view is being represented by a wedge buffer, and the photo itself is added to the map with a Raster image marker!photosmapped

Stay tuned for more tips on mapping and updates about this latest QGIS release.

A Preview of Coming Attractions

2019 is off to a fast start with the Community Health Maps program!

The QGIS portion of the CHM labs found on the Resources page are being updated. Look for these in the next several weeks. These were last updated in 2017. In one month a new long-term release of QGIS will be released: QGIS 3.6. This will be the first long-term release of the 3.x line. If you have not yet switched over to QGIS 3.x, March will be the time to do so.  At this time 2.x line will be officially retired. You can revisit last years blog about what’s new in QGIS 3 to see the sort of features now available. I will be posting an post next month about what you need to know about QGIS 3.6, as well as an announcement when the new training materials have been completed.

There are a series of QGIS workshops scheduled for the spring:

April 2 – University of Michigan Ann Arbor

April 3 – University of Michigan Flint

April 4 – University of Michigan Detroit Center

April 5 – University of Michigan Dearborn

May 14 – Rising Voices 7 – Converging Voices: Building relationships and practices for intercultural science. – Boulder Colorado

June 3-7 – ASTHO Climate and Health Summit

June 17-21 – ASTHO CHM and Vector Borne Disease Workshop

Happy Mapping! I hope to see you in the new year!