Python Programming

Clifford downloaded some data in geopackage format for the exercises given, but had some trouble opening them with QGIS 3.0. He was successful after three tries.

The group looked at using the help() function to learn about the QGIS objects, at the python prompt, help(iface) returned documentation on the Qgisinterface class.

Using Field Calculator with Geometry Attributes

Peter asked for help from the group. He has data from the King County GIS Open Data Portal and wants to add longitude and latitude columns using QGIS 3.0 and feed the result into the kepler.gl data visualization tool.

He obtained a shape file of noxious weed data

Previously he had not been able to add the fields using QGIS 3.0 but was able to do it using ogr2ogr.

The group explored using the field calculator in QGIS 3.0 to get the job done.

Peter said he tried it previously with 109k records, and it never completed.

Using $x from the Geometry group, it worked very quickly with 56 records.

We postulate that Peter did not enter edit mode first, which is necessary, and perhaps the error messages were not coming up on top of the various open windows.

It was suggested to use Vector -> Geometry Tools -> Add “something” but the group did not attempt that option.

After adding the latitude and longitude, Peter used the full data set with kepler.gl.

It did not work in Chrome on MacOS.

It did work in Safari.

QGIS 3.0.3 for MacOS

Clifford shared that QGIS 3.0.3 is available for mac now.

Paul was able to successfully install it.

Interpolated Surface

Helena shared a problem they are having trying to emulate some of their existing solutions with open source tools. They want to create an interpolated surface clipped to a region, updated every five minutes from a realtime data stream.

Currently they are using the interpolation plugin in QGIS and then clipping the result with a polygon.

They are trying to use the graphical modeler, but the plugins are not accessable from the graphical modeler.

They have not been able to get adequate graphic results using the interpolation provided by GRASS.

Sources of Ortho Imagery

Josh asked what sources of ortho imagery were available for use with QGIS.