[Qgis-user] New Projection

2016-12-21 Thread Grant Boxer
I am trying to import a raster image of the North American geology
(https://ngmdb.usgs.gov/gmna/) and the projection is defined as Modified
spherical transverse Mercator with a central meridian of 100 deg W and a
scale factor of 0.926.

 

Can anyone supply/create the necessary projection file that I would need to
import this?

 

Grant Boxer

Perth, Western Australia

 

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

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi,

Sorry for the top post...

Btw, you can also grab iface.mainWindow() for the full application main
window screen shot. This just grabs the content area, so no native window
dressings, e.g. no title bar, etc.

There is also the fun stuff in this Qt5 example (I think one for Qt4, too):
http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html

While the user could use another screen capture utility, having some
limited, but reasonable, capture functionality as part of QGIS core can be
quite useful, especially in educational settings, as it would require no
additional software.

Maybe even a simple movie recording feature that dumps to an animated GIF?
Ah, now that would be very, very useful and a fun feature to make. Btw, Qt
can grab the entire screen, or just the portions occupied by QGIS, as well.

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

On Tue, Dec 20, 2016 at 1:43 PM, Larry Shaffer 
wrote:

> Hi,
>
> On Tue, Dec 20, 2016 at 11:02 AM, DelazJ  wrote:
>
>> Hi,
>>
>> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen > >:
>>
>>> Hi List-members -
>>>
>>> Is there in Qgis a function / button / menu-item / short-cut / plugin to
>>> make a simple bitmap copy of the current content of the map-canvas and save
>>> it to the clipboard ? My users need this to make a copy of the map and
>>> paste into MS-Word or other software.
>>>
>>
> While not part of the QGIS app, one could use this PyQGIS snippet to do so
> (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:
>
> from PyQt4.QtGui import *
> QApplication.clipboard().setImage(QImage(QPixmap.
> grabWidget(iface.mapCanvas(
>
> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
> paint device, like an image. Code can be wrapped in a plugin, then have
> some key bindings applied (would need some more PyQt).
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
>
>
>> I really need the functionality for my users and I can't seem to find it.
>>> The closest I've come is the "save as png" menu-item in the project menu.
>>> But it's to cumbersome to use in this case.
>>>
>>
>> Afaics, there's no "save as png" option but "save as image" in Project
>> menu, option from which you can choose the image file format (bmp, jpg...).
>> It's not on the clipboard but easier and more accessible than print
>> composer.
>>
>> Regards,
>> Harrissou
>>
>>
>>>
>>> I'm familiar with the composer function. My users can't use this neither
>>> because it takes to long to activate (to many choices and to many buttons
>>> to click)
>>>
>>> So I've decided to make a simple plugin to cover this functionality. But
>>> first I want to be very sure the function actually is missing ;-)
>>>
>>> Regards
>>> Bo Victor Thomsen
>>> Municipality of Frederikssund, Denmark.
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi Bo, et al.,

On Wed, Dec 21, 2016 at 4:34 AM, Bo Victor Thomsen <
bo.victor.thom...@gmail.com> wrote:

> Ok -
>
> A very rough, but functional first version of the plugin is now in
> https://github.com/Frederikssund/QGIS-canvas-to-clipboard/
>
>- No shortcut
>- No about-box, nice explanations or help text
>- No copyright statements
>- Only one button that create a bitmap of the current map-canvas and
>put into the clipboard
>
> But it works  !
>
> Is it possible that I could get some feedback on how it works on other
> platforms than Windows from someone(s) with access to Linux and/or Mac?
>

Plugin works fine here on macOS 10.11.6 with QGS 2.14. Thanks for putting
it together. Glad to see it works cross-platform without quirks!

Here on macOS, the clipboard contents are recognized as a TIFF-formatted
image (of course, not GeoTIFF, that would be too cool - though I don't know
where one could *paste* a GeoTIFF). Guessing that the clipboard format
might be platform-specific and managed by Qt.

Also here on macOS, there is a thin gray border, which I think is always
part of the widget's scene. IMO actually makes the capture better, if there
is a partial or wrapped white background shown in the canvas and the user
is pasting into a white-background document (common scenario).

Richard, if you are looking to add this to master, maybe it should go under
the View menu, e.g. View -> Copy to Clipboard (maybe right under 'Zoom
Out'?), since Edit menu seems to be just for editing features and is fully
greyed-out if only working with rasters. Another appropriate menu might be
Project -> Copy to Clipboard, under 'Save as Image...', though I think
under View is maybe better.

Be good to have a default key binding, though I can't think of a decent
cross-platform keystroke right now.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


>
>
> Den 20-12-2016 kl. 21:43 skrev Larry Shaffer:
>
> Hi,
>
> On Tue, Dec 20, 2016 at 11:02 AM, DelazJ  wrote:
>
>> Hi,
>>
>> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen > >:
>>
>>> Hi List-members -
>>>
>>> Is there in Qgis a function / button / menu-item / short-cut / plugin to
>>> make a simple bitmap copy of the current content of the map-canvas and save
>>> it to the clipboard ? My users need this to make a copy of the map and
>>> paste into MS-Word or other software.
>>>
>>
> While not part of the QGIS app, one could use this PyQGIS snippet to do so
> (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:
>
> from PyQt4.QtGui import *
> QApplication.clipboard().setImage(QImage(QPixmap.
> grabWidget(iface.mapCanvas(
>
> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
> paint device, like an image. Code can be wrapped in a plugin, then have
> some key bindings applied (would need some more PyQt).
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
>
>
>> I really need the functionality for my users and I can't seem to find it.
>>> The closest I've come is the "save as png" menu-item in the project menu.
>>> But it's to cumbersome to use in this case.
>>>
>>
>> Afaics, there's no "save as png" option but "save as image" in Project
>> menu, option from which you can choose the image file format (bmp, jpg...).
>> It's not on the clipboard but easier and more accessible than print
>> composer.
>>
>> Regards,
>> Harrissou
>>
>>
>>>
>>> I'm familiar with the composer function. My users can't use this neither
>>> because it takes to long to activate (to many choices and to many buttons
>>> to click)
>>>
>>> So I've decided to make a simple plugin to cover this functionality. But
>>> first I want to be very sure the function actually is missing ;-)
>>>
>>> Regards
>>> Bo Victor Thomsen
>>> Municipality of Frederikssund, Denmark.
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] spatialjoin

2016-12-21 Thread Andrew
Regarding the default values option/limitations, I can add that if you try
to use the default values expression dialog to build an expression using
geomintersects() the dialog will evaluate the expression as invalid.
Instead, build the expression in the field calculator and then copy/paste
it into default value box and skip using the expression dialog.

Andrew

On Wed, Dec 21, 2016 at 1:32 PM, DelazJ  wrote:

> Hi,
> Laurent, I can think about different ways you can test to tackle your
> issues, provided you have two spatial layers that overlap (and without any
> intermediate layer creation):
> - recent QGIS introduce default values concept (
> http://docs.qgis.org/testing/en/docs/user_manual/working_
> with_vector/vector_properties.html#common-settings) - i'm not really sure
> about its limitations though
> - add a virtual field (http://docs.qgis.org/2.14/en/
> docs/user_manual/working_with_vector/attribute_table.html#
> editing-attribute-values) that you could later recalculate into a simple
> field
> - use the Autofields plugin (http://plugins.qgis.org/plugins/AutoFields/)
> - use the SpatialJoin plugin (http://plugins.qgis.org/plugins/spatialJoin/
> )
>
> Except the SpatialJoin plugin option (which is internally based on it),
> you'll need to write an expression likely based on refFunctions plugin
> (e.g, geomintersects) someone mentioned above.
>
> HTH,
> Harrissou
>
>
> 2016-12-21 19:23 GMT+01:00 Laurent Bourlet :
>
>> Hi,
>>
>> i thought it was more easy ...
>>
>> In fact , i don't use a GPS because these points don't need precision :
>> they are only used to identify the parcels . And i would like to catch
>> their identity ( a number for each parcel and the owner ) if possible with
>> a dynamic spatialjoin...
>>
>> With booth data ( number of parcel and name of owner ) , i could talk
>> with the fisc administration :-)
>>
>> Randy was right ...i didn't have the same EPSG for the two layers . It's
>> now OK ! but without the feature "dynamic" .
>>
>> Indeed , i would avoid building many temporaries layers and i thought it
>> existed a plugin for this  " dynamic" feature.
>>
>> If no , i will ask my users to make spatialjoins some time to time ...
>>
>> Waiting , i will try the solution of Bernd...
>>
>> Thank you anyway !
>>
>> laurent
>>
>>
>>
>> Le 21/12/2016 à 17:46, Bernd Vogelgesang a écrit :
>>
>>> Hi,
>>>
>>> for me this sounds more like he is getting new points once in a while and
>>> wants to join those attributes to the new points "automatically" from the
>>> parcel layer.
>>>
>>> The biggest problem for users is to rethink the workflow from the end to
>>> the beginning and to know the limitations.
>>>
>>> The outcome should be a point layer with the polygons attributes. If
>>> those
>>> points (layer A) are from GPS as Randy assumes, they have to be
>>> reprojected to the parcels layer (layer B) before being able to join them
>>> spatially(layer C). The spatial join in the toolbox produces layer D.
>>>
>>> Most probably, the resulting layer D is going to to be edited in some way
>>> (adding notes about size, the progress, classifications, whatever), so
>>> you
>>> will have to find a way to preserve those new attribute while being able
>>> to
>>> add new points without much trouble.
>>>
>>> The processing toolbox is a good way to do these steps, though it
>>> produces
>>> a lot of temporary files cluttering the project.
>>>
>>> A better way for all those repetitive tasks, is to use the graphical
>>> modeller, to create a workflow which only has to be triggered once new
>>> points come in, and the resulting file can be saved as new a file e.g.
>>> with the current date in the name, so you have kind of an archive and do
>>> not
>>> overwrite previous files (and destroy your work in case something goes
>>> wrong).
>>>
>>> So I can imagine a model with input layer A (new points in WGS84 without
>>> attributes) and a parcel layer B (in whatever projection).
>>> reproject layer A and C will be created as an intermediate step.
>>>
>>> Next input layer is the latest result layer D, reprojected and with
>>> attributes.
>>> Merge layer C and D -> E. Now delete all columns which are from layer B
>>> (from the last spatial join. Unfortunately, you can only delete one field
>>> at a time in the modeller, so you'll will have to add the command several
>>> times in a row to the model) -> Fn
>>> Do the spatial join of Fn with B.
>>>
>>> The last result G will now hold all points with the corresponding parcel
>>> info plus additional fields you might have added to the points.
>>> G will be the input D in the next run with fresh points.
>>>
>>> So, do not add new points to the already existing collection of points
>>> in WGS84 (it is never save to edit layers without backup), but just import
>>> them as a new input set and then run the model with the parcel layer and
>>> the last result layer.
>>>
>>> The modeller is not as intuitive as it should be, but it 

Re: [Qgis-user] spatialjoin

2016-12-21 Thread DelazJ
Hi,

2016-12-21 21:39 GMT+01:00 Karl-Magnus Jönsson <
karl-magnus.jons...@kristianstad.se>:

> Actually it is (easier). Or could be. If you are able to use spatial sql
> as in postgis. Maybe you could do something similar in spatialite. A little
> more work to set up the database but in the end there are a lot more
> possibilities. I would have done something like this (maybe not correct
> syntax. Read the referece!):
>
> Actually, for many releases now, you can use SQL on any file format in
QGIS, shapefile included. No more need to put it inside a SpatiaLite base.
Simply use virtual layer
http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/virtual_layers.html
within the DB Manager tool.

Regards,
Harrissou

> Create or replace view [viewname] as
> Select
> A.id,
> A.attribute1,
> B.attribute2,
> A.geom
> From pointtable A, polygontable B
> Where st_within(A.geom,B.geom);
>
> If A.geom has to be transformed you could use st_transform inside the
> st_within function.
>
> /Karl-Magnus Jönsson
>
>
> 21 dec 2016 kl. 19:23 skrev Laurent Bourlet :
>
> Hi,
>
> i thought it was more easy ...
>
> In fact , i don't use a GPS because these points don't need precision :
> they are only used to identify the parcels . And i would like to catch
> their identity ( a number for each parcel and the owner ) if possible with
> a dynamic spatialjoin...
>
> With booth data ( number of parcel and name of owner ) , i could talk with
> the fisc administration :-)
>
> Randy was right ...i didn't have the same EPSG for the two layers . It's
> now OK ! but without the feature "dynamic" .
>
> Indeed , i would avoid building many temporaries layers and i thought it
> existed a plugin for this  " dynamic" feature.
>
> If no , i will ask my users to make spatialjoins some time to time ...
>
> Waiting , i will try the solution of Bernd...
>
> Thank you anyway !
>
> laurent
>
>
> Le 21/12/2016 à 17:46, Bernd Vogelgesang a écrit :
>
> Hi,
>
>
> for me this sounds more like he is getting new points once in a while and
>
> wants to join those attributes to the new points "automatically" from the
>
> parcel layer.
>
>
> The biggest problem for users is to rethink the workflow from the end to
>
> the beginning and to know the limitations.
>
>
> The outcome should be a point layer with the polygons attributes. If those
>
> points (layer A) are from GPS as Randy assumes, they have to be
>
> reprojected to the parcels layer (layer B) before being able to join them
>
> spatially(layer C). The spatial join in the toolbox produces layer D.
>
>
> Most probably, the resulting layer D is going to to be edited in some way
>
> (adding notes about size, the progress, classifications, whatever), so you
>
> will have to find a way to preserve those new attribute while being able to
>
> add new points without much trouble.
>
>
> The processing toolbox is a good way to do these steps, though it produces
>
> a lot of temporary files cluttering the project.
>
>
> A better way for all those repetitive tasks, is to use the graphical
>
> modeller, to create a workflow which only has to be triggered once new
>
> points come in, and the resulting file can be saved as new a file e.g.
>
> with the current date in the name, so you have kind of an archive and do
> not
>
> overwrite previous files (and destroy your work in case something goes
>
> wrong).
>
>
> So I can imagine a model with input layer A (new points in WGS84 without
> attributes) and a parcel layer B (in whatever projection).
>
> reproject layer A and C will be created as an intermediate step.
>
>
> Next input layer is the latest result layer D, reprojected and with
> attributes.
>
> Merge layer C and D -> E. Now delete all columns which are from layer B
> (from the last spatial join. Unfortunately, you can only delete one field
> at a time in the modeller, so you'll will have to add the command several
> times in a row to the model) -> Fn
>
> Do the spatial join of Fn with B.
>
>
> The last result G will now hold all points with the corresponding parcel
> info plus additional fields you might have added to the points.
>
> G will be the input D in the next run with fresh points.
>
>
> So, do not add new points to the already existing collection of points in
> WGS84 (it is never save to edit layers without backup), but just import
> them as a new input set and then run the model with the parcel layer and
> the last result layer.
>
>
> The modeller is not as intuitive as it should be, but it can save you a
> lot of time once you managed to set up a model.
>
>
> Maybe I was completely wrong analysing the problem, but maybe someone else
> has the problem that fits to my solution ;)
>
> Cheers
>
> Bernd
>
>
>
>
>
>
> Am 21.12.2016, 14:07 Uhr, schrieb Randal Hale
>
> :
>
>
> 2 things:
>
>
> 1. In QGIS there is a processing toolbox (I assume you are one something
> as new as version 2.14.8). Open it (it's at the top -> Processing ->
> 

Re: [Qgis-user] spatialjoin

2016-12-21 Thread DelazJ
Hi,
Laurent, I can think about different ways you can test to tackle your
issues, provided you have two spatial layers that overlap (and without any
intermediate layer creation):
- recent QGIS introduce default values concept (
http://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html#common-settings)
- i'm not really sure about its limitations though
- add a virtual field (
http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/attribute_table.html#editing-attribute-values)
that you could later recalculate into a simple field
- use the Autofields plugin (http://plugins.qgis.org/plugins/AutoFields/)
- use the SpatialJoin plugin (http://plugins.qgis.org/plugins/spatialJoin/)

Except the SpatialJoin plugin option (which is internally based on it),
you'll need to write an expression likely based on refFunctions plugin
(e.g, geomintersects) someone mentioned above.

HTH,
Harrissou


2016-12-21 19:23 GMT+01:00 Laurent Bourlet :

> Hi,
>
> i thought it was more easy ...
>
> In fact , i don't use a GPS because these points don't need precision :
> they are only used to identify the parcels . And i would like to catch
> their identity ( a number for each parcel and the owner ) if possible with
> a dynamic spatialjoin...
>
> With booth data ( number of parcel and name of owner ) , i could talk with
> the fisc administration :-)
>
> Randy was right ...i didn't have the same EPSG for the two layers . It's
> now OK ! but without the feature "dynamic" .
>
> Indeed , i would avoid building many temporaries layers and i thought it
> existed a plugin for this  " dynamic" feature.
>
> If no , i will ask my users to make spatialjoins some time to time ...
>
> Waiting , i will try the solution of Bernd...
>
> Thank you anyway !
>
> laurent
>
>
>
> Le 21/12/2016 à 17:46, Bernd Vogelgesang a écrit :
>
>> Hi,
>>
>> for me this sounds more like he is getting new points once in a while and
>> wants to join those attributes to the new points "automatically" from the
>> parcel layer.
>>
>> The biggest problem for users is to rethink the workflow from the end to
>> the beginning and to know the limitations.
>>
>> The outcome should be a point layer with the polygons attributes. If those
>> points (layer A) are from GPS as Randy assumes, they have to be
>> reprojected to the parcels layer (layer B) before being able to join them
>> spatially(layer C). The spatial join in the toolbox produces layer D.
>>
>> Most probably, the resulting layer D is going to to be edited in some way
>> (adding notes about size, the progress, classifications, whatever), so you
>> will have to find a way to preserve those new attribute while being able
>> to
>> add new points without much trouble.
>>
>> The processing toolbox is a good way to do these steps, though it produces
>> a lot of temporary files cluttering the project.
>>
>> A better way for all those repetitive tasks, is to use the graphical
>> modeller, to create a workflow which only has to be triggered once new
>> points come in, and the resulting file can be saved as new a file e.g.
>> with the current date in the name, so you have kind of an archive and do
>> not
>> overwrite previous files (and destroy your work in case something goes
>> wrong).
>>
>> So I can imagine a model with input layer A (new points in WGS84 without
>> attributes) and a parcel layer B (in whatever projection).
>> reproject layer A and C will be created as an intermediate step.
>>
>> Next input layer is the latest result layer D, reprojected and with
>> attributes.
>> Merge layer C and D -> E. Now delete all columns which are from layer B
>> (from the last spatial join. Unfortunately, you can only delete one field
>> at a time in the modeller, so you'll will have to add the command several
>> times in a row to the model) -> Fn
>> Do the spatial join of Fn with B.
>>
>> The last result G will now hold all points with the corresponding parcel
>> info plus additional fields you might have added to the points.
>> G will be the input D in the next run with fresh points.
>>
>> So, do not add new points to the already existing collection of points in
>> WGS84 (it is never save to edit layers without backup), but just import
>> them as a new input set and then run the model with the parcel layer and
>> the last result layer.
>>
>> The modeller is not as intuitive as it should be, but it can save you a
>> lot of time once you managed to set up a model.
>>
>> Maybe I was completely wrong analysing the problem, but maybe someone
>> else has the problem that fits to my solution ;)
>> Cheers
>> Bernd
>>
>>
>>
>>
>>
>> Am 21.12.2016, 14:07 Uhr, schrieb Randal Hale
>> :
>>
>> 2 things:
>>>
>>> 1. In QGIS there is a processing toolbox (I assume you are one something
>>> as new as version 2.14.8). Open it (it's at the top -> Processing ->
>>> Toolbox). You can search for tools. Search for "join" and you should see a
>>> "Join 

Re: [Qgis-user] spatialjoin

2016-12-21 Thread Karl-Magnus Jönsson
Actually it is (easier). Or could be. If you are able to use spatial sql as in 
postgis. Maybe you could do something similar in spatialite. A little more work 
to set up the database but in the end there are a lot more possibilities. I 
would have done something like this (maybe not correct syntax. Read the 
referece!):

Create or replace view [viewname] as
Select
A.id,
A.attribute1,
B.attribute2,
A.geom
>From pointtable A, polygontable B
Where st_within(A.geom,B.geom);

If A.geom has to be transformed you could use st_transform inside the st_within 
function.
/Karl-Magnus Jönsson

21 dec 2016 kl. 19:23 skrev Laurent Bourlet 
>:

Hi,

i thought it was more easy ...

In fact , i don't use a GPS because these points don't need precision : they 
are only used to identify the parcels . And i would like to catch their 
identity ( a number for each parcel and the owner ) if possible with a dynamic 
spatialjoin...

With booth data ( number of parcel and name of owner ) , i could talk with the 
fisc administration :-)

Randy was right ...i didn't have the same EPSG for the two layers . It's now OK 
! but without the feature "dynamic" .

Indeed , i would avoid building many temporaries layers and i thought it 
existed a plugin for this  " dynamic" feature.

If no , i will ask my users to make spatialjoins some time to time ...

Waiting , i will try the solution of Bernd...

Thank you anyway !

laurent


Le 21/12/2016 à 17:46, Bernd Vogelgesang a écrit :
Hi,

for me this sounds more like he is getting new points once in a while and
wants to join those attributes to the new points "automatically" from the
parcel layer.

The biggest problem for users is to rethink the workflow from the end to
the beginning and to know the limitations.

The outcome should be a point layer with the polygons attributes. If those
points (layer A) are from GPS as Randy assumes, they have to be
reprojected to the parcels layer (layer B) before being able to join them
spatially(layer C). The spatial join in the toolbox produces layer D.

Most probably, the resulting layer D is going to to be edited in some way
(adding notes about size, the progress, classifications, whatever), so you
will have to find a way to preserve those new attribute while being able to
add new points without much trouble.

The processing toolbox is a good way to do these steps, though it produces
a lot of temporary files cluttering the project.

A better way for all those repetitive tasks, is to use the graphical
modeller, to create a workflow which only has to be triggered once new
points come in, and the resulting file can be saved as new a file e.g.
with the current date in the name, so you have kind of an archive and do not
overwrite previous files (and destroy your work in case something goes
wrong).

So I can imagine a model with input layer A (new points in WGS84 without 
attributes) and a parcel layer B (in whatever projection).
reproject layer A and C will be created as an intermediate step.

Next input layer is the latest result layer D, reprojected and with attributes.
Merge layer C and D -> E. Now delete all columns which are from layer B (from 
the last spatial join. Unfortunately, you can only delete one field at a time 
in the modeller, so you'll will have to add the command several times in a row 
to the model) -> Fn
Do the spatial join of Fn with B.

The last result G will now hold all points with the corresponding parcel info 
plus additional fields you might have added to the points.
G will be the input D in the next run with fresh points.

So, do not add new points to the already existing collection of points in WGS84 
(it is never save to edit layers without backup), but just import them as a new 
input set and then run the model with the parcel layer and the last result 
layer.

The modeller is not as intuitive as it should be, but it can save you a lot of 
time once you managed to set up a model.

Maybe I was completely wrong analysing the problem, but maybe someone else has 
the problem that fits to my solution ;)
Cheers
Bernd





Am 21.12.2016, 14:07 Uhr, schrieb Randal Hale
>:

2 things:

1. In QGIS there is a processing toolbox (I assume you are one something as new 
as version 2.14.8). Open it (it's at the top -> Processing -> Toolbox). You can 
search for tools. Search for "join" and you should see a "Join Attributes by 
location". This is a spatial join.

2. THE MOST IMPORTANT THING. You mentioned you had collected points with a GPS. 
Possibly these points are in EPSG:4326. I'm going to guess that your parcel 
layer isn't. If you right click your parcel layer (in the layers panel) it will 
allow you to select properties. On the General Tab you will see the Coordinate 
Reference System mentioned and many times it is something like EPSG: . A 
Spatial Join must have the layers in the same coordinate 

Re: [Qgis-user] spatialjoin

2016-12-21 Thread Laurent Bourlet

Hi,

i thought it was more easy ...

In fact , i don't use a GPS because these points don't need precision : 
they are only used to identify the parcels . And i would like to catch 
their identity ( a number for each parcel and the owner ) if possible 
with a dynamic spatialjoin...


With booth data ( number of parcel and name of owner ) , i could talk 
with the fisc administration :-)


Randy was right ...i didn't have the same EPSG for the two layers . It's 
now OK ! but without the feature "dynamic" .


Indeed , i would avoid building many temporaries layers and i thought it 
existed a plugin for this  " dynamic" feature.


If no , i will ask my users to make spatialjoins some time to time ...

Waiting , i will try the solution of Bernd...

Thank you anyway !

laurent


Le 21/12/2016 à 17:46, Bernd Vogelgesang a écrit :

Hi,

for me this sounds more like he is getting new points once in a while and
wants to join those attributes to the new points "automatically" from the
parcel layer.

The biggest problem for users is to rethink the workflow from the end to
the beginning and to know the limitations.

The outcome should be a point layer with the polygons attributes. If 
those

points (layer A) are from GPS as Randy assumes, they have to be
reprojected to the parcels layer (layer B) before being able to join them
spatially(layer C). The spatial join in the toolbox produces layer D.

Most probably, the resulting layer D is going to to be edited in some way
(adding notes about size, the progress, classifications, whatever), so 
you
will have to find a way to preserve those new attribute while being 
able to

add new points without much trouble.

The processing toolbox is a good way to do these steps, though it 
produces

a lot of temporary files cluttering the project.

A better way for all those repetitive tasks, is to use the graphical
modeller, to create a workflow which only has to be triggered once new
points come in, and the resulting file can be saved as new a file e.g.
with the current date in the name, so you have kind of an archive and 
do not

overwrite previous files (and destroy your work in case something goes
wrong).

So I can imagine a model with input layer A (new points in WGS84 
without attributes) and a parcel layer B (in whatever projection).

reproject layer A and C will be created as an intermediate step.

Next input layer is the latest result layer D, reprojected and with 
attributes.
Merge layer C and D -> E. Now delete all columns which are from layer 
B (from the last spatial join. Unfortunately, you can only delete one 
field at a time in the modeller, so you'll will have to add the 
command several times in a row to the model) -> Fn

Do the spatial join of Fn with B.

The last result G will now hold all points with the corresponding 
parcel info plus additional fields you might have added to the points.

G will be the input D in the next run with fresh points.

So, do not add new points to the already existing collection of points 
in WGS84 (it is never save to edit layers without backup), but just 
import them as a new input set and then run the model with the parcel 
layer and the last result layer.


The modeller is not as intuitive as it should be, but it can save you 
a lot of time once you managed to set up a model.


Maybe I was completely wrong analysing the problem, but maybe someone 
else has the problem that fits to my solution ;)

Cheers
Bernd





Am 21.12.2016, 14:07 Uhr, schrieb Randal Hale
:


2 things:

1. In QGIS there is a processing toolbox (I assume you are one 
something as new as version 2.14.8). Open it (it's at the top -> 
Processing -> Toolbox). You can search for tools. Search for "join" 
and you should see a "Join Attributes by location". This is a spatial 
join.


2. THE MOST IMPORTANT THING. You mentioned you had collected points 
with a GPS. Possibly these points are in EPSG:4326. I'm going to 
guess that your parcel layer isn't. If you right click your parcel 
layer (in the layers panel) it will allow you to select properties. 
On the General Tab you will see the Coordinate Reference System 
mentioned and many times it is something like EPSG: . A Spatial 
Join must have the layers in the same coordinate system.


If it is different - Right Click on your GPS points and "Save as". 
When the "Save vector layer as" window comes up. Save it as a 
shapefile and MOST IMPORTANTLY change the CRS to match your parcel 
layer. Click on the small globe (that appears to be wearing a hat) 
and in the filter type in the number you see for your parcels. You 
can then select that projection and Save your file. It should save. 
You can then perform the "join by location".


It should work. You are very close though so don't worry.

Randy



On 12/21/2016 01:24 AM, Erwan Conseil wrote:

Hi
In my layer B , I have the name of the owner and the number of the 
parcel : this number , a polygon , have a WKT location . All this is 

Re: [Qgis-user] spatialjoin

2016-12-21 Thread Andrew
I am not totally clear on exactly how you want it to work so this may or
may not be helpful. I have something similar set up using the refFunctions
plugin you mentioned.  I believe that the layers need to be in the same CRS
for the reference functions.

If you want to simply add a field with names to a set of existing points
then you can use the field calculator and enter something like:
geomintersects('Layer B','name_field')

You can also set QGIS to calculate this for new features you digitize.  Add
a new field to Layer A and In the field properties set the default value to
the above formula.

Finally, if you need it to work with layers in different CRS and are
feeling pythonically adventurous I think it'd be pretty straightforward to
make a custom function to do it  Just copy the refFunctions
geomintersects() code into the function editor and add a bit to do a CRS
transformation on the feature.

Andrew

On Tue, Dec 20, 2016 at 3:03 PM, Laurent Bourlet  wrote:

> Hi at all
>
> I'm a beginner in Qgis and i would make a dynamic spatialjoin.
> In fact , i have created a vector layer ( for example  A) and i grab
> points in it when I'm outdoor ( these points are buildings unknowned by the
> government and so these building are not taxed ...) . I have also a layer
> (B) with the name of the owners of these lands .
> You see what i would ?...
> I would have these names transferred as attribut from B to A .
> For that , i think about a spatialjoin with a dynamic feature . So i have
> downloaded the two plugins "reffunction" and "spatialjoin".
> But i have certainly maked something wrong because i don't succeed ...
>
> Is it the good method ?
>
> And If yes , and if exist a doc about these plugins ...i'll take it :-))
>
> regards
>
> Laurent
>
> ( pour les francophones ...je repère et saisis des points représentants
> des batiments construits et visibles par Google Map mais inconnus par le
> cadastre et donc les impôts ...je voudrais donc enrichir la couche de
> saisie par les références des parcelles et les noms des propriétaires par
> une jointure spatiale dynamique ..à chaque point saisi , "monte" cette
> référence )
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] qgis-spatialite associare geometria a csv

2016-12-21 Thread Totò
Luca Puglisi wrote
> Buongiorno alla lista,
> 
> in spatialite sto cercando di associare una geometria ad un file csv in 
> cui sono presenti due colonne con le coordinate di altrettanti punti ma 
> non sono riuscito a capire come si fa. L'esempio del Cookbook di Furieri 
> non mi e' stato d'aiuto (devo essere particolarmente duro!) e non sono 
> riuscito a trovare altra documentazione (ancora piu' duro?!). Vi sarei 
> grato se poteste darmi qualche indicazione.
> 
> Ovviamente NON vorrei creare prima il layer con Qgis e poi importarlo in 
> Spatialite

Puoi procedere cosi:
1. avvia spatialite_gui e crea nuovo database;
2. dal menu: file = advanced => load csv/txt
3. spatialite_gui ti aggiungerà la tabella con tutti i campi tra cui le tue
coordinate X,Y;
4. aggiungi colonna geometry (SELECT AddGeometryColumn ('nome
tabella','geom',EPSG,'POINT','XY');
5. popola la colonna geom con i dati X,Y con (UPDATE nome tabella set geom =
MakePoint(x, y, EPSG)

NB: al posto di EPSG metti il codice numerico

SALUTI



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/qgis-spatialite-associare-geometria-a-csv-tp5300872p5300928.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] spatialjoin

2016-12-21 Thread Bernd Vogelgesang

Hi,

for me this sounds more like he is getting new points once in a while and
wants to join those attributes to the new points "automatically" from the
parcel layer.

The biggest problem for users is to rethink the workflow from the end to
the beginning and to know the limitations.

The outcome should be a point layer with the polygons attributes. If those
points (layer A) are from GPS as Randy assumes, they have to be
reprojected to the parcels layer (layer B) before being able to join them
spatially(layer C). The spatial join in the toolbox produces layer D.

Most probably, the resulting layer D is going to to be edited in some way
(adding notes about size, the progress, classifications, whatever), so you
will have to find a way to preserve those new attribute while being able to
add new points without much trouble.

The processing toolbox is a good way to do these steps, though it produces
a lot of temporary files cluttering the project.

A better way for all those repetitive tasks, is to use the graphical
modeller, to create a workflow which only has to be triggered once new
points come in, and the resulting file can be saved as new a file e.g.
with the current date in the name, so you have kind of an archive and do  
not

overwrite previous files (and destroy your work in case something goes
wrong).

So I can imagine a model with input layer A (new points in WGS84 without  
attributes) and a parcel layer B (in whatever projection).

reproject layer A and C will be created as an intermediate step.

Next input layer is the latest result layer D, reprojected and with  
attributes.
Merge layer C and D -> E. Now delete all columns which are from layer B  
(from the last spatial join. Unfortunately, you can only delete one field  
at a time in the modeller, so you'll will have to add the command several  
times in a row to the model) -> Fn

Do the spatial join of Fn with B.

The last result G will now hold all points with the corresponding parcel  
info plus additional fields you might have added to the points.

G will be the input D in the next run with fresh points.

So, do not add new points to the already existing collection of points in  
WGS84 (it is never save to edit layers without backup), but just import  
them as a new input set and then run the model with the parcel layer and  
the last result layer.


The modeller is not as intuitive as it should be, but it can save you a  
lot of time once you managed to set up a model.


Maybe I was completely wrong analysing the problem, but maybe someone else  
has the problem that fits to my solution ;)

Cheers
Bernd





Am 21.12.2016, 14:07 Uhr, schrieb Randal Hale
:


2 things:

1. In QGIS there is a processing toolbox (I assume you are one something  
as new as version 2.14.8). Open it (it's at the top -> Processing ->  
Toolbox). You can search for tools. Search for "join" and you should see  
a "Join Attributes by location". This is a spatial join.


2. THE MOST IMPORTANT THING. You mentioned you had collected points with  
a GPS. Possibly these points are in EPSG:4326. I'm going to guess that  
your parcel layer isn't. If you right click your parcel layer (in the  
layers panel) it will allow you to select properties. On the General Tab  
you will see the Coordinate Reference System mentioned and many times it  
is something like EPSG: . A Spatial Join must have the layers in the  
same coordinate system.


If it is different - Right Click on your GPS points and "Save as". When  
the "Save vector layer as" window comes up. Save it as a shapefile  
and MOST IMPORTANTLY change the CRS to match your parcel layer. Click on  
the small globe (that appears to be wearing a hat) and in the filter  
type in the number you see for your parcels. You can then select that  
projection and Save your file. It should save. You can then perform the  
"join by location".


It should work. You are very close though so don't worry.

Randy



On 12/21/2016 01:24 AM, Erwan Conseil wrote:

Hi
In my layer B , I have the name of the owner and the number of the  
parcel : this number , a polygon , have a WKT location . All this is in  
a SHP . As I grab points in layer A directly in Qgis (2.18) , I have  
also a SHP . And i need a dynamic join because I have no desire to make  
the spatial join each time...

Regards
Laurent

Le 21 déc. 2016 à 01:30, Randal Hale   
a écrit :


In your layer B - Do the Names of the Owners have a location (like a  
tax parcel) or are they a spreadsheet (like Microsoft Excel)?


Randy



On 12/20/2016 06:03 PM, Laurent Bourlet wrote:
Hi at all

I'm a beginner in Qgis and i would make a dynamic spatialjoin.
In fact , i have created a vector layer ( for example  A) and i grab  
points in it when I'm outdoor ( these points are buildings unknowned  
by the government and so these building are not taxed ...) . I have  
also a layer (B) with the name of the owners of these 

Re: [QGIS-it-user] qgis-spatialite associare geometria a csv

2016-12-21 Thread Amedeo Fadini
Ciao

Il 21 dicembre 2016 16:22, Luca Puglisi  ha scritto:
> Grazie mille, cerchero' di mettere a frutto. Il primo tentativo non ha
> portato a grandi risultati, ma evidentemente mi manca familiarita' con
> Spatialite. Grazie ancora
> Luca

Di nulla.
Sei sicuro che invece non ti manchi familiarità con il linguaggio SQL
e i database relazionali in genere? Hai già esperienza delle funzioni
spaziali in altri DBMS?
Ricorda che Spatialite è l'estensione spaziale di SQLite, valgono
tutte le funzioni e regole di SQLite e tutti i costrutti SQL standard.

Non è chiaro se il tuo csv l'hai già importato all'interno di un db
spatilite o l'hai solo collegato.
Non hai detto che strumento usi. Mi auguro la spatialite GUI. Ad ogni
modo prova a leggere anche altre liste, questa è specifica per QGIS,
può esser più pertinente  lo spatialite users group e la lista
GFOSS.it

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


Re: [QGIS-it-user] qgis-spatialite associare geometria a csv

2016-12-21 Thread Luca Puglisi
Grazie mille, cerchero' di mettere a frutto. Il primo tentativo non ha 
portato a grandi risultati, ma evidentemente mi manca familiarita' con 
Spatialite. Grazie ancora

Luca

Il 21/12/2016 14:47, Amedeo Fadini ha scritto:

Ciao

Il 21 dicembre 2016 13:22, Luca Puglisi  ha scritto:

Buongiorno alla lista,

in spatialite sto cercando di associare una geometria ad un file csv in cui
sono presenti due colonne con le coordinate di altrettanti punti ma non sono
riuscito a capire come si fa. L'esempio del Cookbook di Furieri non mi e'
stato d'aiuto (devo essere particolarmente duro!) e non sono riuscito a
trovare altra documentazione (ancora piu' duro?!). Vi sarei grato se poteste
darmi qualche indicazione.


http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.3.0.html#p0

amefad




---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

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


Re: [QGIS-it-user] qgis-spatialite associare geometria a csv

2016-12-21 Thread Amedeo Fadini
Ciao

Il 21 dicembre 2016 13:22, Luca Puglisi  ha scritto:
> Buongiorno alla lista,
>
> in spatialite sto cercando di associare una geometria ad un file csv in cui
> sono presenti due colonne con le coordinate di altrettanti punti ma non sono
> riuscito a capire come si fa. L'esempio del Cookbook di Furieri non mi e'
> stato d'aiuto (devo essere particolarmente duro!) e non sono riuscito a
> trovare altra documentazione (ancora piu' duro?!). Vi sarei grato se poteste
> darmi qualche indicazione.


http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.3.0.html#p0

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


Re: [Qgis-user] spatialjoin

2016-12-21 Thread Randal Hale

2 things:

1. In QGIS there is a processing toolbox (I assume you are one something 
as new as version 2.14.8). Open it (it's at the top -> Processing -> 
Toolbox). You can search for tools. Search for "join" and you should see 
a "Join Attributes by location". This is a spatial join.


2. THE MOST IMPORTANT THING. You mentioned you had collected points with 
a GPS. Possibly these points are in EPSG:4326. I'm going to guess that 
your parcel layer isn't. If you right click your parcel layer (in the 
layers panel) it will allow you to select properties. On the General Tab 
you will see the Coordinate Reference System mentioned and many times it 
is something like EPSG: . A Spatial Join must have the layers in the 
same coordinate system.


If it is different - Right Click on your GPS points and "Save as". When 
the "Save vector layer as" window comes up. Save it as a shapefile 
and MOST IMPORTANTLY change the CRS to match your parcel layer. Click on 
the small globe (that appears to be wearing a hat) and in the filter 
type in the number you see for your parcels. You can then select that 
projection and Save your file. It should save. You can then perform the 
"join by location".


It should work. You are very close though so don't worry.

Randy



On 12/21/2016 01:24 AM, Erwan Conseil wrote:

Hi
In my layer B , I have the name of the owner and the number of the parcel : 
this number , a polygon , have a WKT location . All this is in a SHP . As I 
grab points in layer A directly in Qgis (2.18) , I have also a SHP . And i need 
a dynamic join because I have no desire to make the spatial join each time...
Regards
Laurent


Le 21 déc. 2016 à 01:30, Randal Hale  a écrit :

In your layer B - Do the Names of the Owners have a location (like a tax 
parcel) or are they a spreadsheet (like Microsoft Excel)?

Randy



On 12/20/2016 06:03 PM, Laurent Bourlet wrote:
Hi at all

I'm a beginner in Qgis and i would make a dynamic spatialjoin.
In fact , i have created a vector layer ( for example  A) and i grab points in 
it when I'm outdoor ( these points are buildings unknowned by the government 
and so these building are not taxed ...) . I have also a layer (B) with the 
name of the owners of these lands .
You see what i would ?...
I would have these names transferred as attribut from B to A .
For that , i think about a spatialjoin with a dynamic feature . So i have downloaded the two 
plugins "reffunction" and "spatialjoin".
But i have certainly maked something wrong because i don't succeed ...

Is it the good method ?

And If yes , and if exist a doc about these plugins ...i'll take it :-))

regards

Laurent

( pour les francophones ...je repère et saisis des points représentants  des batiments 
construits et visibles par Google Map mais inconnus par le cadastre et donc les impôts 
...je voudrais donc enrichir la couche de saisie par les références des parcelles et les 
noms des propriétaires par une jointure spatiale dynamique ..à chaque point saisi , 
"monte" cette référence )

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

--
-
Randal Hale
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale

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


--
-
Randal Hale
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale

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

[QGIS-it-user] qgis-spatialite associare geometria a csv

2016-12-21 Thread Luca Puglisi

Buongiorno alla lista,

in spatialite sto cercando di associare una geometria ad un file csv in 
cui sono presenti due colonne con le coordinate di altrettanti punti ma 
non sono riuscito a capire come si fa. L'esempio del Cookbook di Furieri 
non mi e' stato d'aiuto (devo essere particolarmente duro!) e non sono 
riuscito a trovare altra documentazione (ancora piu' duro?!). Vi sarei 
grato se poteste darmi qualche indicazione.


Ovviamente NON vorrei creare prima il layer con Qgis e poi importarlo in 
Spatialite


grazie, un saluto
Luca Puglisi

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

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


Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Bo Victor Thomsen

Ok -

A very rough, but functional first version of the plugin is now in 
https://github.com/Frederikssund/QGIS-canvas-to-clipboard/


 * No shortcut
 * No about-box, nice explanations or help text
 * No copyright statements
 * Only one button that create a bitmap of the current map-canvas and
   put into the clipboard

But it works  !

Is it possible that I could get some feedback on how it works on other 
platforms than Windows from someone(s) with access to Linux and/or Mac?



Den 20-12-2016 kl. 21:43 skrev Larry Shaffer:

Hi,

On Tue, Dec 20, 2016 at 11:02 AM, DelazJ > wrote:


Hi,

2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>:

Hi List-members -

Is there in Qgis a function / button / menu-item / short-cut /
plugin to make a simple bitmap copy of the current content of
the map-canvas and save it to the clipboard ? My users need
this to make a copy of the map and paste into MS-Word or other
software.


While not part of the QGIS app, one could use this PyQGIS snippet to 
do so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the 
PyQGIS console:


from PyQt4.QtGui import *
QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(

This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a 
paint device, like an image. Code can be wrapped in a plugin, then 
have some key bindings applied (would need some more PyQt).


Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

I really need the functionality for my users and I can't seem
to find it. The closest I've come is the "save as png"
menu-item in the project menu. But it's to cumbersome to use
in this case.


Afaics, there's no "save as png" option but "save as image" in
Project menu, option from which you can choose the image file
format (bmp, jpg...). It's not on the clipboard but easier and
more accessible than print composer.

Regards,
Harrissou


I'm familiar with the composer function. My users can't use
this neither because it takes to long to activate (to many
choices and to many buttons to click)

So I've decided to make a simple plugin to cover this
functionality. But first I want to be very sure the function
actually is missing ;-)

Regards
Bo Victor Thomsen
Municipality of Frederikssund, Denmark.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org 
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




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

Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user





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

[QGIS-it-user] Georeferenziatore!

2016-12-21 Thread Ludovico
Ciao a tutti,
ho notato delle differenze nel Georeferenziatore tra la versione LTR (2.14)
e la 2.18. Nella versione 2.18, attivando lo snap, quando si inseriscono le
coordinate da mappa, è possibile agganciare i GCP, ad esempio, su un file
vettoriale caricato, cosa che non è possibile con la versione LTR. Si tratta
di una nuova funzionalità oppure della mia versione LTR che non riconosce il
comando?

Grazie!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Georeferenziatore-tp5300847.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Bo Victor Thomsen

Hi Larry -

The python snippet works like a charm on Windows too. I'll wrap a 
minimalistic python plugin around the snippet with a button and a 
short-cut. I owe you a large cold beer (actually several :-) . That 
snippet saved me from digging into a rather large pile of Qgis/PyQT 
documentation.  You'll get the beer(s) when we meet at some FOSS4G or 
Qgis event..


DelazJ: Yes, I was referring to the "Save as image". I simply couldn't 
remember the English translation for the menu item (Working with a 
Danish Qgis)


Karl-Magnus: (regarding snipping tool) - That's exactly what my users 
presently are doing. But even that is a bit too much work with the mouse 
and keyboard :-)


Richard: Actually, there already is a feature request for this function 
(http://hub.qgis.org/issues/10319) . I'll update the existing request. 
And thank you for the Qgis3 update (You'll get a beer too :-) . If it 
becomes necessary, I'll update the plugin to 3.0. But I hope that some 
developer with commit rights will have mercy on me and write this 
functionality into Qgis 3.0 core.


Regards

Bo Victor Thomsen
Municipality of Frederikssund


Den 20-12-2016 kl. 21:43 skrev Larry Shaffer:

Hi,

On Tue, Dec 20, 2016 at 11:02 AM, DelazJ > wrote:


Hi,

2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>:

Hi List-members -

Is there in Qgis a function / button / menu-item / short-cut /
plugin to make a simple bitmap copy of the current content of
the map-canvas and save it to the clipboard ? My users need
this to make a copy of the map and paste into MS-Word or other
software.


While not part of the QGIS app, one could use this PyQGIS snippet to 
do so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the 
PyQGIS console:


from PyQt4.QtGui import *
QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(

This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a 
paint device, like an image. Code can be wrapped in a plugin, then 
have some key bindings applied (would need some more PyQt).


Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

I really need the functionality for my users and I can't seem
to find it. The closest I've come is the "save as png"
menu-item in the project menu. But it's to cumbersome to use
in this case.


Afaics, there's no "save as png" option but "save as image" in
Project menu, option from which you can choose the image file
format (bmp, jpg...). It's not on the clipboard but easier and
more accessible than print composer.

Regards,
Harrissou


I'm familiar with the composer function. My users can't use
this neither because it takes to long to activate (to many
choices and to many buttons to click)

So I've decided to make a simple plugin to cover this
functionality. But first I want to be very sure the function
actually is missing ;-)

Regards
Bo Victor Thomsen
Municipality of Frederikssund, Denmark.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org 
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




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

Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user





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

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Neumann, Andreas
I agree. It would be nice to have this in QGIS core. 

Andreas 

On 2016-12-21 09:44, Richard Duivenvoorde wrote:

> On 12/20/2016 09:43 PM, Larry Shaffer wrote: 
> 
>> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>> >:
>> 
>> Hi List-members -
>> 
>> Is there in Qgis a function / button / menu-item / short-cut /
>> plugin to make a simple bitmap copy of the current content of
>> the map-canvas and save it to the clipboard ? My users need this
>> to make a copy of the map and paste into MS-Word or other software.
>> 
>> While not part of the QGIS app, one could use this PyQGIS snippet to do
>> so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS
>> console:
>> 
>> from PyQt4.QtGui import *
>> QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(
>> 
>> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
>> paint device, like an image. Code can be wrapped in a plugin, then have
>> some key bindings applied (would need some more PyQt).
> 
> Tested here on Linux: working fine too!!
> 
> I think this looks like a nice (easy?) feature request to make this core 
> functionality?
> 
> - right-click menu on mapcanvas with:
> - save Map to Clipboard
> (- set size of MapCanvas to...) I know this is also often needed...
> 
> - one or two buttons to do this?
> 
> While a plugin works for older versions, I think it should not be needed for 
> a teacher/user to hear: install QGIS and add the following plugins (while 
> that is actually what I often have to say)
> 
> I think I could even try to do this :-)
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

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

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Richard Duivenvoorde

On 12/21/2016 09:44 AM, Richard Duivenvoorde wrote:

On 12/20/2016 09:43 PM, Larry Shaffer wrote:

2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>:

Hi List-members -

Is there in Qgis a function / button / menu-item / short-cut /
plugin to make a simple bitmap copy of the current content of
the map-canvas and save it to the clipboard ? My users need this
to make a copy of the map and paste into MS-Word or other
software.


While not part of the QGIS app, one could use this PyQGIS snippet to do
so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS
console:

from PyQt4.QtGui import *
QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(


And for master/QGIS3 use:

from qgis.PyQt.QtWidgets import *
from qgis.PyQt.QtGui import *
QApplication.clipboard().setImage(QImage(QWidget.grab(iface.mapCanvas(

Regards,

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

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Brent Wood
I just save the project as image, then add the image to a document. While 
perhaps a few more clicks than using the clipboard, it works fine.

Cheers,
Brent 

On Wednesday, December 21, 2016 9:45 PM, Richard Duivenvoorde 
 wrote:
 

 On 12/20/2016 09:43 PM, Larry Shaffer wrote:
>    2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>    >:
>
>        Hi List-members -
>
>        Is there in Qgis a function / button / menu-item / short-cut /
>        plugin to make a simple bitmap copy of the current content of
>        the map-canvas and save it to the clipboard ? My users need this
>        to make a copy of the map and paste into MS-Word or other software.
>
>
> While not part of the QGIS app, one could use this PyQGIS snippet to do
> so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS
> console:
>
> from PyQt4.QtGui import *
> QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(
>
> This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
> paint device, like an image. Code can be wrapped in a plugin, then have
> some key bindings applied (would need some more PyQt).

Tested here on Linux: working fine too!!

I think this looks like a nice (easy?) feature request to make this core 
functionality?

- right-click menu on mapcanvas with:
  - save Map to Clipboard
  (- set size of MapCanvas to...) I know this is also often needed...

- one or two buttons to do this?

While a plugin works for older versions, I think it should not be needed 
for a teacher/user to hear: install QGIS and add the following 
plugins (while that is actually what I often have to say)

I think I could even try to do this :-)

Regards,

Richard Duivenvoorde

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

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

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Richard Duivenvoorde

On 12/20/2016 09:43 PM, Larry Shaffer wrote:

2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen
>:

Hi List-members -

Is there in Qgis a function / button / menu-item / short-cut /
plugin to make a simple bitmap copy of the current content of
the map-canvas and save it to the clipboard ? My users need this
to make a copy of the map and paste into MS-Word or other software.


While not part of the QGIS app, one could use this PyQGIS snippet to do
so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS
console:

from PyQt4.QtGui import *
QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas(

This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a
paint device, like an image. Code can be wrapped in a plugin, then have
some key bindings applied (would need some more PyQt).


Tested here on Linux: working fine too!!

I think this looks like a nice (easy?) feature request to make this core 
functionality?


- right-click menu on mapcanvas with:
  - save Map to Clipboard
  (- set size of MapCanvas to...) I know this is also often needed...

- one or two buttons to do this?

While a plugin works for older versions, I think it should not be needed 
for a teacher/user to hear: install QGIS and add the following 
plugins (while that is actually what I often have to say)


I think I could even try to do this :-)

Regards,

Richard Duivenvoorde

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

Re: [QGIS-it-user] Qfield - un primo esempio

2016-12-21 Thread Stefano Campus
mi permetto di aggiungere all'aesauriente guida di Totò che il plugin
Qconsolidate permette di raggruppare in un'unica directory tutti i layer di
un progetto, mantenendo nel progetto creato ad hoc anche eventuali layer
wms ecc

grazie totò

s.

Il giorno 20 dicembre 2016 21:21, Totò Fiandaca 
ha scritto:

> ops,
> ho dimenticato di mettere il link,
>
> grazie Marco!!!
>
> Il giorno 20 dicembre 2016 21:20, Marco Spaziani  > ha scritto:
>
>> ...che potete leggere qui:
>> https://pigrecoinfinito.wordpress.com/2016/12/20/qfield-app-
>> android-di-qgis/
>>
>> ;-)
>>
>> 2016-12-20 19:51 GMT+01:00 Totò :
>>
>>> Ciao a tutti,
>>> ho realizzato un articolo su Qfield con dati e progetto.
>>>
>>> Ciao e Buone feste a tutti.
>>>
>>>
>>>
>>> --
>>> View this message in context: http://osgeo-org.1560.x6.nabbl
>>> e.com/Qfield-un-primo-esempio-tp5299967p5300654.html
>>> Sent from the QGIS Italian User mailing list archive at Nabble.com.
>>> ___
>>> QGIS-it-user mailing list
>>> QGIS-it-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>>
>>
>>
>
>
> --
> *Salvatore Fiandaca*
> *mobile*.:+39 327.493.8955 <+39%20327%20493%208955>
> *m*: *pigrecoinfin...@gmail.com *
> *blog:** https://pigrecoinfinito.wordpress.com/
> *
>
> 43°51'0.54"N  10°34'27.62"E - EPSG:4326
>
> “Se la conoscenza deve essere aperta a tutti,
> perchè mai limitarne l’accesso?”
> R. Stallman
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] using nested case statements in labelling

2016-12-21 Thread Régis Haubourg
Hi,
you are simply facing the SQL standard behavior of the | operator when it
compares something to a NULL value, the whole result will be NULL.
In SQL, you can avoid that by wrapping each value in a "coalesce(myvalue,
'')" that will replace NULL by an empty string.

In QGIS, you can also use the "+" operator, and this one does not sends a
NULL like the pipe operator. Far more simple indeed, but less portable to
pure SQL .
Cheers
Régis


2016-12-21 3:33 GMT+01:00 damos :

> HI I am trying to do a nested case statement for a labelling task.
> I have a list of mines of varying sizes with different commodities and
> would
> like to label with the name of the mine and the amount of each commodity at
> the mine in a new line below the name. I only want to label the mines that
> I
> have decided are signifcant and for this I have made a new column in my
> table called significant.
> My difficulty is that not all mines have the same commodities, for example
> one mine has copper (Cu) and no lead(Pb), while another has both. yet
> another will only have Pb.
> i can easily label all of the sigificant mines and their copper amoutns
> with
> a suffix of kt Cu using this code:
>
> case when  "signifcant"  = 'yes' then  title( "Name" ) ||   '\n'   ||
>  case
> when "Cu_e_t" <1 then '' else round("Cu_e_t"/1000,0) || 'Kt Cu' end else
> null end
>
> however if I then try to add in the Pb amounts like this;
> case when  "signifcant"  = 'yes' then  title( "Name" ) ||   '\n'   ||
>  case
> when "Cu_e_t" <1 then '' else round("Cu_e_t"/1000,0) || 'Kt Cu' end ||
> case when "Pb_e_t" <1 then '' else round("Pb_e_t"/1000,0) || 'Kt Pb' end
> else null end
>
> I lose all of the Cu only mines and only get labels for those with Cu and
> Pb
> or just Pb.
> I understand that I am doing something wrong with the nested case
> statements, but cant figure out what.
>
> any help would be much appreciated.
> int the mean time I am going back to do the formula in excel where I am
> capable.
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/using-nested-case-statements-in-labelling-tp5300779.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user