Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Ramon Andinach
A third (and probably better) example. Did you know that you can have more than 
one map object on a composer?

For example, I’ve previously made a few maps were I needed an area enlarged as 
an inset. So two map objects at wildly different scales, and therefore 
different extents. 

 If there’s a single refresh extents button which map object would it apply to?

> On 15 May 2017, at 17:52, Ramon Andinach  wrote:
> 
> Hi Willem,
> 
> I can give you an example of where I really, really don’t want the extent to 
> be updated with the refresh button.
> 
> One of the things I use QGIS for requires making a series of maps using two 
> or more of a set of layers.
> So I can have a composer set to a wide view to give a regional overview, and 
> another composer set to a narrower more local view. I can then turn on one 
> set of layers and generate maps at both scales with that set. After that I 
> can change to set B, hit refresh to check it looks right (and I didn’t forget 
> a layer) then have maps for set B straight up.
> (I keep different QGIS projects, with a similar set of composers for each 
> project area I work in. Once I’ve got the map extents set, then I don’t have 
> to meddle with the composers too much. You sound a lot like you’re expecting 
> to people to recreate maps on the fly over and over again - this is really 
> time consuming.)
> 
> Another reason might be that you’ve got your composer set up and you zoom 
> into somewhere on the map to check a detail, fix it and you want to see what 
> it looks like on the map - but you don’t want to zoom back out. 
> 
> I really like that the extent for each composer is fixed - unless I choose to 
> change it. It seems perfectly intuitive to me :)
> 
> 
> 
> On a slight tangent, I notice that Christine did answer the question you 
> asked. 
> Did you mean to ask, “Is there a way to automate creating a map?"
> or,
> "Can I create a button that combines functions in the Composer window?"
> instead?
> In current QGIS, the composer is pretty isolated from the rest of the 
> program, as it’s not possible to directly make changes to composers through 
> scripts. This is a limitation of the libraries used in the composer. I know 
> there’s been a major overhaul of the Composer in the upcoming QGIS 3 release, 
> and I’m pretty sure this is one of the changes.
> I’m sure Nyall will correct me if I’m wrong.
> 
> Ramon.
> 
> 
>> On 15 May 2017, at 16:00, Willem Coetzer  wrote:
>> 
>> I was amazed that QGIS doesn't have a button to simplify this critical 
>> function. Thank you Christine, I do appreciate the response. I found a 
>> script that makes a new composer and then zooms to the extent of the map 
>> canvas in the new composer, but the script is not ideal (dependent on 
>> objects that won't always be present e.g. the filename of the QGIS 
>> template). Ideally one should be able to create a new button on a toolbar 
>> and then simply associate the 'Set to Map Canvas Extent' function with the 
>> button. If that is not possible I guess the next best thing would be a 
>> python script that does the same i.e. zooms to the extent of the map in the 
>> active composer.
>> 
>> I teach basic GIS skills to non-technical people and without this simple 
>> function it will be very hard to make any progress. Even the default 
>> procedure is too complex for them to remember.
>> 
>> I strongly suggest that QGIS developers look at this.
>> 
>> I really expected the 'Refresh' button to refresh the zoom extent as well. 
>> Why wouldn't a user want to refresh the zoom extent when refreshing the 
>> display of layers? It doesn't make sense to me.
>> 
>> If anyone can help with that script I'd be grateful.
>> 
>> 
>> 
>> Somerset StreetWillem Coetzer
>> Grahamstown, 6139Biodiversity Information Manager
>> Private Bag 1015Tel:+27 46 603 5841
>> Grahamstown, 6140Fax:+27 46 622 2403
>> South AfricaEmail:mailto:w.coet...@saiab.ac.za
>> http://www.saiab.ac.za/
>> Disclaimer: http://www.nrf.ac.za/email-legal-notice.php
>> 
>> -Original Message-
>> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
>> qgis-user-requ...@lists.osgeo.org
>> Sent: 13 May 2017 09:00 PM
>> To: qgis-user@lists.osgeo.org
>> Subject: [Marketing Mail] Qgis-user Digest, Vol 135, Issue 17
>> 
>> Send Qgis-user mailing list submissions to
>> qgis-user@lists.osgeo.org
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.osgeo.org/mailman/listinfo/qgis-user
>> or, via email, send a message with subject or body 'help' to
>> qgis-user-requ...@lists.osgeo.org
>> 
>> You can reach the person managing the list at
>> qgis-user-ow...@lists.osgeo.org
>> 
>> When replying, please edit your Subject line so it is more specific than 
>> "Re: Contents of Qgis-user digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. refresh zoom extent in composer (Willem Coetzer)
>>  2. Re: refresh zoom extent in composer (Christine)
>> 
>> 

Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Christine
It's always a question of training and practice to take benefit from a tool
or software. There are differences in concept and solutions between ArcView
/ ArcGIS and QGIS. For me, QGIS is really great particularly due to the
integration of GRASS and SAGA e.g. But of course, it's necessary to dive
deeper into this all to take benefit from.
 
