Re: [Qgis-user] Linking coordinates between layers

2017-10-12 Thread Martin Bain
Hi Simon,
One way would be to add the line layer as a virtual layer with the query text:

SELECT make_line(A.geometry,B.geometry) AS geom, 
st_distance(A.geometry,B.geometry) AS dist
FROM LayerA AS A, LayerB AS B

Just substitute LayerA and LayerB with the names of your layers.

This would create a dynamic layer with one attribute "dist" - the distance 
between the points, and the geometry would be a line connecting the two points. 
 Whenever you move a point the line layer will update, if you labelled the line 
layer with the distance attribute, the label position and text would also 
update.

It gets quite funky if you have multiple points in each layer - there are lines 
drawn between all points.  If there are m points in layer A and n points in 
layer B there will be m*n points in the dynamic layer (a "cross join" in SQL 
parlance).  I imagine performance would be dreadful on layers with many points 
- but not an issue for your use case.

Cheers,
Martin.

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of simonc8
Sent: Friday, 13 October 2017 3:22 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Linking coordinates between layers

I have two point layers each with a single point in them. I want to draw a line 
joining the points to use to measure the distance apart. I have found various 
plug-ins which allow this, but is there a way I can actually link the point 
coordinates to the line layer so that if I move one of the points the line will 
update automatically?

Grateful for advice.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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

This email is intended for the named recipient only.  The information it 
contains may be confidential.  If you are not the intended recipient you must 
not reproduce or distribute any part of this email, disclose its contents to 
any other party or take any action in reliance on it.  If you have received 
this email in error, please contact the sender immediately and delete the 
message.
___
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] Building QGIS >= 2.18.12 on Linux Mint 18.2 Sonya - with Oracle provider?

2017-10-12 Thread Patrick Dunford
If you go to Add Vector Layer and select the source type as Database, 
ODBC is the first entry in the list of database types.



On 12/10/17 22:37, GregStef wrote:

Hi Patrick.

Sorry for the late reply, I had a small accident and I was nailed to bed for
a while.

I just installed 2.14, but cannot find even a mention of ODBC. Could you
please point out where it is?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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] qgis atlas : set raster images 's contrast ?

2017-10-12 Thread image
Good evening,

I'm working with qgis 2.18(windows) and the usefull atlas tools. My covering
layer is a polygon layer (20 features). My atlas template is composed by 4
map elements representing different images raster (3 multibands).  I use the
option proposed in the tab called "object property" to lock the layer and
the style of the layer (lock layers / lock style for layers).For each
raster, I want to be able to automatically apply and set the raster style
and enhance the contrast "local histogram stretch".


I join a screen shot reprensenting my atlas template. 

 

Could you throw light for me ? is there a way to automatically assign a
contrast stretch ("local histogram stretch") for all my map elements and for
my 20 atlas sheet? 

In advance, thank you for your help. 

Kind regards. 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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] Linking coordinates between layers

2017-10-12 Thread simonc8
I have two point layers each with a single point in them. I want to draw a
line joining the points to use to measure the distance apart. I have found
various plug-ins which allow this, but is there a way I can actually link
the point coordinates to the line layer so that if I move one of the points
the line will update automatically?

Grateful for advice.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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] GRASS plugin

2017-10-12 Thread Siwei He
I see, thanks!

Siwei

On Thu, Oct 12, 2017 at 8:40 AM, Andre Joost 
wrote:

> Am 12.10.2017 um 05:53 schrieb Siwei He:
>
>> Since I am running Linux mint, it is Ubuntu 16.04 or older. Is that
>> possible to have a solution on this issue.
>>
>
>
> Either remove QGIS completely and switch from ubuntugis to the QGIS debian
> repo, or wait until QGIS 2.18.14 is released later this month.
>
> HTH,
> André Joost
>
>
>
> ___
> 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] Cannot get grid samples

2017-10-12 Thread Tyler Veinot
Hello;
Has anyone had the issue where their point sampling tool and zonal
statistic tools were unable to retrieve data from grid/raster datasets? I
am using 2.18.13, since I do not use these tools too often I cannot say
when they stopped working. Could it be I am missing a dependency?
I tried reinstalling the plugins but that didn't work.
Any suggestions?
Tyler
___
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] GRASS plugin

2017-10-12 Thread Andre Joost

Am 12.10.2017 um 05:53 schrieb Siwei He:

Since I am running Linux mint, it is Ubuntu 16.04 or older. Is that
possible to have a solution on this issue.



Either remove QGIS completely and switch from ubuntugis to the QGIS 
debian repo, or wait until QGIS 2.18.14 is released later this month.


HTH,
André Joost


___
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] Building QGIS >= 2.18.12 on Linux Mint 18.2 Sonya - with Oracle provider?

2017-10-12 Thread GregStef
Hi Patrick.

Sorry for the late reply, I had a small accident and I was nailed to bed for
a while.

I just installed 2.14, but cannot find even a mention of ODBC. Could you
please point out where it is?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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