Re: [Qgis-user] Creating raster difference for many small rasters

2020-04-17 Thread Nicolas Cadieux
Hi,
Can you use the zonal statistics in the processing tools? It’s not the plugin.

Nicolas Cadieux
Ça va bien aller!

> Le 17 avr. 2020 à 11:04, joolek  a écrit :
> 
> 
> Hi Everyone,
> 
> I have failed looking for a solution. And using latest QGIS so can't use 
> Zonal Statistic Plugin
> 
> I basically have almost a hundred of small asc grids, from two different data 
> sets. They overlap and I'd like to calculate difference between them... not 
> as a one value but difference for each overlapping raster. 
> 
> I also do have them vectorized.
> 
> As mentioned I have tried Zonal Statistic Plugin but it doesn't work on new 
> QGIS.
> 
> Does anyone have experience and could advise?
> Masive thank you!!
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] topology checker - Check if point features are covered by line features

2020-04-17 Thread Nicolas Cadieux

Bug report has been made

#35831


On 2020-04-17 12:58 p.m., Nicolas Cadieux wrote:

Hi,

Small correction,

If you extract the end nodes (vertices) of the line, you can use the 
following rule.  End node layer must be covered by endpoints of line 
layer or node layer must be covered by line.  I therefore assume the 
QGIS topology checker can work for endnode only and not for "middle 
node" of the line.  This is should be reported as a bug I think.


Nicolas

On 2020-04-17 12:42 p.m., Nicolas Cadieux wrote:

Hi Marshal,

I looked at your data. The first problem is that none or your line 
nodes intersect with a point.  It looks close... but it's not close 
enough.  By using "snap geometry location", I was able to create a 
new line that snaps to your point.  (called Topologie snapped_line in 
the file I will send you in private). A "Select by location" or a 
"Join Attributes by location" confirms that the points now intersect 
the Topologie snapped line layer. The Join Attributes by location 
will permit you to find the problems as you can discard records that 
do not intersect.  This will give you what you want.


As for the topology Checker, it seems that a line cannot cover a 
point or a point cannot cover a line even if point and line nodes 
intersect (Can someone confirm this?).  I can only assume that QGIS 
works with the correct assumption that a point and a line does not 
have a surface to cover and therefore, cannot cover anything.  I 
assume, based on your observations that ESRI does not follow that 
assumption.


You can however create a 1 m buffer around your line (Topologie 
Buffered_line in the file).  Then, you can create the rule (polygon 
must contain point). That rule will work in the topology Checker.


Cheers!

Nicolas


On 2020-04-13 10:25 a.m., Nicolas Cadieux wrote:

Hi,

I don’t have QGIS in front of me.  I looked around on the the net 
and was surprised to see the «covered By » option for points and 
lines.  Unless a line is snapped, or intersects a point exactly on a 
Line node, it’s just about impossible to calculate if a line « 
covers » a point.  This is something easy to do with a polygon but 
not a line because of float point precision error.  You could buffer 
the lines and see if that helps. You could create a 1m buffer on the 
line (or the point).  Make sure both layers are in the same crs so 
that additional calculations don’t need to be done.


You could at the « select by location » side.  I would look at « 
snap with » or «intersects with »options.


Nicolas Cadieux
Ça va bien aller!

Le 13 avr. 2020 à 06:11, Marshal Mappers  
a écrit :



Hello everyone,
I want to use the topology checker to check if point features are 
covered by line features. For example are the bus stops covered by 
the bus lines.
Therefore I use the topology checker with the following rule: 
"points" must be covered by "lines". But I get the error for all 
points that "point is not covered by segment".
I even get the error for points that I edited on the line with 
snapping.

Here my questions:
1. Is it possible to check if point features are covered by line 
features? With topology checker? In general?
2. What does the rule: "points" must be covered by "lines"check? 
Under what cicumstances is a point feature covered by a line feature?