For people who can't dive deeper, it might be better to choose or create a
more simple viewer with limited functionality for a map output / print
output. And there your proposed button seems appropriate for me. It's really
difficult to have a program sophisticated and simple at the same time and in
the same instance. Should be possible to simplify the QGIS GUI (a QGISimple
fork ?) or this has been already achieved by somebody. Depends always on
demands and a volunteer to complete it. 

By the way: if somebody really misses the old ArcView (3), he could give
gvSIG a try. gvSIG is an open source project as well, programmed in Java and
rather similar to ArcView 3. Found it much easier and more comfortable to
create maps with QGIS, but that might be a question of tastes. 
 
Warm regards,
Christine



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/script-to-simplify-Set-to-Map-Canvas-Extent-tp5320512p5320564.html
Sent from the QGIS - User mailing list archive at Nabble.com.
___
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] Georeferencer takes excessive time

2017-05-15 Thread Nicolas Cadieux
Hi,

Are you using the same interpolation methods?  If you used nearest neighbour 
normally and changed to cubic, if could take much more time for the same thing. 
Check the file size and try with a smaller file.  Could be a very simple 
thing

Nicolas

> Le 15 mai 2017 à 06:39, UserError [via OSGeo.org] 
>  a écrit :
> 
> QGIS 2.18 on Linux Mint 18.1 64 bit
> 
> I recently  had to clean install my OS & QGIS etc.  Whilst it's mostly 
> working, the raster georeferencer is unusably slow most of the time.
> 
> I thought initially it didn't like jpgs and pdfs were OK, but it is the same 
> regardless.  On clicking transform, the progress indication window opens & it 
> will sit there for an indeterminate period (I left it over 30 minutes once). 
> There is a lot of CPU activity across all four cores.  The only way out I've 
> found is to kill QGIS.
> 
> If I have the Target Resolution box empty, the result is an image comprising 
> large blocks/pixels and a wide black component.  If I select the target 
> resolution, I can improve the image (but still unusable) however, to get 
> anything vaguely usable, the process takes ages as mentioned above
> 
> All my previous installations have been fine & I have never had a problem 
> with the georeferencer.
> 
> Any ideas where to look please?
> Many thanks
> -- 
> Jonathan Webb 
> Freelance GIS Specialist 
> 07941 921905 
> http://www.jwebbgis.co.uk
> http://uk.linkedin.com/in/jwebbgis
> 
> ___ 
> Qgis-user mailing list 
> [hidden email] 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://osgeo-org.1560.x6.nabble.com/Georeferencer-takes-excessive-time-tp5320539.html
> To start a new topic under QGIS - User, email 
> ml+s1560n4125267...@n6.nabble.com 
> To unsubscribe from QGIS - User, click here.
> NAML




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Georeferencer-takes-excessive-time-tp5320539p5320560.html
Sent from the QGIS - User mailing list archive at Nabble.com.___
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] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Ramon Andinach
Sorry you found that hard to find.

If it helps, I also have had to show QGIS to some quite non technical people. 
Everyone I’ve shown QGIS to found the concept of item properties pretty easy to 
grasp. Even the ones that needed to have vector and raster explained a multiple 
times.

Setting up templates will also make things easier for non technical people.


