LIST Open Data - QGIS Style Sheets

Tasmania specific bushwalking discussion.
Forum rules
Tasmania specific bushwalking discussion. Please avoid publishing details of access to sensitive areas with no tracks.

LIST Open Data - QGIS Style Sheets

Postby tastrax » Sat 02 Jun, 2018 11:11 am

Hi Folks,

I am doing some work in QGIS 3.0 using the free data available from the LIST Open data site https://listdata.thelist.tas.gov.au/opendata/

If anyone is interested I would be happy to share style sheets for layers to make everyone's life a bit easier and to encourage use of QGIS.

Style sheets allow you change the line colours, thickness etc at different zoom levels as well as change when labels appear and disappear. A few samples might also help you get the hang of styles, labelling and QGIS in general.

I have attached one for the contours layer (in a zip file).

QGIS_Contours.PNG

contours10m.zip
(3.66 KiB) Downloaded 42 times
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sat 02 Jun, 2018 1:42 pm

Hi Phil,

I haven't upgraded to QGIS 3 as yet and I'd like to ask a couple of questions I hope you don't mind.
Currently using 2.18.19.1 and I was wondering if 3.3 can be set up without uninstalling 2.18.
My concern is that I have 2.18 just the way I want it and I don't want upgrading to send me back to the start set up wise.
The impression I get from what I read is that 3.3 is a whole new ball game....is that the case?
It's a fantastic program and I've been using it since 2.14??? or so thanks in advance.

Neil.
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Sat 02 Jun, 2018 4:28 pm

Yep, you can load 3 and it will go in a completely separate installation folder, You can also open any old projects in 3.0 BUT if you style things with any of the new styling features then you may no longer be able to open the projects in 2.18.

If you do set up 3.0 then you can also start getting it up to the same spec as your 2.18 with plugins etc. I usually run two versions at any one time.

The style file will work in 2.18 or 3.0 as its nothing special.
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sat 02 Jun, 2018 4:36 pm

Great news thanks Phil.
That's what I would like to do, run both until I have V3 up to speed (it's already at V3.0.3).
I'll have a look and see if your style file works with my VicData contours.
Thanks again. Neil.

PS. Your style worked but I had to change the data field to "ALTITUDE" to match my Vic Data.

Here is my contours style that I use. Sort of same only different.

Rule based Vic Data Contours.zip
(3.75 KiB) Downloaded 32 times


I realise this is not the same data source but the concepts are the same. just need to match the data fields to get them working.
Last edited by neilmny on Sun 03 Jun, 2018 2:34 pm, edited 1 time in total.
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Sat 02 Jun, 2018 8:41 pm

No worries neilmy - happy to help out with anything QGIS. Still learning, but using it on a regular basis for a few organisations across the country so style files by state are a welcome time saver!

Do you know that if you name the qml the same as the corresponding shp file and keep them in the same directory, it will apply the style file every time you open the layer! That also saves time!
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sun 03 Jun, 2018 7:44 am

tastrax wrote:.............Do you know that if you name the qml the same as the corresponding shp file and keep them in the same directory, it will apply the style file every time you open the layer! That also saves time!


No I didn't.....and.....wow that is a fast way to add a styled layer :shock:

I have a whole bunch of styles for each layer type that I constantly upgrade as I decide I need new features to display or discover a way to display features better.
Those styles are in one folder and I just add them to a new layer as I go. If I could ever decide that enough tweeks are enough this method would be great.
If I just named say a roads layer "Roads" it would work too, but I generally give the layers some sort of regional identity. I have only developed maps for chunks of bushwalking interest like the Grampians, ANP and Kosciuszko NP (it links to the ANP) and the shape files are named similarly.
ie. KNP Points, KNP Roads, KNP OSM Polygons, KNP Contours 20M etc. etc.

It's a lot of fun and the various zoomed in maps have proven very useful out in the sticks.
Another thing I've found is that the OSM data (basis for the roads and points and some polygons in my maps) proves to be quite accurate on the ground.
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby CasualNerd » Sun 03 Jun, 2018 11:24 am

I haven't downloaded yet, but this will allow me to darken contour lines etc to make them easier to read when printed right ?

I've barely played with QGIS, this is very helpful thanks.
User avatar
CasualNerd
Athrotaxis cupressoides
Athrotaxis cupressoides
 
Posts: 405
Joined: Wed 03 Aug, 2011 3:33 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sun 03 Jun, 2018 1:02 pm

