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!

 

 

 

A Year End Thank You to John Scott

Earlier this fall John Scott retired after serving as a consultant and advisor to the National Library of Medicine for more than 20 years.  Community Health Maps was born from his inspiration and he was the driving force behind the program.  In his retirement the program will continue with his long-time partner Kurt Menke (kurt@birdseyeviewgis.com) and NLM staff.  John will still participate in select CHM activities and be an advocate for the program. Thanks to the solid foundation he laid, the program is thriving. An online tutorial was recently unveiled which provides continuing education credit (CE)., including through the Medical Library Association (MLA, http://www.medlib-ed.org/products/1847/community-health-maps), and/or a certificate of completion. There are also several CHM workshops planned for 2019.

To honor John Scott we are re-posting an interview with him from April of 2017. Happy New Year to all the Community Health Mappers!  We hope to see you in the new year.

*********************************************************************************

April 13, 2017
Interviewer: Kurt Menke, GISP

What is your background?

My professional experience has been in two areas: disaster risk reduction and reducing health disparities. In 1990 I formed the Center for Public Service Communications. Since

JCScott

John Scott – President – Center for Public Service Communications (CPSC)

then I have provided guidance and expertise to individuals, communities and public sector organizations. I help them apply telecommunications and information technologies to reduce health disparities, improve health services to underserved
and disenfranchised individuals and communities and to improve the collection and sharing of scientific, technical and community knowledge. The end goal is to reduce human vulnerability to natural hazards. I’ve been a consultant and advisor to the National Library of Medicine for more than 20 years.

Through the years, I’ve realized that my skills seem best suited to working with change agents. These are individuals and organizations whose missions focus on enhancing capacities and improving access to technologies that enable positive change at the community level. I guess the tag line says it best, the mission of CPSC is: “Empowering competent enthusiastic people to do good things.” That’s my story and I’m stickin’ to it.

You’re the original architect of CHM, what was your inspiration?

 Well, Kurt, I would say that we, together, have been architects of CHM, with a long-term commitment and guidance from the National Library of Medicine. As you will remember, it was back in 2003 that we met. I had organized a meeting of the National Congress of American Indians President’s Task Force on Health Information and Technology in Honolulu, Hawai’i, hosted by the Native Hawaiian health organization Papa Ola Lokahi.

At that meeting, you gave a presentation on work you were doing with the National Indian Council on Aging. At that moment, it was obvious to me that mapping would be a great tool for underserved community-oriented environmental health advocacy groups and public health agencies. It could help them engage with community residents and empower them to collect, maintain and visualize their own data, rather than relying solely on national or state agencies, or majority-institution partners to provide data to them. It took us a while to settle on our current course but the ride was interesting and the result was, I think, worth waiting for.

Why do you think CHM has been so successful?

While access to quality health information is frequently a focus of attention in efforts to reduce health disparities in underserved communities, the ability to visualize spatial data and information has received less attention. This is in part because the historic scarcity of affordable and intuitive data collection and mapping applications. Additionally, the cost to train users, and sustain operations, has been prohibitive for communities and community-oriented organizations whose health budgets are already strained. I think we’ve found a model, with the Community Health Maps workflow, that addresses these historical challenges.

Without equal access to GIS tools, communities might have access to completed maps, but they cannot actively participate in, much less create and be responsible for their own initiatives. I think CHM has been successful because the approach we have envisioned enables that access, and CHM users thus far have appreciated the freedom they have, to explore ideas and to create hypotheses that they have not had access to until now.

What sets CHM apart from other public health mapping initiatives?

I think what sets CHM apart from other public health mapping initiatives is that our approach involves using relatively low cost tablets and smartphones – technology that has become ubiquitous and with which users are comfortable — combined with a selection of low/no-cost applications for data collection and visualization. With these tools, data can then be analyzed and presented without purchasing expensive software licenses. These tools allow expert and novice users, with little budget resource, to implement mapping workflows. Introducing such workflows to community-oriented public health professionals empowers users to collect, analyze, display and share their own spatial data. Importantly, many of these tools can also be used to share data collected using other programs, such as ESRI’s ArcGIS and national/state- derived databases such as CDC’s Behavioral Risk Factor Surveillance System and Public Use Data files from National Center for Health Statistics.

Where would you like to see the project go from here?

What we have developed is essentially available at no or very little monetary cost. I don’t want to underestimate or undervalue the labor and intellectual time that is required to learn how to use the tools. But we believe that organizations and individuals who work to improve the quality of life in underserved communities will see the benefit of using the CHM resource as a worthwhile commitment of time.

The National Library of Medicine has been a great partner and continues to plan an integral part in planning the course for CHM. Through NLM’s outreach efforts we have several successful pilot projects that readers of this blog will be familiar with. Through these continued efforts of sharing the tools through NLMs network of libraries I hope the use of CHM will grow. My hope is also that more academic health schools will introduce the CHM into their teaching and research programs as have the University of Washington and the Medical University of South Carolina, two of our partners. I’d also call to the attention of your readers the labs that you have developed and are available on this blog. My hope is that they will encourage prospective CHM users to try the workflow at their own pace.

QGIS 3.4 Released!

On November 2nd QGIS 3.4 ‘Madeira’ was released. It is the first long-term release in the new 3.x platform.  To install it you can visit the QGIS Download page. Installers are ready for Windows, Max OSX and Linux.

QGIS VERSIONS
Remember QGIS always has two main versions available. There is the long-term release, which is the most stable because it is supported for one calendar year. In addition there is always a latest release. QGIS 3.4 falls into this former category.

QGIS 3.4
This is a great time to update your version of QGIS. Especially if you are still using the 2.x line. QGIS 3.x is fast, stable and feature rich. If you are still a 2.x user there is a huge list of new features and useful changes. At this point most of the popular plugins have been migrated over from 2.x to 3.x. The chart below shows the steady migration and growth of 3.x plugins. You can review the visual changelog for this version here. You can also find the changelogs for versions 3.0 and 3.2.

Plugins11-1_18

Try Out the New Community Health Maps (CHM) Online Tutorial!

By Colette Hochstein

A Community Health Maps (CHM) online tutorial is now available. It is a free, self-paced online course from the National Library of Medicine (NLM), which provides guidance on using low cost mapping tools to collect, analyze, and visualize mapping data.

Community Health Maps seeks to empower communities and individuals by helping them collect and map health-related data. The CHM tutorial helps users build a plan to collect data, create forms to capture data points, and use mobile devices to collect data. The CHM tutorial can also aid in creating online and printable maps that can be customized to meet the needs of specific populations and stakeholders.

The tutorial covers how to create a basic workflow for collecting and mapping field data via step-by-step instructions on how to (1) develop a data collection form, (2) collect field data according to the data collection plan, (3) create online dynamic maps of the data collected, and (4) create static offline publishable maps of field data using desktop software.

As a bonus, this course provides continuing education credit (CE), including through the Medical Library Association (MLA, http://www.medlib-ed.org/products/1847/community-health-maps), and/or a certificate of completion. For continuing education credits and/or a certificate of completion, please enroll in the course on the free Learning Management System (LMS).

OnlineTutorial

If you are new to Community Health Maps, and are not sure how this mapping workflow can benefit you and your organization, you can search this blog for case studies. In particular you may want to look at the selected case studies linked to below. Read about how students and professionals have used Community Health Maps:

 

UMD Students Learn How to Map Health Issues

By Angela Kim & Colette Hochstein

On October 4, 2018, National Library of Medicine® (NLM) Research Assistant Julian Argoti and University of Maryland (UMD), School of Public Health intern Angela Kim spoke to the “Professional Preparation in Community Health” class at the University of Maryland, School of Public Health, College Park. The 75-minute class was attended by approximately 45 undergraduate students in the UMD Behavioral and Community Health (BCH) program. The presenters introduced NLM’s Community Health Maps (CHM) blog and facilitated a hands-on activity.

UMD1

UMD Fall 2018 “Professional Preparation in Community Health” Class

The presentation covered a basic introduction to the tools and workflow in CHM. The students were asked to use Fulcrum, a low-cost tool, to build a custom data collection form for the first step of the CHM workflow – data collection. They discovered first-hand how intuitive the tool is. After creating their own custom data collection form on the topic of their choice, the students left the classroom to collect data points around the School of Public Health building.

UMD3

Students testing functionality of water fountain.

On their return, the students explored maps of their data points on Fulcrum. Many noted that the process of collecting data points was easy and fun. UMD Professor James Butler mentioned that although drinking a good amount of water is emphasized at the School of Public Health, he had not previously noticed that there is no water fountain near the faculty lounge. His comment underscored that issues are often not observed until actively examined, as during the mapping process.

UMD2

Students collecting data points on water fountain locations

The class ended with Professor Butler concluding the class by reiterating how CHM can serve as a useful tool for visualizing many of the different health issues discussed in class.

The students were alerted to the free new online Community Health Maps online tutorial, a self-paced course from the NLM designed to help users gain the skills needed to use Community Health Maps.

QField – A QGIS Related App for Data Collection

QField is an application for collecting field data via an Android device. It was started 4-5 years ago by the Swiss company OPENGIS.ch LLC which also employs several core QGIS developers. QField has reached the point where it rivals most data collection apps. The only reason we have not been using it for Community Health Mapping workshops is that it is not available for iOS. This is simply because the open source license used by QField does not allow it to be wrapped into a proprietary software license like the one Apple employs for it’s store.  If however, you are a Community Health Mapper who uses Android it is a fantastic choice.

NOTE: It is possible to set up an app which is compatible with iOS but does not participate in the App Store. This solves the licensing issue. Setting up an app this way necessitates becoming part of the iOS Enterprise Program which costs money.  QField developers would like to make this happen, and it will likely involve iOS users donating to QField.

9xQCp89z

QField Logo

Although QField is rooted in QGIS code it is not a miniature version of QGIS. Rather it is a streamlined data collection app. As they say, “the buttons are few and they are large,” so you can work with it out in the field. QField lets you create a map in QGIS and upload that map to your mobile device. From there you can collect data.

The workflow for QField looks like this. You begin by making a QGIS project on  your computer. Importantly this project will contain the point, line or polygon layer(s) you want to populate in the field. (NOTE that Fulcrum only allows the collection of points!) This means you think of your survey form and data to be collected in the office, and create fields in your GIS layer(s) for each question you want to answer. With a little bit of QGIS editing familiarity this isn’t any more difficult or time consuming than creating a form in Fulcrum.  You then upload the folder containing the QGIS project and data to your mobile device. The GeoPackage data format, which is the default for QGIS 3.x, works great with QField. There is even a QGIS Plugin named QFieldSync that facilitates migrating your project to your device. Once the data has been copied to your mobile device you can open your QGIS map file using QField.

Qfield1

Screenshots showing (left to right) selecting Mode, setting the Mode to Digitize and choosing the active layer. Images from http://johnhickok.com/

QField uses the same rendering engine as QGIS so the map will look identical to how it did in the office.  Once the map is open you can select from one of two modes: Browse or Digitize. When collecting data you would choose Digitize. Then select the layer you want to work with.

Qfield2

Screenshots (left to right) showing the map in QField, clicking the edit button, populating the attributes and the resulting point. Images from http://johnhickok.com/

For public health officials with security concerns QField is a great fit because there is no third party cloud platform involved. The data is not being streamed across the internet. All the data is stored locally on your mobile device. You can simply use the My Files app on your device to navigate to your GeoPackage file and email it to yourself. If it is too large you can connect your device to you computer to download it or use a data sharing app such as DropBox or Google Drive.

Since this is an open source project you can request new features and report any bugs you encounter by contacting the developers! Since QField doesn’t cost anything to download and use, you can also consider donating to the project to help it continue. Even small donations are helpful to projects like this. Doing this makes QField better for everyone. I encourage you to try it out.