> On 15 May 2017, at 19:38, Willem Coetzer  wrote:
> 
> It makes perfect sense to people like us, but it does nothing for someone who 
> simply wants to refresh the extent. I'll admit that it's not a technical 
> question, but one of software usability. That there are different levels of 
> users with different proficiencies will remain a fact of life. Look at it 
> this way: I've been doing GIS for about 15 years. This is the first time that 
> I've had to google such basic functionality or post to a user group about it. 
> If QGIS developers want to see QGIS become the preferred option, they would 
> do well to look at human factors. 
> 
> -Original Message-
> From: Ramon Andinach [mailto:cust...@westnet.com.au] 
> Sent: 15 May 2017 01:31 PM
> To: Willem Coetzer
> Cc: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'
> 
> But there is a button to do that. 
> 
> UI is not my strong point. But here’s the logic as I see it.
> 
> First the mantra - The Print Composer is not just the Map item.
> 
> I admit that the button is not on the toolbar, but it doesn’t belong there. 
> If you look at what is on the toolbar it’s things that :
> a) add items to the composer,
> b) apply to the whole composer (like the zoom or export buttons - also the 
> refresh button) or
> c) that apply to any item that’s on the composer window (like the 
> group/ungroup buttons) So *whole* of composer things.
> 
> Things that are particular to an object/item on the composer are in “Item 
> Properties” tab. For example, which layers are in the Legend are an property 
> of the Legend so when you select the Legend object you can change this in 
> Item Properties.
> 
> Since refresh extent would *only* apply to the map object (item) the button 
> to “Set to map canvas extent" *is* in “Item Properties" when have the map 
> frame selected. It’s a property of the map item, so it makes sense for it to 
> be there.
> Select the map object and look in the Item Properties. 
> 
> What you suggest leads to that ugly situation where half the screen is full 
> of buttons and someone will suggest that horrible R-word that MSOffice uses.
> 
> Hope that makes some sort of sense.
> 
> Ramon.
> 
> 
>> On 15 May 2017, at 18:04, Willem Coetzer  wrote:
>> 
>> Thank you Ramon. At the very least, then, a separate button to 'Refresh 
>> Extent' in the composer. In ArcView it was really easy to add a button to 
>> the interface and associate a line or two of Avenue code with it. So in 
>> addition to suggesting that future versions should have a 'Refresh Extent' 
>> button already there, I'm saying that the ability to easily add a button 
>> (for whatever reason) would also be useful. And right now I'm wondering if 
>> someone can help me with the latter, as a way to make it easier to refresh 
>> the extent (as I say I did find a script but it's not precisely what I have 
>> in mind - it must simply refresh the extent of the active composer).
>> 
>> -Original Message-
>> From: Ramon Andinach [mailto:cust...@westnet.com.au]
>> Sent: 15 May 2017 11:53 AM
>> To: Willem Coetzer
>> Cc: qgis-user@lists.osgeo.org
>> Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'
>> 
>> Hi Willem,
>> 
>> I can give you an example of where I really, really don’t want the extent to 
>> be updated with the refresh button.
>> 
>> One of the things I use QGIS for requires making a series of maps using two 
>> or more of a set of layers.
>> So I can have a composer set to a wide view to give a regional overview, and 
>> another composer set to a narrower more local view. I can then turn on one 
>> set of layers and generate maps at both scales with that set. After that I 
>> can change to set B, hit refresh to check it looks right (and I didn’t 
>> forget a layer) then have maps for set B straight up.
>> (I keep different QGIS projects, with a similar set of composers for 
>> each project area I work in. Once I’ve got the map extents set, then I 
>> don’t have to meddle with the composers too much. You sound a lot like 
>> you’re expecting to people to recreate maps on the fly over and over 
>> again - this is really time consuming.)
>> 
>> Another reason might be that you’ve got your composer set up and you zoom 
>> into somewhere on the map to check a detail, fix it and you want to see what 
>> it looks like on the map - but you don’t want to zoom back out. 
>> 
>> I really like that the extent for each composer is fixed - unless I 
>> choose to change it. It seems perfectly intuitive to me :)
>> 
>> 

Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Willem Coetzer
It makes perfect sense to people like us, but it does nothing for someone who 
simply wants to refresh the extent. I'll admit that it's not a technical 
question, but one of software usability. That there are different levels of 
users with different proficiencies will remain a fact of life. Look at it this 
way: I've been doing GIS for about 15 years. This is the first time that I've 
had to google such basic functionality or post to a user group about it. If 
QGIS developers want to see QGIS become the preferred option, they would do 
well to look at human factors. 

-Original Message-
From: Ramon Andinach [mailto:cust...@westnet.com.au] 
Sent: 15 May 2017 01:31 PM
To: Willem Coetzer
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

But there is a button to do that. 

UI is not my strong point. But here’s the logic as I see it.

First the mantra - The Print Composer is not just the Map item.

I admit that the button is not on the toolbar, but it doesn’t belong there. If 
you look at what is on the toolbar it’s things that :
a) add items to the composer,
b) apply to the whole composer (like the zoom or export buttons - also the 
refresh button) or
c) that apply to any item that’s on the composer window (like the group/ungroup 
buttons) So *whole* of composer things.

Things that are particular to an object/item on the composer are in “Item 
Properties” tab. For example, which layers are in the Legend are an property of 
the Legend so when you select the Legend object you can change this in Item 
Properties.

Since refresh extent would *only* apply to the map object (item) the button to 
“Set to map canvas extent" *is* in “Item Properties" when have the map frame 
selected. It’s a property of the map item, so it makes sense for it to be there.
Select the map object and look in the Item Properties. 

What you suggest leads to that ugly situation where half the screen is full of 
buttons and someone will suggest that horrible R-word that MSOffice uses.

Hope that makes some sort of sense.

Ramon.