Yes Phil's contour style actually changes the line thickness based on elevation which makes the line appear darker.

Mine does too but there is an issue with text (labelling).
I've discovered that my contour style doesn't work correctly in QGIS 3.0.3. The style has text scaling (pixel) based on zoom level.
This does not work in version 3 and I've spent about 3 hours trying to fix it to no avail.
The style works correctly in version 2.18 and most likely earlier versions.
Last edited by neilmny on Sun 03 Jun, 2018 2:34 pm, edited 1 time in total.
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby andrewp » Sun 03 Jun, 2018 2:11 pm

Hi Phil,
I would appreciate your QGIS style sheets. I am using v3.0.3. I am using QGIS with VIC shapefile data to create maps for rogaining (a bit like orienteering).

The TAS shapefiles are by municipality. Do you combine them, or just have a layer for each?

Also could you suggest which layers are most useful for bushwalking maps.
User avatar
andrewp
Athrotaxis cupressoides
Athrotaxis cupressoides
 
Posts: 171
Joined: Mon 29 Aug, 2011 10:34 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Sun 03 Jun, 2018 2:55 pm

Hi andrewp,

Some of the layers in list open data are statewide - others are just by municipality. You can merge them if you want to but be aware they can become quite large and cumbersome. Style sheets make it pretty quick either way. As to which layers - that's up to you but contours, hydrology and the walking tracks out of the road layer would be the most useful.

neilmy - I will grab some vic layers and check out your style and see if we can get the scaling resolved in 3. Do you have a link for the contours layer anywhere?
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Sun 03 Jun, 2018 3:40 pm

neilmy - try replacing $scale with @map_scale in version 3

mapscale.PNG
mapscale.PNG (4.29 KiB) Viewed 3452 times
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sun 03 Jun, 2018 3:45 pm

Hi Phil,

This is a zip of the 20m contour shape file for part of the Eildon NP.
There are some 10 metre contours that I just excluded using the qml file attach above.
CRS is GDA94 although it seems V3.0.3 doesn't need to know that :wink:

Fraser Area Contours_20m.zip
(1.36 MiB) Downloaded 28 times


It is Vic Data and available under CC$ license - Copyright © The State of Victoria, Department of Environment, Land, Water & Planning 2016.
License - Creative Commons Attribution 4.0 International

The web site for Vic Data is - https://www.data.vic.gov.au/
"Data.Vic is the place to discover and access Victorian government open data
You will find data that Victorian government departments and agencies have opened and made available to the public.
You can use it anyway you like build apps and tools, use it for research, gain insights and understanding."
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby neilmny » Sun 03 Jun, 2018 3:46 pm

tastrax wrote:neilmny - try replacing $scale with @map_scale in version 3........


OK Phil, I tried map_Scale but not @map_scale I'll see how it goes.
.............

Much appreciated Phil thank you.
Excellent....that was the secret. Proportional text scaling is working in V3.0.3.
I've attached my style versions for Vic Data watercourses (VIC Hydro_whole state_CC4) and 20m Contours (Contours 10_20m_whole state_CC4).

QGIS3 Styles_Streams_Contours.zip
(7.69 KiB) Downloaded 33 times
User avatar
neilmny
Lagarostrobos franklinii
Lagarostrobos franklinii
 
Posts: 2316
Joined: Fri 03 Aug, 2012 11:19 am
Region: Victoria
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Sat 09 Jun, 2018 10:20 am

I had a chance to do a first pass on the LIST Hydrology areas this morning. Styles only - no labelling or zoom layering

LIST_hydarea.zip
(4.03 KiB) Downloaded 36 times
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby CasualNerd » Tue 12 Jun, 2018 1:50 pm

tastrax, I know there were some beginner QGIS tutorial PDF's on the wildcare server and a LIST web services guide but they're not very helpful now I've installed QGIS 3.

Do you know of any updated guides or places to start ?
User avatar
CasualNerd
Athrotaxis cupressoides
Athrotaxis cupressoides
 
Posts: 405
Joined: Wed 03 Aug, 2011 3:33 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Tue 12 Jun, 2018 3:06 pm

I reckon it will be a while before all the guides get updated as QGIS3 wont become a long Term Release for a few months yet. The old guides wont change all that much although some menu items have changed locations. Yell out if you need something specific.

