Using QGIS with Trap.NZ - Part 3 Connecting QGIS to Trap.nz

#1

This is the final in 3 parts. This guide assumes you have been following along and have installed QGIS and added a basemap.
In here, I will connect QGIS to Trap NZ and start plotting some data onto the map.
I also create a heatmap showing the hot spots where a lot of catches have been made, but hit a wall when it comes to filtering this catch data.
If anybody can figure out how to do this, then do chip in - I may arrive at the solution myself in due course, at which point I will update the document or write another one.

https://drive.google.com/open?id=1wk6FNKQwkuIakJP3jQDdc-7KRJ-dqKhR

#2

You’re a legend David! There are a few others keen on on the map feeds so we’ll have a look at what we can do with regard to filtering.

#3

Thank you @root, I’m learning the ways of GIS and this is my only use case at the moment so I’m prepared to accept my spells and incantations to make it do what I want are somewhat unrefined. I’m hoping that other people will be able to collaborate when I get stuck.

#4

Kia ora David,
Well done on introducing QGIS into the mix and making it known in this forum.
I had some fantastic success with QGIS - plotting trap catch over the course of a year really shows hotspots and invasion vectors.
While I will not consider myself a seasoned geospatial expert nor a gifted programmer, the interface between QGIS and Python is simply brilliant. Most of my routine jobs are turned into python scripts, so they are done automatically.
Have a look at the time manager plugin from Anita Graser. Had some good success with this one using QGIS 2.x - but, as you mentioned, data filtering can be cumbersome, so I edit data as csv. Just found out they updated the plugin to be used with 3.x.
Cheers

1 Like
#5

Thank you, I will take a look into that time manager plugin. - I’m also very interested to see month by month changes for catch locations.
I have been looking into scraping the data out of trap.nz for the projects I am attached to and into a local PostGIS database rather than csv - I am on a learning curve for PostgreSQL databases now too!

#6

Time Manager looks like the tool for what I have in mind.


I’m interested in being able to make an animated heat map based on this which also uses Time Manager.

#7

Hi David,
Please be mindful of any postings pre 2017, as most of them are referring to QGIS 2.x, which in return uses Python 2.7, that is incompatible with Python 3 (altered syntax) and QGIS 3.x.
To mitigate I tend to run QGIS 2.x and QGIS 3.x parallel on my machine, until I can eventually migrate 100% to 3.x. Most of my animations were done with 2.x as most plug ins have not been updated to the 3.x LTS yet.
Thank you for the link btw, it looks very interesting.
Cheers

#8

I have made a small update to the linked document to clarify the credentials that you need to give to the trap.nz feed as follows:

:bulb: TIP: The username is not your email address, (although trap.nz website lets you log in with your email address as well), you will need to use the username that you gave when you signed up to trap.nz, you can find this by clicking on “My Account” at the top of the screen in trap.nz website after you sign in, you will see your username in large red letters at the top left of the screen.