> On 15 May 2017, at 18:04, Willem Coetzer  wrote:
> 
> Thank you Ramon. At the very least, then, a separate button to 'Refresh 
> Extent' in the composer. In ArcView it was really easy to add a button to the 
> interface and associate a line or two of Avenue code with it. So in addition 
> to suggesting that future versions should have a 'Refresh Extent' button 
> already there, I'm saying that the ability to easily add a button (for 
> whatever reason) would also be useful. And right now I'm wondering if someone 
> can help me with the latter, as a way to make it easier to refresh the extent 
> (as I say I did find a script but it's not precisely what I have in mind - it 
> must simply refresh the extent of the active composer).
> 
> -Original Message-
> From: Ramon Andinach [mailto:cust...@westnet.com.au]
> Sent: 15 May 2017 11:53 AM
> To: Willem Coetzer
> Cc: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'
> 
> Hi Willem,
> 
> I can give you an example of where I really, really don’t want the extent to 
> be updated with the refresh button.
> 
> One of the things I use QGIS for requires making a series of maps using two 
> or more of a set of layers.
> So I can have a composer set to a wide view to give a regional overview, and 
> another composer set to a narrower more local view. I can then turn on one 
> set of layers and generate maps at both scales with that set. After that I 
> can change to set B, hit refresh to check it looks right (and I didn’t forget 
> a layer) then have maps for set B straight up.
> (I keep different QGIS projects, with a similar set of composers for 
> each project area I work in. Once I’ve got the map extents set, then I 
> don’t have to meddle with the composers too much. You sound a lot like 
> you’re expecting to people to recreate maps on the fly over and over 
> again - this is really time consuming.)
> 
> Another reason might be that you’ve got your composer set up and you zoom 
> into somewhere on the map to check a detail, fix it and you want to see what 
> it looks like on the map - but you don’t want to zoom back out. 
> 
> I really like that the extent for each composer is fixed - unless I 
> choose to change it. It seems perfectly intuitive to me :)
> 
> 
> 
> On a slight tangent, I notice that Christine did answer the question you 
> asked. 
> Did you mean to ask, “Is there a way to automate creating a map?"
> or,
> "Can I create a button that combines functions in the Composer window?"
> instead?
> In current QGIS, the composer is pretty isolated from the rest of the 
> program, as it’s not possible to directly make changes to composers through 
> scripts. This is a limitation of the libraries used in the composer. I know 
> there’s been a major overhaul of the Composer in the upcoming QGIS 3 release, 
> and I’m pretty sure 

Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Ramon Andinach
But there is a button to do that. 

UI is not my strong point. But here’s the logic as I see it.

First the mantra - The Print Composer is not just the Map item.

I admit that the button is not on the toolbar, but it doesn’t belong there. If 
you look at what is on the toolbar it’s things that :
a) add items to the composer, 
b) apply to the whole composer (like the zoom or export buttons - also the 
refresh button) or 
c) that apply to any item that’s on the composer window (like the group/ungroup 
buttons)
So *whole* of composer things.

Things that are particular to an object/item on the composer are in “Item 
Properties” tab. For example, which layers are in the Legend are an property of 
the Legend so when you select the Legend object you can change this in Item 
Properties.

Since refresh extent would *only* apply to the map object (item) the button to 
“Set to map canvas extent" *is* in “Item Properties" when have the map frame 
selected. It’s a property of the map item, so it makes sense for it to be there.
Select the map object and look in the Item Properties. 

What you suggest leads to that ugly situation where half the screen is full of 
buttons and someone will suggest that horrible R-word that MSOffice uses.

Hope that makes some sort of sense.

Ramon.


> On 15 May 2017, at 18:04, Willem Coetzer  wrote:
> 
> Thank you Ramon. At the very least, then, a separate button to 'Refresh 
> Extent' in the composer. In ArcView it was really easy to add a button to the 
> interface and associate a line or two of Avenue code with it. So in addition 
> to suggesting that future versions should have a 'Refresh Extent' button 
> already there, I'm saying that the ability to easily add a button (for 
> whatever reason) would also be useful. And right now I'm wondering if someone 
> can help me with the latter, as a way to make it easier to refresh the extent 
> (as I say I did find a script but it's not precisely what I have in mind - it 
> must simply refresh the extent of the active composer).
> 
> -Original Message-
> From: Ramon Andinach [mailto:cust...@westnet.com.au] 
> Sent: 15 May 2017 11:53 AM
> To: Willem Coetzer
> Cc: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'
> 
> Hi Willem,
> 
> I can give you an example of where I really, really don’t want the extent to 
> be updated with the refresh button.
> 
> One of the things I use QGIS for requires making a series of maps using two 
> or more of a set of layers.
> So I can have a composer set to a wide view to give a regional overview, and 
> another composer set to a narrower more local view. I can then turn on one 
> set of layers and generate maps at both scales with that set. After that I 
> can change to set B, hit refresh to check it looks right (and I didn’t forget 
> a layer) then have maps for set B straight up.
> (I keep different QGIS projects, with a similar set of composers for each 
> project area I work in. Once I’ve got the map extents set, then I don’t have 
> to meddle with the composers too much. You sound a lot like you’re expecting 
> to people to recreate maps on the fly over and over again - this is really 
> time consuming.)
> 
> Another reason might be that you’ve got your composer set up and you zoom 
> into somewhere on the map to check a detail, fix it and you want to see what 
> it looks like on the map - but you don’t want to zoom back out. 
> 
> I really like that the extent for each composer is fixed - unless I choose to 
> change it. It seems perfectly intuitive to me :)
> 
> 
> 
> On a slight tangent, I notice that Christine did answer the question you 
> asked. 
> Did you mean to ask, “Is there a way to automate creating a map?"
> or,
> "Can I create a button that combines functions in the Composer window?"
> instead?
> In current QGIS, the composer is pretty isolated from the rest of the 
> program, as it’s not possible to directly make changes to composers through 
> scripts. This is a limitation of the libraries used in the composer. I know 
> there’s been a major overhaul of the Composer in the upcoming QGIS 3 release, 
> and I’m pretty sure this is one of the changes.
> I’m sure Nyall will correct me if I’m wrong.
> 
> Ramon.
> 
> 
>> On 15 May 2017, at 16:00, Willem Coetzer  wrote:
>> 
>> I was amazed that QGIS doesn't have a button to simplify this critical 
>> function. Thank you Christine, I do appreciate the response. I found a 
>> script that makes a new composer and then zooms to the extent of the map 
>> canvas in the new composer, but the script is not ideal (dependent on 
>> objects that won't always be present e.g. the filename of the QGIS 
>> template). Ideally one should be able to create a new button on a toolbar 
>> and then simply associate the 'Set to Map Canvas Extent' function with the 
>> button. If that is not possible I guess the next best thing would be a 
>> python script that does 

[Qgis-user] QgisODK plugin

2017-05-15 Thread Enrico Ferreguti
Hi all
I received an expression of interest from a core developer/maintainer of
Open Data Kit project related to QgisODK plugin. They are asking me to
point them case studies about qgis and odk integration.
Are you using the plugin? Do you find it useful? Could you speak about your
survey?
Could you suggest new features?

Thanks in advance
Enrico Ferreguti
___
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] Georeferencer takes excessive time

2017-05-15 Thread Jonathan Webb

QGIS 2.18 on Linux Mint 18.1 64 bit

I recently  had to clean install my OS & QGIS etc.  Whilst it's mostly 
working, the raster georeferencer is unusably slow most of the time.


I thought initially it didn't like jpgs and pdfs were OK, but it is the 
same regardless.  On clicking transform, the progress indication window 
opens & it will sit there for an indeterminate period (I left it over 30 
minutes once). There is a lot of CPU activity across all four cores.  
The only way out I've found is to kill QGIS.


If I have the Target Resolution box empty, the result is an image 
comprising large blocks/pixels and a wide black component.  If I select 
the target resolution, I can improve the image (but still unusable) 
however, to get anything vaguely usable, the process takes ages as 
mentioned above


All my previous installations have been fine & I have never had a 
problem with the georeferencer.


Any ideas where to look please?
Many thanks
--
Jonathan Webb
Freelance GIS Specialist
07941 921905
http://www.jwebbgis.co.uk
http://uk.linkedin.com/in/jwebbgis
___
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] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Willem Coetzer
Thank you Ramon. At the very least, then, a separate button to 'Refresh Extent' 
in the composer. In ArcView it was really easy to add a button to the interface 
and associate a line or two of Avenue code with it. So in addition to 
suggesting that future versions should have a 'Refresh Extent' button already 
there, I'm saying that the ability to easily add a button (for whatever reason) 
would also be useful. And right now I'm wondering if someone can help me with 
the latter, as a way to make it easier to refresh the extent (as I say I did 
find a script but it's not precisely what I have in mind - it must simply 
refresh the extent of the active composer).

-Original Message-
From: Ramon Andinach [mailto:cust...@westnet.com.au] 
Sent: 15 May 2017 11:53 AM
To: Willem Coetzer
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

Hi Willem,

I can give you an example of where I really, really don’t want the extent to be 
updated with the refresh button.

One of the things I use QGIS for requires making a series of maps using two or 
more of a set of layers.
So I can have a composer set to a wide view to give a regional overview, and 
another composer set to a narrower more local view. I can then turn on one set 
of layers and generate maps at both scales with that set. After that I can 
change to set B, hit refresh to check it looks right (and I didn’t forget a 
layer) then have maps for set B straight up.
(I keep different QGIS projects, with a similar set of composers for each 
project area I work in. Once I’ve got the map extents set, then I don’t have to 
meddle with the composers too much. You sound a lot like you’re expecting to 
people to recreate maps on the fly over and over again - this is really time 
consuming.)

Another reason might be that you’ve got your composer set up and you zoom into 
somewhere on the map to check a detail, fix it and you want to see what it 
looks like on the map - but you don’t want to zoom back out. 

I really like that the extent for each composer is fixed - unless I choose to 
change it. It seems perfectly intuitive to me :)



On a slight tangent, I notice that Christine did answer the question you asked. 
Did you mean to ask, “Is there a way to automate creating a map?"
or,
"Can I create a button that combines functions in the Composer window?"
instead?
In current QGIS, the composer is pretty isolated from the rest of the program, 
as it’s not possible to directly make changes to composers through scripts. 
This is a limitation of the libraries used in the composer. I know there’s been 
a major overhaul of the Composer in the upcoming QGIS 3 release, and I’m pretty 
sure this is one of the changes.
I’m sure Nyall will correct me if I’m wrong.

Ramon.


> On 15 May 2017, at 16:00, Willem Coetzer  wrote:
> 
> I was amazed that QGIS doesn't have a button to simplify this critical 
> function. Thank you Christine, I do appreciate the response. I found a script 
> that makes a new composer and then zooms to the extent of the map canvas in 
> the new composer, but the script is not ideal (dependent on objects that 
> won't always be present e.g. the filename of the QGIS template). Ideally one 
> should be able to create a new button on a toolbar and then simply associate 
> the 'Set to Map Canvas Extent' function with the button. If that is not 
> possible I guess the next best thing would be a python script that does the 
> same i.e. zooms to the extent of the map in the active composer.
> 
> I teach basic GIS skills to non-technical people and without this simple 
> function it will be very hard to make any progress. Even the default 
> procedure is too complex for them to remember.
> 
> I strongly suggest that QGIS developers look at this.
> 
> I really expected the 'Refresh' button to refresh the zoom extent as well. 
> Why wouldn't a user want to refresh the zoom extent when refreshing the 
> display of layers? It doesn't make sense to me.
> 
> If anyone can help with that script I'd be grateful.
> 
> 
> 
> Somerset StreetWillem Coetzer
> Grahamstown, 6139Biodiversity Information Manager Private Bag 
> 1015Tel:+27 46 603 5841 Grahamstown, 6140Fax:+27 46 622 2403 South 
> AfricaEmail:mailto:w.coet...@saiab.ac.za
> http://www.saiab.ac.za/
> Disclaimer: http://www.nrf.ac.za/email-legal-notice.php
> 
> -Original Message-
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf 
> Of qgis-user-requ...@lists.osgeo.org
> Sent: 13 May 2017 09:00 PM
> To: qgis-user@lists.osgeo.org
> Subject: [Marketing Mail] Qgis-user Digest, Vol 135, Issue 17
> 
> Send Qgis-user mailing list submissions to qgis-user@lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit 
> https://lists.osgeo.org/mailman/listinfo/qgis-user
> or, via email, send a message with subject or body 'help' to 
> qgis-user-requ...@lists.osgeo.org
> 
> You can reach the person managing the 

Re: [Qgis-user] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Ramon Andinach
Hi Willem,

I can give you an example of where I really, really don’t want the extent to be 
updated with the refresh button.

One of the things I use QGIS for requires making a series of maps using two or 
more of a set of layers.
So I can have a composer set to a wide view to give a regional overview, and 
another composer set to a narrower more local view. I can then turn on one set 
of layers and generate maps at both scales with that set. After that I can 
change to set B, hit refresh to check it looks right (and I didn’t forget a 
layer) then have maps for set B straight up.
(I keep different QGIS projects, with a similar set of composers for each 
project area I work in. Once I’ve got the map extents set, then I don’t have to 
meddle with the composers too much. You sound a lot like you’re expecting to 
people to recreate maps on the fly over and over again - this is really time 
consuming.)

Another reason might be that you’ve got your composer set up and you zoom into 
somewhere on the map to check a detail, fix it and you want to see what it 
looks like on the map - but you don’t want to zoom back out. 

I really like that the extent for each composer is fixed - unless I choose to 
change it. It seems perfectly intuitive to me :)



On a slight tangent, I notice that Christine did answer the question you asked. 
Did you mean to ask, “Is there a way to automate creating a map?"
or,
"Can I create a button that combines functions in the Composer window?"
instead?
In current QGIS, the composer is pretty isolated from the rest of the program, 
as it’s not possible to directly make changes to composers through scripts. 
This is a limitation of the libraries used in the composer. I know there’s been 
a major overhaul of the Composer in the upcoming QGIS 3 release, and I’m pretty 
sure this is one of the changes.
I’m sure Nyall will correct me if I’m wrong.

Ramon.


> On 15 May 2017, at 16:00, Willem Coetzer  wrote:
> 
> I was amazed that QGIS doesn't have a button to simplify this critical 
> function. Thank you Christine, I do appreciate the response. I found a script 
> that makes a new composer and then zooms to the extent of the map canvas in 
> the new composer, but the script is not ideal (dependent on objects that 
> won't always be present e.g. the filename of the QGIS template). Ideally one 
> should be able to create a new button on a toolbar and then simply associate 
> the 'Set to Map Canvas Extent' function with the button. If that is not 
> possible I guess the next best thing would be a python script that does the 
> same i.e. zooms to the extent of the map in the active composer.
> 
> I teach basic GIS skills to non-technical people and without this simple 
> function it will be very hard to make any progress. Even the default 
> procedure is too complex for them to remember.
> 
> I strongly suggest that QGIS developers look at this.
> 
> I really expected the 'Refresh' button to refresh the zoom extent as well. 
> Why wouldn't a user want to refresh the zoom extent when refreshing the 
> display of layers? It doesn't make sense to me.
> 
> If anyone can help with that script I'd be grateful.
> 
> 
> 
> Somerset StreetWillem Coetzer
> Grahamstown, 6139Biodiversity Information Manager
> Private Bag 1015Tel:+27 46 603 5841
> Grahamstown, 6140Fax:+27 46 622 2403
> South AfricaEmail:mailto:w.coet...@saiab.ac.za
> http://www.saiab.ac.za/
> Disclaimer: http://www.nrf.ac.za/email-legal-notice.php
> 
> -Original Message-
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
> qgis-user-requ...@lists.osgeo.org
> Sent: 13 May 2017 09:00 PM
> To: qgis-user@lists.osgeo.org
> Subject: [Marketing Mail] Qgis-user Digest, Vol 135, Issue 17
> 
> Send Qgis-user mailing list submissions to
> qgis-user@lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.osgeo.org/mailman/listinfo/qgis-user
> or, via email, send a message with subject or body 'help' to
> qgis-user-requ...@lists.osgeo.org
> 
> You can reach the person managing the list at
> qgis-user-ow...@lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific than "Re: 
> Contents of Qgis-user digest..."
> 
> 
> Today's Topics:
> 
>   1. refresh zoom extent in composer (Willem Coetzer)
>   2. Re: refresh zoom extent in composer (Christine)
> 
> 
> --
> 
> Message: 1
> Date: Sat, 13 May 2017 10:44:44 +
> From: Willem Coetzer 
> To: "qgis-user@lists.osgeo.org" 
> Subject: [Qgis-user] refresh zoom extent in composer
> Message-ID: <5f079d395252426b9a6f1f0d6af33499@ZAGRH01EX02.saiab.local>
> Content-Type: text/plain; charset="utf-8"
> 
> If the zoom extent in the view changes, is there a way to update the composer 
> to reflect the same extent or do you need to create a new composer?
> 
> Thanks
> 
> 
> 

Re: [Qgis-user] [GRASS-user] GRASS support lost (again)

2017-05-15 Thread Micha Silver

Magic!

Thanks Jurgen


On 2017-05-15 11:11 AM, Jürgen E. Fischer wrote:

Hi Micha,

On Sun, 14. May 2017 at 22:43:47 +0300, Micha Silver wrote:

Any suggestions how to get back support for GRASS in QGIS?

Switch to release nightlies [0] until to next point release (Friday).  Those
pickup the latest version in ubuntugis on every build.


Jürgen


[0] http://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu



___
grass-user mailing list
grass-u...@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


--
Micha Silver
cell:+972-523-665918

___
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-user] GRASS support lost (again)

2017-05-15 Thread Jürgen E . Fischer
Hi Micha,

On Sun, 14. May 2017 at 22:43:47 +0300, Micha Silver wrote:
> Any suggestions how to get back support for GRASS in QGIS?

Switch to release nightlies [0] until to next point release (Friday).  Those
pickup the latest version in ubuntugis on every build.


Jürgen


[0] http://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode


signature.asc
Description: PGP signature
___
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] script to simplify 'Set to Map Canvas Extent'

2017-05-15 Thread Willem Coetzer
I was amazed that QGIS doesn't have a button to simplify this critical 
function. Thank you Christine, I do appreciate the response. I found a script 
that makes a new composer and then zooms to the extent of the map canvas in the 
new composer, but the script is not ideal (dependent on objects that won't 
always be present e.g. the filename of the QGIS template). Ideally one should 
be able to create a new button on a toolbar and then simply associate the 'Set 
to Map Canvas Extent' function with the button. If that is not possible I guess 
the next best thing would be a python script that does the same i.e. zooms to 
the extent of the map in the active composer.

I teach basic GIS skills to non-technical people and without this simple 
function it will be very hard to make any progress. Even the default procedure 
is too complex for them to remember.