I tried this in QGIS Versions 2.18.26; 3.4.15; 3.10.2
My OS ist Windows 10
I tried with shapefiles and geopackage layers
The CBS of point and line layers are the same. Here I tried the 
coordinate systems with epgs: 31468 (DHDN / 3---degree Gauss-Kruger 
zone 4) and 25832 (ETRS89 / UTM zone 32N).
If anyone could explain or point me to the right direction, that 
would be awesome.


Thank you!

Best regards

Marshal
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[QGIS-it-user] Tabella attributi in CACHE

2020-04-17 Thread Luca Bellani
Salve, vi sottopongo questa situazione, per capire se é una cosa che si possa
modificare "facilmente", o debba entrae in questione complesse del CORE di
QGIS.
Ho un file CSV, con piú di 1 milione di linee. 
Ad importarlo come punti, ed a usare la tabella attributi, ho notato
velocitá in un processo, e lentitudine in un altro. Per curiositá, ho
comparato con un altro software, e il risultato é il seguente:


Importare il file:   QGIS 13 secondi, ALTRO SW: 89 secondi.
Aprire tabella attributi:  QGIS 27 secondi, ALTRO SW: 1 secondo.

come potete notare é abissale la differenza. QGIS importa super rapido il
file (ma che in realtá é un'operazione singola, si fa solo la prima volta)
mentre in apertura tabella va lento (ed é l'operazione che si ripete
moltissimo in fase di lavoro).

Vi chiedo,  non esisterebbe la possibilitá di far caricare la tabella in una
sorta di CACHE, cosí che dalla seconda volta in poi, aumentare le
prestazioni? (parlo da non esperto)
Grazie mille per i vostri commenti!
Luca





--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] topology checker - Check if point features are covered by line features

2020-04-17 Thread Nicolas Cadieux

Hi,

Small correction,

If you extract the end nodes (vertices) of the line, you can use the 
following rule.  End node layer must be covered by endpoints of line 
layer or node layer must be covered by line.  I therefore assume the 
QGIS topology checker can work for endnode only and not for "middle 
node" of the line.  This is should be reported as a bug I think.


Nicolas

On 2020-04-17 12:42 p.m., Nicolas Cadieux wrote:

Hi Marshal,

I looked at your data. The first problem is that none or your line 
nodes intersect with a point.  It looks close... but it's not close 
enough.  By using "snap geometry location", I was able to create a new 
line that snaps to your point.  (called Topologie snapped_line in the 
file I will send you in private).  A "Select by location" or a "Join 
Attributes by location" confirms that the points now intersect the 
Topologie snapped line layer. The Join Attributes by location will 
permit you to find the problems as you can discard records that do not 
intersect.  This will give you what you want.


As for the topology Checker, it seems that a line cannot cover a point 
or a point cannot cover a line even if point and line nodes intersect 
(Can someone confirm this?).  I can only assume that QGIS works with 
the correct assumption that a point and a line does not have a surface 
to cover and therefore, cannot cover anything.  I assume, based on 
your observations that ESRI does not follow that assumption.


You can however create a 1 m buffer around your line (Topologie 
Buffered_line in the file).  Then, you can create the rule (polygon 
must contain point). That rule will work in the topology Checker.


Cheers!

Nicolas


On 2020-04-13 10:25 a.m., Nicolas Cadieux wrote:

Hi,

I don’t have QGIS in front of me.  I looked around on the the net and 
was surprised to see the «covered By » option for points and lines.  
Unless a line is snapped, or intersects a point exactly on a Line 
node, it’s just about impossible to calculate if a line « covers » a 
point.  This is something easy to do with a polygon but not a line 
because of float point precision error.  You could buffer the lines 
and see if that helps. You could create a 1m buffer on the line (or 
the point).  Make sure both layers are in the same crs so that 
additional calculations don’t need to be done.


You could at the « select by location » side.  I would look at « snap 
with » or «intersects with »options.


Nicolas Cadieux
Ça va bien aller!

Le 13 avr. 2020 à 06:11, Marshal Mappers  
a écrit :



