[Qgis-user] contours and symbology

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Wed Mar 3 11:27:30 PST 2021


Hi Kirk,

Indeed, converting to vector and styling it using rule-based styling is an
option. Having contour renderer for raster will avoid extra processing and
data conversion.
With contour rendering of raster, you can also use "Resampling" for
creating smooth contours on the fly.

@Azzura, unfortunately, labelling is not available at the moment for raster
contour renderer. We may add it in future releases. For labeling vector
contours, I recommend using this nice trick:
https://twitter.com/totofiandaca/status/1222982773532712960
https://pigrecoinfinito.com/2020/01/31/qgis-come-allineare-le-etichette-delle-isoipse/

Kind regards
Saber

On Wed, 3 Mar 2021 at 18:28, Kirk Schmidt <kirk at nortekresources.com> wrote:

> Hi Saber:
>
> You can do this directly in symbology. See link below, Use Rule Based
> Symbology and "Elev" % 100= 0 to separate all the contours that are
> multiples of 100.  Set your line symbols and you should be good to go.
>
>
> https://gis.stackexchange.com/questions/259875/styling-contours-at-specific-numbers
>
>
> Kirk Schmidt
> On 3/3/2021 2:15 PM, Saber Razmjooei wrote:
>
> Hi Azzurra,
>
> You can use Raster styling to display it as contours with minor and major
> contours:
>
> https://www.qgis.org/en/site/forusers/visualchangelog314/index.html#feature-raster-layer-contour-renderer
>
> Kind regards
> Saber
>
> On Wed, 3 Mar 2021 at 18:01, Azzurra Lentini <azzurralentini at gmail.com>
> wrote:
>
>> Hi to all,
>>
>> I have extracted contours from a dtm raster 20 m resolution file and the
>> result is a vector file of contours with 20 m of interval between the
>> contours.
>>
>> I would like to have two different symbols for these contours: for
>> example black colour and thickness 1 for the contours with interval of 100
>> m (0, 100, 200, 300 etc.) and grey colour and thickness 0.5 for the
>> contours 20, 40, 60, 80, 120, 140 .. etc.).
>>
>> What can I do?
>>
>> Normally I create another contours file only for the contours equidistant
>> 100 m and I put a different symbol for the 2 layers.
>>
>> Do you know other ways without the creation of another file?
>> maybe rule-based symbology?
>>
>>
>> Thank you, Azzurra
>>
>> --
>> Lecturer GIS University "Roma Tre"
>> Consultant Environmental Risk Prevention and Hydrogeology
>> AZZURRA LENTINI
>> ++++++++++++++++++++++++++
>> Italy Mobile Tel.: **(39) 338 24 40 676
>> ++++++++++++++++++++++++++
>> SKYPE azzurrahydro
>> ++++++++++++++++++++++++++
>>
>> *azzurralentini at gmail.com <azzurralentini at gmail.com>*
>>
>> *azzurra.lentini at uniroma3.it <azzurra.lentini at uniroma3.it> *
>> ++++++++++++++++++++++++++
>> *Par respect pour l'environnement,*
>>
>> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>>
>>
>>
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> --
> Saber Razmjooei
> www.lutraconsulting.co.uk
>
>
> _______________________________________________
> Qgis-user mailing listQgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> --
> Kirk Schmidt, MScF, BScF, RPF
> General Manager
> Nortek Resource Solutions Inc.
> RR # 1
> Thorburn, NS
> B0K 1W0
> Tel (902) 922.3607
> Email: kirk at nortekresources.com
> Web: www.nortekresources.com
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Saber Razmjooei
www.lutraconsulting.co.uk
+44 (0)7568 129733
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210303/b7566f4f/attachment.html>


More information about the Qgis-user mailing list