Docs in preparation for QGIS3 - https://docs.qgis.org/testing/en/docs/
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby CasualNerd » Tue 12 Jun, 2018 3:30 pm

Thanks, all GIS is a bit frustrating to me atm, not knowing the terminology !
User avatar
CasualNerd
Athrotaxis cupressoides
Athrotaxis cupressoides
 
Posts: 405
Joined: Wed 03 Aug, 2011 3:33 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby conclavia » Mon 18 Jun, 2018 5:23 pm

Thank you Phil! I've been banging my head against BaseCamp for a few years and your post inspired me to check out QGIS and start playing around with the LIST data. Now I'm hooked :-)

I'd love to see any other style sheets you put together for the LIST data sets. Here's my first stab at one for Transport Segments... I've only tried it with my local Clarence area, so still want to validate it against the other regions.

Have you run into any definitions of the categories they use in the attribute data? Unfortunately the Product Information Sheets that they link to are pretty light on detail.

transport_segments.zip
(4.18 KiB) Downloaded 32 times
conclavia
Nothofagus cunninghamii
Nothofagus cunninghamii
 
Posts: 2
Joined: Mon 18 Jun, 2018 5:10 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Mon 18 Jun, 2018 9:50 pm

I am in Clarence too so if you want some tuition I am available!

Here are the hydrology ones I have worked up so far - areas gets a bit tough with tidal areas as well as mudflats, land and sea included

hydro.zip
(12.4 KiB) Downloaded 32 times


and here is my latest for the transport network - still playing with labels! (as you will soon tell!)

transport_segments.zip
(5.5 KiB) Downloaded 32 times


Join Wildcare and come along to this session! https://wildcaretas.org.au/event/11380/
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Mon 18 Jun, 2018 10:02 pm

These are the transport Types and classes for the state

LIST_Roads.PNG
LIST_Roads.PNG (18.14 KiB) Viewed 2991 times
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby conclavia » Tue 19 Jun, 2018 6:55 pm

Thanks, Phil! That sounds great... my wife and I have both signed up and will definitely be coming along to the session. We've just moved to Cambridge so it wouldn't be much of a stretch to say you're just down the road!

I ran into some trouble with labels disappearing when I tried to get them to curve with the lines. I'm still working my way through the tutorial, so hopefully the answer might become clear once I understand a bit more of what I'm actually doing :lol:

At the moment I've got a bit side-tracked writing a script to download all the datasets that I want and get them all nicely organised with the right styles following your tip about naming them the same as the shp files.

That table is very helpful! I was definitely missing a few road types and had completely left out rail and ferries. Out of curiosity, what do you find the best way to get the attribute data into Excel so you can work with it? I've been using a tool called geopandas to explore it but that looks a lot like a pivot table to me :-)

Cheers,
Wayne.
conclavia
Nothofagus cunninghamii
Nothofagus cunninghamii
 
Posts: 2
Joined: Mon 18 Jun, 2018 5:10 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Wed 20 Jun, 2018 10:11 am

Easiest way to get the attributes into excel is either select all the attribute table, copy and then paste into excel (it even picks up field names) or Right Click the layer name and save as CSV. After that, pivot tables are easy!
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania

Re: LIST Open Data - QGIS Style Sheets

Postby cnschulz » Thu 12 Jul, 2018 11:01 am

Thank you so much for this!
cnschulz
Atherosperma moschatum
Atherosperma moschatum
 
Posts: 92
Joined: Sat 29 May, 2010 5:49 pm
Region: Tasmania
Gender: Male

Re: LIST Open Data - QGIS Style Sheets

Postby tastrax » Thu 12 Jul, 2018 4:07 pm

No worries. One thing that Wayne has found is that the transport layer is trimmed at the shoreline/coast so there are bridges missing between local government areas. That means the Tasman Bridge and Risdon Bridge are both missing even if you have Clarence, Hobart and Glenorchy transport layers! I think he has reported this to LIST so hopefully they will fix the issue with the most recent downloads.
Cheers - Phil

Kiva Lender
User avatar
tastrax
Athrotaxis selaginoides
Athrotaxis selaginoides
 
Posts: 1533
Joined: Fri 28 Mar, 2008 6:25 pm
Location: What3words - epic.constable.downplayed
ASSOCIATED ORGANISATIONS: RETIRED! - Parks and Wildlife Service
Region: Tasmania


Return to Tasmania

Who is online

Users browsing this forum: Google [Bot] and 5 guests