Hello everyone,
I want to use the topology checker to check if point features are 
covered by line features. For example are the bus stops covered by 
the bus lines.
Therefore I use the topology checker with the following rule: 
"points" must be covered by "lines". But I get the error for all 
points that "point is not covered by segment".
I even get the error for points that I edited on the line with 
snapping.

Here my questions:
1. Is it possible to check if point features are covered by line 
features? With topology checker? In general?
2. What does the rule: "points" must be covered by "lines"check? 
Under what cicumstances is a point feature covered by a line feature?


I tried this in QGIS Versions 2.18.26; 3.4.15; 3.10.2
My OS ist Windows 10
I tried with shapefiles and geopackage layers
The CBS of point and line layers are the same. Here I tried the 
coordinate systems with epgs: 31468 (DHDN / 3---degree Gauss-Kruger 
zone 4) and 25832 (ETRS89 / UTM zone 32N).
If anyone could explain or point me to the right direction, that 
would be awesome.


Thank you!

Best regards

Marshal
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] geometry generator - unexpected results

2020-04-17 Thread David Fawcett
Michel,

Thank you for your response, and for putting some good geometry generator
examples out for others to learn from. (If others on the list haven't seen
them, they are at:
https://gitlab.com/GIS-projects/qgis-geometry-generator-examples)

Your suggestion worked for me. I am mapping in EPSG 26915 (UTM Z15N), and
since both SRS are in meters, I thought that similar values would work. I
had tried to change the params in the functions by an order of magnitude,
but obviously needed to go farther.

Thank you again for your help.

David.

On Fri, Apr 17, 2020 at 5:05 AM Michel Stuyts 
wrote:

> The numbers you need to use in “rand(-10, 10), rand(-10, 10)” depend on the
> CRS of your layer. I tested it with some demo data in EPSG:31370 and I got
> a similar result as you.  When I changed those numbers I got a better
> result.  After you changed those, you can play around with that 100 inside
> the generate_series, to get the result you want. For me the following gave
> a good result:
>
>
>
> make_line(
>
> array_foreach(
>
> generate_series(
>
> 0, length($geometry), 300
>
> ),
>
> translate(
>
> line_interpolate_point($geometry, @element),
>
> rand(-0.5, 0.5),
>
> rand(-0.5, 0.5)
>
> )
>
> )
>
> )
>
>
>
>
>
> Michel
>
> *Van:* Qgis-user  *Namens *David
> Fawcett
> *Verzonden:* donderdag 16 april 2020 20:01
> *Aan:* qgis-user 
> *Onderwerp:* [Qgis-user] geometry generator - unexpected results
>
>
>
> I am trying to use a geometry generator to accomplish the "hand-drawn"
> line style.
>
>
>
> Some great recent examples by:
>
>
>
> Klas Karlsson
>
> https://twitter.com/klaskarlsson/status/1249333750451879937
>
>
>
> Hamish:
>
> https://polemic.nz/2019/11/18/foss4g-qgis-geometry-generators/
>
>
>
> I am using the code below from the blog post by Hamish in QGIS 3.12:
>
>
>
> make_line(
>
> array_foreach(
>
> generate_series(
>
> 0, length($geometry), 100
>
> ),
>
> translate(
>
> line_interpolate_point($geometry, @element),
>
> rand(-10, 10),
>
> rand(-10, 10)
>
> )
>
> )
>
> )
>
> Here is an image of what the results look like: 
> https://github.com/fawcett/examples/blob/master/lines.png
>
> The line geometries are in blue, and the geometry generator output is in 
> black.
>
> Can anyone suggest what is going wrong?
>
> Thank you,
>
> David.
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] topology checker - Check if point features are covered by line features

2020-04-17 Thread Nicolas Cadieux

Hi Marshal,

