Re: [QGIS-Developer] QGIS 3 Crash Updating Digitalizing Tool

2018-05-20 Thread Antonio Di Lecce
Thanks Nyall.
I will do it.

Antonio

Il lun 21 mag 2018, 02:00 Nyall Dawson  ha scritto:

> On 19 May 2018 at 15:24, Antonio Di Lecce 
> wrote:
> >
> > h2. User Feedback
> >
> > It's happen when I try to update Digitizing Tools
> >
>
> Digitizing tools is a 3rd party plugin - you need to report all issues
> to the plugin author, not the QGIS project:
>
> https://github.com/bstroebl/DigitizingTools/issues
>
> Nyall
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1429] Karika approval notification.

2018-05-20 Thread noreply

Plugin Karika approval by pcav.
The plugin version "[1429] Karika 1.3" is now approved
Link: http://plugins.qgis.org/plugins/karika/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
Those are likely to be your original Python 2 files, before the script made
changes, allowing you to roll back. They should definitely not be published,
but you should keep them yourself until you are confident the conversion was
successful. 

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Using Atlas in QGIS 3 to make a print ready publication

2018-05-20 Thread Nyall Dawson
On 18 May 2018 at 17:03, Tim Sutton  wrote:
>
> Hi All (mainly Nyall I guess)
>
> I have been playing with atlas in QGIS 3 to make a book prototype for a map 
> series. In the past when I used atlas, it was just to share as a PDF or 
> manually print out a map series. Now I want to prepare something to send to a 
> printer and I realise the requirements are a little different:
>
> * have a page for the cover outside on the left side, back cover outside on 
> the right
> * a page with front cover inside on the left and the right
> * have one or more ‘front matter pages’ with a matching back matter page for 
> each
> * have the map series with each page having TWO maps from the map series. For 
> example the first page would have on the left Page 1 and on the right Page 30 
> (where we have a  30 area series in atlas for example). Then the next page 
> would have two map items : Page 2 on the left, Page 29 on the right and so on.
>
> So I can manage a lot of this workflow by e.g. using separate composer 
> layouts for the front / back matter stuff. What I haven’t thought of a way to 
> do is having two atlas pages on the same layout.  Basically what is needed is 
> the ability to trigger successive increments in the atlas counter if there 
> are two maps (and other elements such as tables) that are controlled by atlas 
> on the same layout.
>
> This is probably better explained by my diagram below:
>
>
> https://user-images.githubusercontent.com/178003/40220376-34c77d00-5a79-11e8-9c09-b1b338915de5.png
>
>
> So my questions are :
>
> 1) Has anyone dealt with this and if so, how did you solve it?

I'm wondering if you could solve this by doing something like:

1. apply a filter to your atlas so you only iterate over half the features
2. don't use the built-in "controlled by atlas" setting for maps, but
instead retrieve the second page feature directly using the
get_feature function, and then use data defined x min/x max/ etc and
to set the scale/extents of the second page map.
3. similarly, use get_feature to retrieve attributes for the second
page feature for the surrounding text content.

> 2) How much work would it be to enable support for this kind of work flow?

Not as far as I know. I'd personally consider it a bit of an edge
case, so not something which belongs in master. But in 3.x plugins can
tie strongly into the whole layouts engine and interface, so
potentially there's scope for a python plugin to handle this.

> 3) Are there any plans to have ‘print once’ pages in composer so that in a 
> layout I could have pages for front matter in ‘print once’ mode, one or more 
> atlas driven pages that will repeat for each atlas area, pages for back 
> matter in 'print once’ mode.

The 3.0 reports functionality should already be able to do that now.

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS 3 Crash Updating Digitalizing Tool

2018-05-20 Thread Nyall Dawson
On 19 May 2018 at 15:24, Antonio Di Lecce  wrote:
>
> h2. User Feedback
>
> It's happen when I try to update Digitizing Tools
>

Digitizing tools is a 3rd party plugin - you need to report all issues
to the plugin author, not the QGIS project:

https://github.com/bstroebl/DigitizingTools/issues

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Using Atlas in QGIS 3 to make a print ready publication

2018-05-20 Thread Tim Sutton
Hi Alex

> On 20 May 2018, at 08:45, Alexandre Neto  wrote:
> 
> Hi Tim,
> 
> To do what you want, the only way I can imagine is creating a Layer with two 
> geometry columns for coverage. The first column would be a "normal" geometry 
> column and could be used by atlas to provide the left page iteration. The 
> second column could be stored in WKT, and using the data defined overwrite on 
> the extent options to provide the right page iteration.


Yeah I though of similar things too though I was looking more for something we 
could give to end users (i.e. something clever we could add to core to support 
producing print ready books).
> 
> The problem is that the coverage layer would need to be carefully (manually) 
> crafted to create the odd and even pages. It would need to titeBesides, for 
> the right page you would not be able to use atlas variables.
> 
> I wonder if it wouldn't be easier to create all the individual pages normally 
> using reports (to add static pages), export to PDF, and then create a booklet 
> from it. I bet there are tools for that.
> 
> For what I could gather, this kind of work is called creating a booklet, or 
> page imposition. There is a python library to work with that:
> 
> https://pypi.org/project/PdfImpose/ 

So maybe a plugin using pdfimpose (thanks for sharing that library, I havent 
seen it before!) might do it. I will go and check it out next weekend.

For ‘doing it in core’ I was wondering if we couldn’t have a concept of a frame 
item which is a virtual page that you can add to a layout letting you basically 
have two (or more) frames on a page side by side, with the atlas incrementing 
the currentAtlasFeature as it visits each frame.