I strongly suggest that QGIS developers look at this.

I really expected the 'Refresh' button to refresh the zoom extent as well. Why 
wouldn't a user want to refresh the zoom extent when refreshing the display of 
layers? It doesn't make sense to me.

If anyone can help with that script I'd be grateful.



Somerset StreetWillem Coetzer
Grahamstown, 6139Biodiversity Information Manager
Private Bag 1015Tel:+27 46 603 5841
Grahamstown, 6140Fax:+27 46 622 2403
South AfricaEmail:mailto:w.coet...@saiab.ac.za
http://www.saiab.ac.za/
Disclaimer: http://www.nrf.ac.za/email-legal-notice.php

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
qgis-user-requ...@lists.osgeo.org
Sent: 13 May 2017 09:00 PM
To: qgis-user@lists.osgeo.org
Subject: [Marketing Mail] Qgis-user Digest, Vol 135, Issue 17

Send Qgis-user mailing list submissions to
qgis-user@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osgeo.org/mailman/listinfo/qgis-user
or, via email, send a message with subject or body 'help' to
qgis-user-requ...@lists.osgeo.org

You can reach the person managing the list at
qgis-user-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Qgis-user digest..."


Today's Topics:

   1. refresh zoom extent in composer (Willem Coetzer)
   2. Re: refresh zoom extent in composer (Christine)


--

Message: 1
Date: Sat, 13 May 2017 10:44:44 +
From: Willem Coetzer 
To: "qgis-user@lists.osgeo.org" 
Subject: [Qgis-user] refresh zoom extent in composer
Message-ID: <5f079d395252426b9a6f1f0d6af33499@ZAGRH01EX02.saiab.local>
Content-Type: text/plain; charset="utf-8"

If the zoom extent in the view changes, is there a way to update the composer 
to reflect the same extent or do you need to create a new composer?

Thanks


[cid:image40e5f3.PNG@44bf3bf6.42823550]




Somerset Street
Willem Coetzer

Grahamstown, 6139   Biodiversity Information Manager
Private Bag 1015Tel:+27 46 603 5841
Grahamstown, 6140   Fax:+27 46 622 2403
South AfricaEmail:  w.coet...@saiab.ac.za
http://www.saiab.ac.za/


Disclaimer: 
http://www.nrf.ac.za/email-legal-notice.php


Please consider the environment before printing this message.
-- next part --
An HTML attachment was scrubbed...
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: image40e5f3.PNG
Type: image/png
Size: 33578 bytes
Desc: image40e5f3.PNG
URL: 


--

Message: 2
Date: Sat, 13 May 2017 06:42:50 -0700 (MST)
From: Christine 
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] refresh zoom extent in composer
Message-ID: <1494682970839-5320434.p...@n6.nabble.com>
Content-Type: text/plain; charset=us-ascii

Willem Coetzer wrote
> If the zoom extent in the view changes, is there a way to update the
> composer to reflect the same extent or do you need to create a new
> composer?

Dear Willem,
you don't need to create a new composer. Procedure may depend on your QGIS 
version, in elder versions the window to select an item may be missing.

First select the map item in the composer view (right column). In the item 
properties tab (below) scroll to the extents section. There you can find the 
two buttons "set to map canvas extent" and "view extent in map canvas".

Click the first one to transfer your map window extent coordinates (your
"view") to your composer map extents (your "composer"). That's what you wanted 
to do as I understand it.

With the second button you might do the reverse: transfer the composer map 
extent coordinates 

Re: [Qgis-user] [GRASS-user] GRASS support lost (again)

2017-05-15 Thread Micha Silver

  
  
Thanks for the suggestions

On 05/14/2017 11:14 PM, Martin Landa
  wrote:


  Hi,

2017-05-14 21:43 GMT+02:00 Micha Silver :

  
After recent upgrades to qgis 2.18.7 and GRASS 7.2.1 (on Mint 18, Ubuntu
16.04) I no longer have access to GRASS layers nor the GRASS plugin. I tried
on one machine to downgrade to QGIS 2.14 but still the GRASS maps do not
appear in Browser.

However, I see that GRASS modules under Processing seem to work.

Any suggestions how to get back support for GRASS in QGIS?

  
  
try to downgrade GRASS to 7.2.0 (or last working version). Apparently
QGIS 2.18.7 is compiled to GRASS 7.2.0 (I would guess). Or ideally
ping Mint QGIS packager to rebuild package against GRASS 7.2.1. Ma



Version 7.2.0 is not available (thru apt). I can install 7.0.3 but
it brings in grass-core etc from 7.2.1 so that doesn't help.

Should I open a new bug report, or add to one of the existing,
similar ones?

Cheers,
-- 
Micha Silver
cell: +972-523-665918
  

___
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