I looked at your data. The first problem is that none or your line nodes 
intersect with a point.  It looks close... but it's not close enough.  
By using "snap geometry location", I was able to create a new line that 
snaps to your point.  (called Topologie snapped_line in the file I will 
send you in private).  A "Select by location" or a "Join Attributes by 
location" confirms that the points now intersect the Topologie snapped 
line layer. The Join Attributes by location will permit you to find the 
problems as you can discard records that do not intersect.  This will 
give you what you want.


As for the topology Checker, it seems that a line cannot cover a point 
or a point cannot cover a line even if point and line nodes intersect 
(Can someone confirm this?).  I can only assume that QGIS works with the 
correct assumption that a point and a line does not have a surface to 
cover and therefore, cannot cover anything.  I assume, based on your 
observations that ESRI does not follow that assumption.


You can however create a 1 m buffer around your line (Topologie 
Buffered_line in the file).  Then, you can create the rule (polygon must 
contain point). That rule will work in the topology Checker.


Cheers!

Nicolas


On 2020-04-13 10:25 a.m., Nicolas Cadieux wrote:

Hi,

I don’t have QGIS in front of me.  I looked around on the the net and was 
surprised to see the «covered By » option for points and lines.  Unless a line 
is snapped, or intersects a point exactly on a Line node, it’s just about 
impossible to calculate if a line « covers » a point.  This is something easy 
to do with a polygon but not a line because of float point precision error.  
You could buffer the lines and see if that helps. You could create a 1m buffer 
on the line (or the point).  Make sure both layers are in the same crs so that 
additional calculations don’t need to be done.

You could at the « select by location » side.  I would look at « snap with » or 
«intersects with »options.

Nicolas Cadieux
Ça va bien aller!


Le 13 avr. 2020 à 06:11, Marshal Mappers  a écrit :


Hello everyone,
I want to use the topology checker to check if point features are covered by 
line features. For example are the bus stops covered by the bus lines.
Therefore I use the topology checker with the following rule: "points" must be covered by 
"lines". But I get the error for all points that "point is not covered by segment".
I even get the error for points that I edited on the line with snapping.
Here my questions:
1. Is it possible to check if point features are covered by line features? With 
topology checker? In general?
2. What does the rule: "points" must be covered by "lines"check? Under what 
cicumstances is a point feature covered by a line feature?

I tried this in QGIS Versions 2.18.26; 3.4.15; 3.10.2
My OS ist Windows 10
I tried with shapefiles and geopackage layers
The CBS of point and line layers are the same. Here I tried the coordinate 
systems with epgs: 31468 (DHDN / 3---degree Gauss-Kruger zone 4) and 25832 
(ETRS89 / UTM zone 32N).
If anyone could explain or point me to the right direction, that would be 
awesome.

Thank you!

Best regards

Marshal
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Creating raster difference for many small rasters

2020-04-17 Thread joolek
Hi Everyone,

I have failed looking for a solution. And using latest QGIS so can't use
Zonal Statistic Plugin

I basically have almost a hundred of small asc grids, from two different
data sets. They overlap and I'd like to calculate difference between
them... not as a one value but difference for each overlapping raster.

I also do have them vectorized.

As mentioned I have tried Zonal Statistic Plugin but it doesn't work on new
QGIS.

Does anyone have experience and could advise?
Masive thank you!!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] QGIS pyqt5 missing QString

2020-04-17 Thread Enzo Cocca
Grazie a tutti per il suggerimento.
La mia é stata una svista, in realtà avete ragione.
Sto provando a replicare un codice per poter fare un override di un drop
event  tra una listwidget e una tablewidget splittando i nomi dei file che
seleziono e sposto e sto avendo parecchie difficoltà.

Spero di riuscirci
Enzo

Il ven 17 apr 2020, 16:06 matteo  ha scritto:

> Ciao Enzo,
>
> perché non usare una normale stringa di python? Hai qualche vantaggio
> specifico con una QString?
>
> Matteo
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS pyqt5 missing QString

2020-04-17 Thread matteo
Ciao Enzo,

perché non usare una normale stringa di python? Hai qualche vantaggio
specifico con una QString?

Matteo
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] New Online Training Course: An Introduction To Integrating QGIS/GIS And R For Spatial Analysis - 6th to 8th May 2020

2020-04-17 Thread cdmacleod
We will be running a new online training course called 'An Introduction
To Integrating QGIS/GIS and R For Spatial Analysis' between the 6th and
8th of May 2020. It will be held via the Zoom video-conferencing
platform. This course is aimed at those who wish to learn how to use and
integrate QGIS (the leading freely available GIS software package) and R
(the leading freely available data analysis software package) for
spatial analysis. It will be taught by Dr. Colin D. MacLeod, the author
of 'An Introduction To Integrating QGIS And R for Spatial Analysis [1]'
(Pictish Beast Publications) and a renowned expert in using GIS in
biological and ecological research. He is also a co-author of the
recenntly publised 'An Introduction To Basic Statistics For Biologists
Using R [2]', which is a practical guide to carrying out the analysis of
biological data in R.  The course assumes no prior knowledge of either
QGIS/GIS or R, and so is open to complete beginners as well as those how
know how to use one of these software packages, and wish to learn how to
integrate it with the other. 

Attendance will be limited to a maximum of 16 people. The course for
this three day course will cost GBP 395 per person (with a discounted
rate of GBP 300 for students, the unwaged and those working for
registered charities). To book a place, or for more information, visit
http://gisinecology.com/online-course-an-introduction-to-integrating-qgis-gis-and-r-for-spatial-analysis/
or email i...@gisinecology.com. 

GIS and statistical analysis are two of the most fundamental software
tools for modern biologists wishing to conduct spatial analyses.
However, each have their own sets of software packages, and sometimes it
can be difficult to know how to integrate the two. This course will
provide an introduction to the integration of QGIS (the leading freely
available GIS software package) and R (the leading data analysis
software packages used by biologists) to create a combined tool set that
makes the most of the strengths of each of these individual software
packages. It will consist of a series of background sessions on using
GIS and R for spatial analysis, mixed in with practical sessions where
you will learn how to use QGIS, how to use R, and how to integrate two
to complete a spatial analysis project. This last part will include
working through an example project, starting with creating a high
quality map for publication through creating raster data layers of
environmental variables, joining data together based on their spatial
relationships and analysing the combined data set using R (including
creating summary statistics, conducting linear regressions and
conducting generalised additive modelling - GAMs). While it will
primarily be based around QGIS, this course is taught using
software-independent approach, and it is also open to those who wish to
learn how to use ArcGIS to do biological GIS. 

When you attend this course you will receive a free copy of An
Introduction To Integrating QGIS And R for Spatial Analysis [1] (GIS For
Biologists Workbooks) as the practical exercises in that course are
based on the ones contained in that book. NOTE: If you wish to use
ArcGIS software for this course, alternative materials will be provided
for the practical sessions.

==
GIS IN ECOLOGY - Providing Training, Advice And Consultancy On The Use
Of GIS In Ecology

Web: www.GISinEcology.com Email: i...@gisinecology.com

Need to ask a question about using GIS? Try the GIS In Ecology Forum:
www.GISinEcology.com/GIS_in_Ecology_forum.htm

Books From GIS In Ecology Staff:

GIS For Biologists: A Practical Introduction For Undergraduates; RRP:
£24.99
An Introduction To Using GIS In Marine Biology; RRP: £44.99
An Introduction To Using GIS In Marine Biology: Supplementary Workbook
One - Creating Maps Of Species Distribution; RRP: £19:99 

If you wish to purchase these books, visit:
http://www.gisinecology.com/Book_Shop.htm

To help the environment, please do not print out this email unless it is
unavoidable.
==


Links:
--
[1]
http://gisinecology.com/an-introduction-to-integrating-qgis-and-r-for-spatial-analysis-gis-for-biologists-workbooks-series/
[2] http://gisinecology.com/stats-for-biologists-1___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] MSSQL connection problem

2020-04-17 Thread Walter Lorenetti

Hi all,

I have a problem with a MSSql connection.

My enviromnents:

So: Ubuntu 18.04

QGIS: 3.10.4

Installed msodbcsql17 from microsoft repository.

with a /etc/odbcinit.ini:

[SQL Server] Description=Microsoft ODBC Driver 17 for SQL Server 
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.5.so.2.1 
UsageCount=1


But when I try to do a connection I get a 'Driver not loaded Driver not 
loaded'.


My connection data:

Connection name: 

Provider/DNS: driver={SQL 
Server};server=;port=1433;database=


Host: 

Username: 

Password: 

Where I'm in wrong?

Thanks in advance.

Walter

--

Walter Lorenzetti phD email: lorenze...@gis3w.it skype: aiki74 
twitter:w_lorenzetti  g+:aiki74 
 Tel/Cell: (+39) 
347-6597931 Viale Verdi 24 - 51016 Montecatini Terme (PT) Nuovi corsi 
QGIS e GFOSS 


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] QGIS pyqt5 missing QString

2020-04-17 Thread Andrea Giudiceandrea
enzo.cocca wrote
> In my plug in I would use the class QString but apparently seems to be
> missing.

Ciao Enzo,
probabilmente volevi inviare il messaggio alla ML qgis-user e non a
qgis-it-user.

Comunque, in PyQt5 la classe QString non è più supportata e non è più
necessaria. Basta usare gli equivalenti metodi delle stringhe di Python. Per
maggiori info
https://groups.google.com/forum/#!topic/vfx-platform-discuss/kHdwrBh_35U
(QString and QStringList) o
https://gis.stackexchange.com/questions/313949/name-qstring-is-not-defined

A presto.

Andrea



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] geometry generator - unexpected results

2020-04-17 Thread Michel Stuyts
The numbers you need to use in “rand(-10, 10), rand(-10, 10)” depend on the CRS 
of your layer. I tested it with some demo data in EPSG:31370 and I got a 
similar result as you.  When I changed those numbers I got a better result.  
After you changed those, you can play around with that 100 inside the 
generate_series, to get the result you want. For me the following gave a good 
result:

make_line(
array_foreach(
generate_series(
0, length($geometry), 300
),
translate(
line_interpolate_point($geometry, @element),
rand(-0.5, 0.5),
rand(-0.5, 0.5)
)
)
)


Michel

Van: Qgis-user  Namens David Fawcett
Verzonden: donderdag 16 april 2020 20:01
Aan: qgis-user 
Onderwerp: [Qgis-user] geometry generator - unexpected results

I am trying to use a geometry generator to accomplish the "hand-drawn" line 
style.

Some great recent examples by:

Klas Karlsson
https://twitter.com/klaskarlsson/status/1249333750451879937

Hamish:
https://polemic.nz/2019/11/18/foss4g-qgis-geometry-generators/

I am using the code below from the blog post by Hamish in QGIS 3.12:


make_line(

array_foreach(

generate_series(

0, length($geometry), 100

),

translate(

line_interpolate_point($geometry, @element),

rand(-10, 10),

rand(-10, 10)

)

)

)

Here is an image of what the results look like: 
https://github.com/fawcett/examples/blob/master/lines.png

The line geometries are in blue, and the geometry generator output is in black.

Can anyone suggest what is going wrong?

Thank you,

David.


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[QGIS-it-user] QGIS pyqt5 missing QString

2020-04-17 Thread Enzo Cocca
Hi all,
In my plug in I would use the class QString but apparently seems to be
missing.

I found in internet a similar proble but with PyQt4.
https://www.howtobuildsoftware.com/index.php/how-do/U4x/pyqt-pyqt4-qstring-attributeerror-qgis-qgis-pyqt4-missing-qstring-class



Do you have some suggestion to resolve this?

Thanks
Enzo

-- 
Enzo Cocca PhD
in "Science and Technology for Archaeology and Cultural Heritage"

ISMEO
International Association of Mediterranean and Oriental Studies


mail: enzo@gmail.com
cell: +393495087014
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user