Regards

Tim

> 
> Best regards,
> 
> Alex Neto
> 
> Tim Sutton > escreveu no dia 
> sábado, 19/05/2018 às 16:25:
> Hi Kurt
> 
> Thanks for your reply. Yep I have tried reports. Neither report (controlled 
> by report) or atlas (controlled by atlas) offer a way to increment the atlas 
> counter on the same layout page which sis what I basically need. If you look 
> at the image from my original post it should hopefully make it clearer what I 
> am trying to do.
> 
> Regards
> 
> Tim
> 
>> On 19 May 2018, at 14:30, Kurt Menke > > wrote:
>> 
>> Hi Tim
>> This sounds like what the new Reports feature was built to do. Especially 
>> with the header/footer pages and triggers for different map content. Have 
>> you tried this in Reports in 3.0?
>> Best,
>> Kurt
> 
> —
> 
> 
> 
> 
> 
> 
> 
> 
> Tim Sutton
> 
> Co-founder: Kartoza
> Ex Project chair: QGIS.org 
> 
> Visit http://kartoza.com  to find out about open source:
> 
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
> 
> Skype: timlinux
> IRC: timlinux on #qgis at freenode.net 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> 
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> --
> Alexandre Neto
> -
> @AlexNetoGeo
> http://sigsemgrilhetas.wordpress.com 
> http://gisunchained.wordpress.com 
> 
> 

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread DelazJ
Hi Tom,

Not really. It expects qgis2to3 to be a file in such a command. But it
makes me remind to look for a qgis2to3 file and i found it in
C:\OSGeo4W64\apps\Python36\Scripts. Moving to that folder and calling
`qgis2to3 -w /path/to/my/plugin` did the trick.

Thanks for your help.

Next question: I realize that other than changing my existing files it also
creates some .py.bak files. Anyone knows what I am supposed to do with
them? Should they also be in the published version (they seem to be
generated automatically)?

H.

2018-05-20 22:16 GMT+02:00 Tom Chadwin :

> In other words:
>
> python3 qgis2to3 /path/to/my/plugin
>
> Tom
>
>
>
> -
> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-
> f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
In other words:

python3 qgis2to3 /path/to/my/plugin

Tom 



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
Absolutely no expert, but does this help?

https://stackoverflow.com/a/38979755/5613104

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread DelazJ
Hi,
I'm trying to update a plugin of mine to QGIS3 and follow instructions at
https://github.com/qgis/QGIS/wiki/Plugin-migration-to-QGIS-3
I'm on Windows 10 and am not used to dev env and despite the use of osgeo4w
i encountered some issues.
After some readings here and there, I ran in the osgeo4w shell the
`py3_env` call to update my environment, leading to
PATH contains C:\OSGeo4W64\apps\Python36
PYTHONHOME = C:\OSGeo4W64\apps\Python36
PYTHONPATH = C:\OSGeo4W64\apps\Python36\Lib

Following the wiki, I ran `pip install future` or `pip3 install future`
(I'll realize later that future was already installed) but any call of
pip/pip3 like a simple `pip --help` results in *Fatal error in launcher:
Unable to create process using '"'*
After some search, I found that the call i should do is `python3 -m pip
install future` [1]. Did I miss something or would the guidelines need some
contextualization for beginners like me?

Then running `python3 -m pip install qgis2to3` downloads and installs the
qgis2to3 package in the osgeo4w. But when i run `qgis2to3
/path/to/my/plugin` I simply get a dialog to select the app I'd like to use
to open the file (which happens to be
C:\OSGeo4W64\apps\Python36\lib\site-packages\qgis2to3\__init__.py). No
more. I don't know what to do ...
Sorry if these are noob concerns but I can't move forward so any help would
be more than welcome.

Thanks,
Harrissou

[1]
https://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Using Atlas in QGIS 3 to make a print ready publication

2018-05-20 Thread Alexandre Neto
Hi Tim,

To do what you want, the only way I can imagine is creating a Layer with
two geometry columns for coverage. The first column would be a "normal"
geometry column and could be used by atlas to provide the left page
iteration. The second column could be stored in WKT, and using the data
defined overwrite on the extent options to provide the right page iteration.

The problem is that the coverage layer would need to be carefully
(manually) crafted to create the odd and even pages. It would need to
titeBesides, for the right page you would not be able to use atlas
variables.

I wonder if it wouldn't be easier to create all the individual pages
normally using reports (to add static pages), export to PDF, and then
create a booklet from it. I bet there are tools for that.

For what I could gather, this kind of work is called creating a booklet, or
page imposition. There is a python library to work with that:

https://pypi.org/project/PdfImpose/

Best regards,

Alex Neto

Tim Sutton  escreveu no dia sábado, 19/05/2018 às 16:25:

> Hi Kurt
>
> Thanks for your reply. Yep I have tried reports. Neither report
> (controlled by report) or atlas (controlled by atlas) offer a way to
> increment the atlas counter on the same layout page which sis what I
> basically need. If you look at the image from my original post it should
> hopefully make it clearer what I am trying to do.
>
> Regards
>
> Tim
>
> On 19 May 2018, at 14:30, Kurt Menke  wrote:
>
> Hi Tim
> This sounds like what the new Reports feature was built to do. Especially
> with the header/footer pages and triggers for different map content. Have
> you tried this in Reports in 3.0?
> Best,
> Kurt
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Alexandre Neto
-
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer