Re: [QGIS-Developer] repaint layertree/legend

2020-10-19 Thread Salvatore Larosa
Hi Richard,

there is a refreshLayerLegend(QgsLayerTreeLayer) method which
refreshes the layer node.
That should show up the temporal indicator after activating.

Regards,
-SL

On Mon, Oct 19, 2020 at 12:37 PM Richard Duivenvoorde
 wrote:
>
> Hi Devs,
>
> I'm puzzled on how to force the LayerManger/Layertree to repaint itself (or 
> parts).
>
> Context: I'm trying to configure a layer via PyQGIS to be 'temporal enabled'.
> All goes well but the little 'Temporal'-indicator does not show up.
>
> Using this to actually enable the layer:
>
> l=iface.mapCanvas().currentLayer()
> p=l.temporalProperties()
> p.setMode(QgsVectorLayerTemporalProperties.ModeFeatureDateTimeInstantFromField)
> p.setStartField('Time')
> p.setDurationUnits(QgsUnitTypes.TemporalUnit.TemporalSeconds)
> p.setFixedDuration(3600)
> p.setIsActive(True) # OK
>
> BUT: the little 'indicator' does not show up. I've tried to throw up some 
> signals
>
> #p.changed.emit() # does not update the Layer Panel
> #v=iface.layerTreeView()
> #v.update() # not working
> #v.repaint() # noep
> #v.currentLayerChanged.emit(l) # nothing
> #QCoreApplication.processEvents() # nope nor working either
>
> I have tried to get the actual indicator:
> n=QgsProject.instance().layerTreeRoot().findLayer(l) # find QgsLayerTreeLayer
> i=iface.layerTreeView().indicators(n)
>
> but no repaint untill I actually click in the Layers panel..
>
> So Question: is there some magic to let this TreeView (which it actually is) 
> to repaint itself?
>
> Which reminds me on an issue I had earlier: IF you change the filter of a 
> layer (via PyQGIS) and that layer had a layer count, then the (visible) count 
> was also not updated untill you clicked the legend.
>
> I'm puzzled to what level I should repaint the widget: full of only one node 
> or...
>
> Any input appreciated.
>
> Regards,
>
> Richard Duivenvoorde
> ___
> 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



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python console starting up very slow in master?

2020-09-19 Thread Salvatore Larosa
Hi Richard,

I managed to catch the problem [0] quickly, no need to file a ticket.

Cheers,
-SL

[0] - https://github.com/qgis/QGIS/pull/38873

On Sat, Sep 19, 2020 at 12:53 PM Salvatore Larosa 
wrote:

> Hi Richard,
>
> I can confirm, please file a ticket. I am on it right now!
>
> Thanks,
> -SL
>
> On Fri, Sep 18, 2020 at 9:18 AM Richard Duivenvoorde 
> wrote:
>
>> Hi Devs,
>>
>> I have the impression that the startup of the Python console in current
>> master is very slow.
>>
>> In 3.10 and 3.14 if I click the little python button, the Python Console
>> panel is there within a snap.
>>
>> In Master it takes at least 5 seconds...
>> And again if you open the 'Editor' pane in it
>>
>> Same/Clean profiles
>>
>> Others see the same?
>>
>> (I know myself I added a baseclass to the edit-panes [0],
>> but that should not make stuff start slower...?)
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>> [0] https://github.com/qgis/QGIS/pull/37602
>>
>>
>>
>> QGIS version
>> 3.15.0-Master
>> QGIS code revision
>> 527a08ca5e
>> Compiled against Qt
>> 5.14.2
>> Running against Qt
>> 5.14.2
>> Compiled against GDAL/OGR
>> 3.1.3
>> Running against GDAL/OGR
>> 3.1.3
>> Compiled against GEOS
>> 3.8.1-CAPI-1.13.3
>> Running against GEOS
>> 3.8.1-CAPI-1.13.3
>> Compiled against SQLite
>> 3.33.0
>> Running against SQLite
>> 3.33.0
>> PostgreSQL Client Version
>> 12.4 (Debian 12.4-1)
>> SpatiaLite Version
>> 5.0.0
>> QWT Version
>> 6.1.4
>> QScintilla2 Version
>> 2.11.2
>> Compiled against PROJ
>> 7.1.1
>> Running against PROJ
>> Rel. 7.1.1, September 1st, 2020
>> OS Version
>> Debian GNU/Linux bullseye/sid
>> This copy of QGIS writes debugging output.
>> Active python plugins
>> MetaSearch;
>> processing;
>> db_manager
>>
>> ___
>> 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
>
>
>
> --
> Salvatore Larosa
> linkedIn: http://linkedin.com/in/larosasalvatore
> twitter: @lrssvt
> skype: s.larosa
> IRC: lrssvt on freenode
>


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python console starting up very slow in master?

2020-09-19 Thread Salvatore Larosa
Hi Richard,

I can confirm, please file a ticket. I am on it right now!

Thanks,
-SL

On Fri, Sep 18, 2020 at 9:18 AM Richard Duivenvoorde 
wrote:

> Hi Devs,
>
> I have the impression that the startup of the Python console in current
> master is very slow.
>
> In 3.10 and 3.14 if I click the little python button, the Python Console
> panel is there within a snap.
>
> In Master it takes at least 5 seconds...
> And again if you open the 'Editor' pane in it
>
> Same/Clean profiles
>
> Others see the same?
>
> (I know myself I added a baseclass to the edit-panes [0],
> but that should not make stuff start slower...?)
>
> Regards,
>
> Richard Duivenvoorde
>
> [0] https://github.com/qgis/QGIS/pull/37602
>
>
>
> QGIS version
> 3.15.0-Master
> QGIS code revision
> 527a08ca5e
> Compiled against Qt
> 5.14.2
> Running against Qt
> 5.14.2
> Compiled against GDAL/OGR
> 3.1.3
> Running against GDAL/OGR
> 3.1.3
> Compiled against GEOS
> 3.8.1-CAPI-1.13.3
> Running against GEOS
> 3.8.1-CAPI-1.13.3
> Compiled against SQLite
> 3.33.0
> Running against SQLite
> 3.33.0
> PostgreSQL Client Version
> 12.4 (Debian 12.4-1)
> SpatiaLite Version
> 5.0.0
> QWT Version
> 6.1.4
> QScintilla2 Version
> 2.11.2
> Compiled against PROJ
> 7.1.1
> Running against PROJ
> Rel. 7.1.1, September 1st, 2020
> OS Version
> Debian GNU/Linux bullseye/sid
> This copy of QGIS writes debugging output.
> Active python plugins
> MetaSearch;
> processing;
> db_manager
>
> ___
> 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



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] issues.qgis.org Redmine search not working

2018-04-27 Thread Salvatore Larosa
Hi, the same thing is happening to me too.

Il Ven 27 Apr 2018, 12:17 Matthias Kuhn  ha scritto:

> Hi all,
>
> I was just trying to search the issue tracker and got a server error (500).
>
>
> https://issues.qgis.org/projects/qgis/search?utf8=%E2%9C%93=1=attribute
>
> Is this just me?
>
> Thanks
> --
> Matthias Kuhn
> matth...@opengis.ch
> +41 (0)76 435 67 63 <+41764356763>
> [image: OPENGIS.ch Logo] 
> ___
> 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] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread Salvatore Larosa
Hi Michaël,

On Thu, Feb 15, 2018 at 6:36 PM, kimaidou <kimai...@gmail.com> wrote:

> Hi all,
>
> I have a simple processing python alg which
> * generates a buffer with qgis:buffer
> * use qgis:fieldcalculator to add an buf_area field -> the output vector
> of my alg is this buffer+new field.
>
> I would like to parse the features of the output vector in order to gather
> some information and put it in a new string output. I have not been able to
> get the layer object to perform a getFeatures on it.
>
> See the code
> http://paste.debian.net/1010463/
>
> In line 32, my blayer is None
> I think I am not using the good way to get the output vector layer
> features? I tried to use the same way as for reading an input layer, but
> oviously it is different.
>

What does happen if you put area_result['OUTPUT'] directly instead of
self.parameterAsSource?
parameterAsSource() accept a parameter as first argument and area_result
should be already un QgsVectorLayer.

Where you are trying to execute it from?


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python QgsProcessingLagorithm.parameterAsSink return values

2018-02-14 Thread Salvatore Larosa
Sorry...

http://python.qgis.org/api/

On Wed, Feb 14, 2018 at 3:40 PM, G. Allegri <gioha...@gmail.com> wrote:

> That's what I thought Salvatore, but I can only see the text "QGIS Python
> Documentation" on a blank page.
> I guess it's currently broken...
>
> 2018-02-14 15:38 GMT+01:00 Salvatore Larosa <lrssv...@gmail.com>:
>
>> On Wed, Feb 14, 2018 at 3:33 PM, G. Allegri <gioha...@gmail.com> wrote:
>>
>>> Thanks Nyall and Salvatore.
>>> I missed the SIP_OUT specifier of the destinationIdentifier parameter.
>>>
>>> Some days ago I saw the PyQGIS API docs from a link by Nyall, but I
>>> can't find it now. Where are they?
>>>
>>
>> http://python.qgis.org
>>
>> Ciao.
>>
>>
>> --
>> Salvatore Larosa
>> linkedIn: http://linkedin.com/in/larosasalvatore
>> twitter: @lrssvt
>> skype: s.larosa
>> IRC: lrssvt on freenode
>>
>
>


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python QgsProcessingLagorithm.parameterAsSink return values

2018-02-14 Thread Salvatore Larosa
On Wed, Feb 14, 2018 at 3:33 PM, G. Allegri <gioha...@gmail.com> wrote:

> Thanks Nyall and Salvatore.
> I missed the SIP_OUT specifier of the destinationIdentifier parameter.
>
> Some days ago I saw the PyQGIS API docs from a link by Nyall, but I can't
> find it now. Where are they?
>

http://python.qgis.org

Ciao.


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python QgsProcessingLagorithm.parameterAsSink return values

2018-02-14 Thread Salvatore Larosa
Hi Giovanni,

On Wed, Feb 14, 2018 at 2:13 PM, G. Allegri <gioha...@gmail.com> wrote:

> I'm trying to follow the code that produces the two return values from
> QgsProcessingLagorithm.parameterAsSink in Python. I can't find where the
> sip interface (or whatever) changes the API return value
> <https://qgis.org/api/classQgsProcessingAlgorithm.html#ad9a7c675082ffe996184e37cf4913e00>
> to the two returned values "sink" and "dest_id".
>
> Where does it happen?
>

it happens here:
https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L593


> What does the second parameter (destination id) refer to?
>

the destinationIdentifier string namely the map layer id:
https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L588

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Reclassify values SAGA broken in master

2018-01-25 Thread Salvatore Larosa
Hi Matteo,

should be fixed in
https://github.com/qgis/QGIS/commit/f4f89bbcbe456f87ce51ab0ab72c6f32df6943d3

Regards,
-SL

On Thu, Jan 25, 2018 at 5:31 PM, matteo <matteo.ghe...@gmail.com> wrote:

> Hi all,
>
> sorry for bombing the mailing list, but I'm testing the master version.
>
> I discovered that bot reclassify algorithms of SAGA are broken, when
> trying to open one of them the same error pops up:
>
>
> AssertionError: matrix
> Traceback (most recent call last):
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/ProcessingToolbox.py",
> line 279, in executeAlgorithm
> dlg = AlgorithmDialog(alg)
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/AlgorithmDialog.py",
> line 69, in __init__
> self.setMainWidget(self.getParametersPanel(alg, self))
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/AlgorithmDialog.py",
> line 76, in getParametersPanel
> return ParametersPanel(parent, alg)
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/ParametersPanel.py",
> line 82, in __init__
> self.initWidgets()
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/ParametersPanel.py",
> line 119, in initWidgets
> wrapper = WidgetWrapperFactory.create_wrapper(param, self.parent)
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/wrappers.py",
> line 1552, in create_wrapper
> return WidgetWrapperFactory.create_wrapper_from_class(param, dialog,
> row, col)
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/
> plugins/processing/gui/wrappers.py",
> line 1611, in create_wrapper_from_class
> assert False, param.type()
> AssertionError: matrix
>
>
>
> Should I open a ticket?
>
> Thanks
>
> Matteo
> _______
> 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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] missing *load* button in raster style?

2018-01-24 Thread Salvatore Larosa
On Wed, Jan 24, 2018 at 7:47 PM, matteo <matteo.ghe...@gmail.com> wrote:

> Actually with the Layer Panel and pseudocolor, when hitting on the
> different calculation type values are automatically updated in the boxes ;)
>
> Should I open a ticket for the greyscale?


I just proposed a fix [0] for that.

Regards,
-SL

[0] - https://github.com/qgis/QGIS/pull/6164


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] missing *load* button in raster style?

2018-01-24 Thread Salvatore Larosa
On Wed, Jan 24, 2018 at 7:50 PM, Etienne Trimaille <
etienne.trimai...@gmail.com> wrote:

> Min/max is now loaded automatically, even when you pan the map like in
> this tweet: https://twitter.com/cartocalypse/status/953680911224238080
>

Yeah, with docked style panel works just fine.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] missing *load* button in raster style?

2018-01-24 Thread Salvatore Larosa
Hi Matteo,

On Fri, Nov 10, 2017 at 10:02 AM, matteo <matteo.ghe...@gmail.com> wrote:

> Hi devs,
>
> I just compiled the master branch and I noticed that in the style tab
> for raster layer, I can change the min/max values (with default options
> + user defined) but I cannot see the *load values* button.
>

the Load button has been removed in this commit [0]


>
> even when clicking on apply the min/max values don't change.
>

This is strange, now both Apply and Ok button should to update the min/max
values. At current master works for me.
(Although, I'd like see the values being updated automatically.)

Ciao.

[0] - http://bit.ly/2rCigGQ

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Thanks!

2017-12-27 Thread Salvatore Larosa
QGIS is a beautiful reality. I am honored to be part of this community. Thanks
to all!

--
Sent from my mobile phone

Il 27 Dic 2017 10:01 AM, "Matthias Kuhn"  ha scritto:

> Thanks a lot to all the people in this community,
>
> It is a great pleasure to work with you and bring this project ahead. A
> lot has been achieved this year.
> This was only possible due to the huge commitment of all the people in
> the QGIS community.
>
> Thanks a lot for
>
> . using QGIS
> . writing documentation
> . writing plugins
> . doing server maintenance
> . reporting bugs
> . making jokes on mailing lists
> . keeping the webpage running
> . joining hackfests
> . developing
> . answering questions on stackoverflow
> . doing release management
> . writing budgets
> . administrative paperwork
> . teaching QGIS
> . ... there is so much more ...
>
> I'm looking forward to continuing this journey in 2018 !
>
> Matthias
> ___
> 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] Fwd: My PostgreSQL/PostGIS function to create all missing spatial indexes

2017-12-01 Thread Salvatore Larosa
Thank you very much!

--
Sent from my mobile phone

Il 01 Dic 2017 12:01 PM, "kimaidou"  ha scritto:

> Hi users and devs,
>
> I just created a very simple function [1] to create all the missing
> spatial indexes on your table geometry columns.
>
> It is the 1st version, has no fancy parameter to choose tables or schemas,
> nor return anything usefull (only notices).
>
> Use it with a simple
> SELECT create_missing_spatial_indexes();
>
> [1] https://gist.github.com/mdouchin/cfa0e37058bcf102ed490bc59d762042
>
> Regards,
> Michael
>
>
> ___
> 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] Python error in processing on 2.99 startup

2017-11-29 Thread Salvatore Larosa
Hi Larry,

On Wed, Nov 29, 2017 at 8:05 PM, Larry Shaffer <lar...@dakotacarto.com>
wrote:

> Hi Salvatore,
>
> On Wed, Nov 29, 2017 at 11:44 AM, Salvatore Larosa <lrssv...@gmail.com>
> wrote:
>
>> Hi,
>>
>> On Wed, Nov 29, 2017 at 3:39 PM, Tim Sutton <t...@kartoza.com> wrote:
>>
>>> Hi All
>>>
>>> Its been a few days since I pulled from master - now I am getting the
>>> error below on startup. Does anyone else get it? (Building on MacOS here):
>>>
>>> Couldn't load plugin 'processing' due to an error when calling its
>>> initGui() method
>>>
>>> PermissionError: [Errno 13] Permission denied
>>>
>>> Traceback (most recent call last):
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/qgis/utils.py", 
>>> line 345, in startPlugin
>>> plugins[packageName].initGui()
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/ProcessingPlugin.py",
>>>  line 178, in initGui
>>> self.toolbox = ProcessingToolbox()
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>>>  line 93, in __init__
>>> self.fillTree()
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>>>  line 317, in fillTree
>>> self.fillTreeUsingProviders()
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>>>  line 382, in fillTreeUsingProviders
>>> providerItem = TreeProviderItem(provider, self.algorithmTree, self)
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>>>  line 513, in __init__
>>> self.setToolTip(0, self.provider.longName())
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py",
>>>  line 122, in longName
>>> version = Grass7Utils.installedVersion()
>>>   File 
>>> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7Utils.py",
>>>  line 113, in installedVersion
>>> startupinfo=si if isWindows() else None
>>>   File 
>>> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>>>  line 707, in __init__
>>> restore_signals, start_new_session)
>>>   File 
>>> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>>>  line 1333, in _execute_child
>>> raise child_exception_type(errno_num, err_msg)
>>> PermissionError: [Errno 13] Permission denied
>>>
>>>
>> building the latest master on OSX (10.11.6) and I do not see any error on
>> startup.
>>
>
> You may not see any error if you do not have the 'GRASS7 folder' path set,
> or auto-detection of that path fails, which will lead to not loading the
> GRASS7 Processing provider.
>
> Is that GRASS7 Processing provider showing up and working for you?
>
> If so, what GRASS7 install is it using?
>

I have GRASS7 folder path set to /Applications/GRASS-7.0.app/Contents/MacOS
and I can see GRASS7 algs list in processing toolbox.
The only problem is that the execution of any algorithm does not generate
any output. No error is prompted.

Also, I just saw this issue https://issues.qgis.org/issues/17555 but I
cannot confirm it on my machine.

Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Python error in processing on 2.99 startup

2017-11-29 Thread Salvatore Larosa
Hi,

On Wed, Nov 29, 2017 at 3:39 PM, Tim Sutton <t...@kartoza.com> wrote:

> Hi All
>
> Its been a few days since I pulled from master - now I am getting the
> error below on startup. Does anyone else get it? (Building on MacOS here):
>
> Couldn't load plugin 'processing' due to an error when calling its
> initGui() method
>
> PermissionError: [Errno 13] Permission denied
>
> Traceback (most recent call last):
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/qgis/utils.py", 
> line 345, in startPlugin
> plugins[packageName].initGui()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/ProcessingPlugin.py",
>  line 178, in initGui
> self.toolbox = ProcessingToolbox()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 93, in __init__
> self.fillTree()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 317, in fillTree
> self.fillTreeUsingProviders()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 382, in fillTreeUsingProviders
> providerItem = TreeProviderItem(provider, self.algorithmTree, self)
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 513, in __init__
> self.setToolTip(0, self.provider.longName())
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py",
>  line 122, in longName
> version = Grass7Utils.installedVersion()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7Utils.py",
>  line 113, in installedVersion
> startupinfo=si if isWindows() else None
>   File 
> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>  line 707, in __init__
> restore_signals, start_new_session)
>   File 
> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>  line 1333, in _execute_child
> raise child_exception_type(errno_num, err_msg)
> PermissionError: [Errno 13] Permission denied
>
>
building the latest master on OSX (10.11.6) and I do not see any error on
startup.


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Where can I find the Z-values?

2017-10-31 Thread Salvatore Larosa
Hi Casper

On Tue, Oct 31, 2017 at 10:37 AM, Casper Børgesen <ca...@sdfe.dk> wrote:

> Hi Salvatore
>
>
>
> “Anyway, fpr linestring you should be able to see the z value of closest
> vertex at the clicked coordinate.”
>
>
>
> This is exactly what I’m looking for and I have used that functionality in
> the past. But I can’t see it anymore.
>
>
>
> Regards, Casper
>

works for me on 2.18.14 (OSX). :-(

[image: Inline image 1]

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Where can I find the Z-values?

2017-10-31 Thread Salvatore Larosa
On Tue, Oct 31, 2017 at 10:16 AM, Casper Børgesen <ca...@sdfe.dk> wrote:

> Hi Salvatore
>
>
>
> For points I get the coordinate of the point under derived, but for
> linestrings I only get the clicked coordinated for x and y.
>

For Linestring type you have to use the vertex editor in order to visualize
z values. I don't remember a such functionality.
I guess that for line with a lot of vertices it is pretty complicated to
display all the z values inside the identify results.

Anyway, fpr linestring you should be able to see the z value of closest
vertex at the clicked coordinate.

Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] Where can I find the Z-values?

2017-10-31 Thread Salvatore Larosa
On Mon, Oct 30, 2017 at 4:05 PM, Casper Børgesen <ca...@sdfe.dk> wrote:

> Hi devs.
>
>
>
> I used to be able to sample the z-value of the nearest vertex when using
> “identify features” on a feature (identify results -> (Derived)).
>
>
>
> Is this functionality gone?
>

Which QGIS version?
Just tested on 2.18.14 and I can see the Z value in the identify results
dialog.
[image: Inline image 1]



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] How to add an action into a layer through python

2017-04-16 Thread Salvatore Larosa
Hi Luca,

On Fri, Apr 14, 2017 at 10:31 PM, Luca Mandolesi <mandol...@gmail.com> wrote:
> Hi,
> I would to know if it's possibile to add a python action into a layer
> charged inside layer registry? There is a method inside pyQgis API?

sure, it is possible. With 2.x version the below example should be working:

>>> vl = iface.activeLayer()
>>> actions = vl.actions()
>>>
>>> actionName = 'Show feature id'
>>> actionContent = 'from qgis.utils import iface; 
>>> iface.messageBar().pushMessage("Feature ID: [% $id %]", 0)'
>>>
>>> actions.addAction(QgsAction.GenericPython, actionName, actionContent)

Since QGIS 3 the code for actions was revamped, please see
https://goo.gl/rGgYHC.

Ciao,
-SL


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
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] SAGA and TauDEM algs in QGIS from KingChaos package

2016-11-22 Thread Salvatore Larosa
On Mon, Nov 21, 2016 at 3:25 AM, William Kyngesburye
<wokl...@kyngchaos.com> wrote:
> On Nov 20, 2016, at 2:19 PM, Salvatore Larosa <lrssv...@gmail.com> wrote:
>>
>> On Sun, Nov 20, 2016 at 9:04 PM, Johan Van de Wauw
>> <johan.vandew...@gmail.com> wrote:
>>> Can you check if you have the same error when using saga_cmd without
>>> using processing?
>>
>> I also tried saga_cmd from shell with the following command:
>>
>> saga_cmd io_gdal 0 -TRANSFORM 1 -INTERPOL 0 -GRIDS
>> "/Users/slarosa/MU/elevationutm.sgrd" -FILES
>> "/Users/slarosa/MU/elevation_utm.tif"
>>
>> and it throws:
>> ...
>> 21:15:02: Error: Failed to get the working directory (error 2: No such
>> file or directory)
>
> I don't get a directory error, but it does say "Grids: No objects".
>
>> On Nov 20, 2016, at 2:04 PM, Johan Van de Wauw <johan.vandew...@gmail.com> 
>> wrote:
>>
>> @William: Which compiler was used for saga on mac os x? We had an
>> issue with gcc6 - this looks similar. It is fixed in trunk and in
>> (upcoming) 2.3.2 release of SAA.
>>
> I'm using Clang 7.0.2 from Xcode 7.2.  Is the fix something that can be 
> backported to 2.2?  QGIS doesn't support 2.3+ yet.

Just more info on this issue:
I just noticed that saga commands work correctly when the SRS layers
is not projected (i.e. epsg:4326).
Using UTM projection (i.e epsg:32633) on raster and vector layer SAGA
fails with segfault.

Thanks to take in account this issue.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SAGA and TauDEM algs in QGIS from KingChaos package

2016-11-20 Thread Salvatore Larosa
On Sun, Nov 20, 2016 at 9:04 PM, Johan Van de Wauw
<johan.vandew...@gmail.com> wrote:
> Can you check if you have the same error when using saga_cmd without
> using processing?

I also tried saga_cmd from shell with the following command:

saga_cmd io_gdal 0 -TRANSFORM 1 -INTERPOL 0 -GRIDS
"/Users/slarosa/MU/elevationutm.sgrd" -FILES
"/Users/slarosa/MU/elevation_utm.tif"

and it throws:
...
21:15:02: Error: Failed to get the working directory (error 2: No such
file or directory)


library path: /Applications/QGIS.app/Contents/MacOS/lib/saga/

library name: libio_gdal

library : GDAL/OGR

tool: Import Raster

author  : O.Conrad (c) 2007 (A.Ringeler)



Parameters

Grids: No objects

Files: "/Users/slarosa/MU/elevation_utm.tif"

Transformation: yes

Interpolation: Nearest Neighbor

loading: /Users/slarosa/MU/elevation_utm.tif

Driver: GTiff

Bands: 1

Rows: 857

Columns: 581

Transformation:
  x' = 592364.913689 + x * 19.998468 + y * 0.00
  y' = 4366938.815080 + x * 0.00 + y * -20.010110

loading band [1/1]
Segmentation fault: 11



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SAGA and TauDEM algs in QGIS from KingChaos package

2016-11-20 Thread Salvatore Larosa
On Sun, Nov 20, 2016 at 5:12 PM, Paolo Cavallini <cavall...@faunalia.it> wrote:
> Yes, know issues, tickets open. Easy to fix BTW.
> All the best.
> --
> Sent from mobile. Sorry for being short

I am confused, which issue is easy to fix, TauDEM or SAGA or both? and How?
Do you were referring to your ticket (#13279)? I don't see a segfault
there though

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SAGA and TauDEM algs in QGIS from KingChaos package

2016-11-20 Thread Salvatore Larosa
On Sun, Nov 20, 2016 at 4:13 PM, Sebastiaan Couwenberg
<sebas...@xs4all.nl> wrote:
> On 11/20/2016 04:11 PM, Salvatore Larosa wrote:
>> I have installed 2.14.8 from William Kyngesburye's packages, all ok. I
>> noticed that almost all the algs of SAGA and TauDEM do not work.
>
> http://hub.qgis.org/issues/13279
>
> SAGA changes its API too often, and QGIS has not been adapted to work
> with the SAGA 2.3.x LTS releases yet.

Thank you for your quick reply.
The issue is a segfault here and OSX package (QGIS LTR 2.14.8) bundled
with SAGA 2.2.3.
Anyway I don't see a syntax command error as mentioned from the issue
which seems was fixed, at least for the 2.2.x version.

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] SAGA and TauDEM algs in QGIS from KingChaos package

2016-11-20 Thread Salvatore Larosa
Hi all,

I have installed 2.14.8 from William Kyngesburye's packages, all ok. I
noticed that almost all the algs of SAGA and TauDEM do not work.

For SAGA (2.2.3) algs I get:

/Users/slarosa/.qgis2//processing/saga_batch_job.sh: line 3: 83064
Segmentation fault: 11 saga_cmd io_gdal 0 -TRANSFORM 1 -INTERPOL 0
-GRIDS 
"/var/folders/h4/ymlf4sqx66g989f8b_mm5pdcgn/T/processing45f98c0dfd2042c79bc1adcee612ca04/acef19e7bc864fe29f0453d612165424/elevationutm.sgrd"
-FILES "/Users/slarosa/MU/elevation_utm.tif"

Error: input file
[/var/folders/h4/ymlf4sqx66g989f8b_mm5pdcgn/T/processing45f98c0dfd2042c79bc1adcee612ca04/acef19e7bc864fe29f0453d612165424/elevationutm.sgrd]

Error: Zone Grid

That was happening with the Zonal Raster Statistics alg. But I get the
identical error (segmentation fault) with the others algorithms.

For TauDEM algs I get systematically an "Unsupported Data Source" error:

is not a supported raster data source TIFFReadDirectory:Failed to read
directory at offset 1991676

Anyone confirms?
Can I exclude a local problem with my machine (OSX El Capitan)?

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Retire dxf2shp for 3.0?

2016-10-22 Thread Salvatore Larosa
a big +1 to remove it. there are many users confused by dxf2shp plugin.

Thanks.

On Sat, Oct 22, 2016 at 10:16 AM, Andreas Neumann <a.neum...@carto.net> wrote:
> +1 to retire it
>
> Jürgen is working on native DXF and DWG reading support. So one more reason
> to retire dxf2 shp.
>
> Andreas
>
> On October 22, 2016 9:01:36 AM CEST, Nyall Dawson <nyall.daw...@gmail.com>
> wrote:
>>
>> Hi all,
>>
>> Just wondering - can we remove the dxf2shp convertor core c++ plugin
>> for 3.0? Here my rationale:
>>
>> - dxf works without converting
>> - no one is maintaining it
>> - conversion can be done using OGR itself
>> - doesn't really belong in QGIS
>>
>> Would anyone object if I remove it?
>>
>> Nyall
>> 
>>
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Change qgis-bin dialog text in Python

2015-10-21 Thread Salvatore Larosa
Hi Jakob,

On Wed, Oct 21, 2015 at 9:31 AM, Jakob Lanstorp <jlanst...@gmail.com> wrote:
> I have an Python action using a REST service to get picture. The picture is
> rendered with a QLabel. How can I change the default dialog text 'qgis-bin'?
>
> Dialog:
>
> <http://osgeo-org.1560.x6.nabble.com/file/n5231588/Image4.jpg>
>
> WFS layer action code:
>
> import urllib
> from PyQt4.QtCore import Qt
> img = QtGui.QImage()
> lbl = QtGui.QLabel()
> url = r'[% "cyklogram" %]'
> data = urllib.urlopen(url).read()
> img.loadFromData(data)
> lbl.setPixmap(QtGui.QPixmap(img).scaled(650,250,Qt.KeepAspectRatio))
> lbl.show()

it should be enough to insert:

label.setWindowTitle("title window")

QLabel inherits such a property from QWidget.

Regards,
-SL


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] different handling of invalid geometries between LTR and master version

2015-10-18 Thread Salvatore Larosa
Hi all,

I just noticed that when a layer has invalid geometries (e.g.
self-intersections in polygon layer) the editing tool behaviour is
different between master and LTR version.
In LTR version you can fix it manually by selecting the vertices and
deleting them eventually while in master version it is not possible
anymore to select the vertices for invalid geometries.

IMHO, better LTR behaviour as allowing the user to handle the
incorrect geometry by editing it manually in addition to geometry
checker tools.

Thoughts??

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] GRASS7 build error

2015-10-18 Thread Salvatore Larosa
Thanks.

On Sun, Oct 18, 2015 at 2:40 PM, Radim Blazek <radim.bla...@gmail.com> wrote:
> In fact, quite stupid bug, fixed.
>
> Radim
>
> On Sun, Oct 18, 2015 at 1:09 PM, Pedro Venâncio
> <pedrongvenan...@gmail.com> wrote:
>> Hi,
>>
>> I also confirm this behavior. If I have GRASS_PREFIX and GRASS6 and GRASS7
>> both on, the compilation goes well.
>>
>> If I put just GRASS7 on, I get:
>>
>> [ 62%] Building CXX object
>> src/gui/CMakeFiles/qgis_gui.dir/layertree/moc_qgslayertreeview.cxx.o
>> [ 62%] Building CXX object
>> src/gui/CMakeFiles/qgis_gui.dir/layertree/moc_qgslayertreeviewdefaultactions.cxx.o
>> [ 62%] Building CXX object
>> src/gui/CMakeFiles/qgis_gui.dir/editorwidgets/moc_qgswebviewconfigdlg.cxx.o
>> [ 62%] Building CXX object
>> src/gui/CMakeFiles/qgis_gui.dir/editorwidgets/moc_qgswebviewwidgetwrapper.cxx.o
>> Linking CXX shared library ../../output/lib/libqgis_gui.so
>> [ 62%] Built target qgis_gui
>> make: ** [all] Erro 2
>>
>>
>> But if I put only GRASS6 on, it also compiles well.
>>
>> So, it seems that there is something with the GRASS7, which also requires
>> GRASS6.
>>
>>
>> Pedro
>>
>>
>> 2015-10-17 12:30 GMT+01:00 Paulo van Breugel <p.vanbreu...@gmail.com>:
>>>
>>>
>>>
>>> On 17-10-15 13:00, Radim Blazek wrote:
>>>>
>>>> If you have GRASS 7 installed and you want to compile GRASS 7
>>>> provider/plugin, use WITH_GRASS7=ON, otherwise OFF.
>>>> If GRASS 7 is not found automatically, specify also  GRASS_PREFIX7 and
>>>>   GRASS_INCLUDE_DIR7.
>>>
>>>
>>> Hi Radim, thanks for the feedback. I have installed (compiled from source)
>>> GRASS7. I used the option WITH_GRASS7=ON (I also always specify
>>> GRASS_PREFIX7 and GRASS_INCLUDE_DIR7). But that results in the compilation
>>> to fail. If however I use WITH_GRASS=ON and WITH_GRASS7, I can build QGIS
>>> with the GRASS7 plugin. I thought it strange one also need to set
>>> WITH_GRASS=ON, and from your reaction I get that it shouldn't be required? I
>>> had seen a similar message on the email list, but can't find it right now.
>>> But it means I am (probably) not the only one experiencing this.
>>>
>>>
>>>>
>>>> Radim
>>>>
>>>> On Sat, Oct 17, 2015 at 9:58 AM, Salvatore Larosa <lrssv...@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi Radim,
>>>>>
>>>>> On Wed, Oct 14, 2015 at 11:08 PM, Salvatore Larosa <lrssv...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Hi all,  (Radim)
>>>>>>
>>>>>> I am getting the following error on building:
>>>>>> http://codepad.org/ZZiB2R63
>>>>>> Is this related to a local problem?
>>>>>>
>>>>>> Anyone confirms?
>>>>>
>>>>> I don't know if this mail was notified to you, but I am noticing a
>>>>> strange issue compiling qgis with grass support.
>>>>>
>>>>> If I use only -DWITH_GRASS7=ON I get a build error (as from codepad
>>>>> link in the previous mail) while adding -DWITH_GRASS=ON
>>>>> I can build just fine.
>>>>>
>>>>> is this the expected behaviour?
>>>>> is it necessary to have both grass versions?
>>>>>
>>>>> Thanks,
>>>>> -SL
>>>>>
>>>>>
>>>>> --
>>>>> Salvatore Larosa
>>>>> linkedIn: http://linkedin.com/in/larosasalvatore
>>>>> twitter: @lrssvt
>>>>> skype: s.larosa
>>>>> IRC: lrssvt on freenode
>>>>
>>>> ___
>>>> Qgis-developer mailing list
>>>> Qgis-developer@lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>> ___
>>> Qgis-developer mailing list
>>> Qgis-developer@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] GRASS7 build error

2015-10-17 Thread Salvatore Larosa
Hi Radim,

On Wed, Oct 14, 2015 at 11:08 PM, Salvatore Larosa <lrssv...@gmail.com> wrote:
> Hi all,  (Radim)
>
> I am getting the following error on building: http://codepad.org/ZZiB2R63
> Is this related to a local problem?
>
> Anyone confirms?

I don't know if this mail was notified to you, but I am noticing a
strange issue compiling qgis with grass support.

If I use only -DWITH_GRASS7=ON I get a build error (as from codepad
link in the previous mail) while adding -DWITH_GRASS=ON
I can build just fine.

is this the expected behaviour?
is it necessary to have both grass versions?

Thanks,
-SL


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] GRASS7 build error

2015-10-14 Thread Salvatore Larosa
Hi all,  (Radim)

I am getting the following error on building: http://codepad.org/ZZiB2R63
Is this related to a local problem?

Anyone confirms?

Thanks,
-SL


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Field calculator in Processing error

2015-10-12 Thread Salvatore Larosa
Hi Matteo,

that was a small lack due to some changes in the translation strings.
Just fixed in master.

-SL

On Sun, Oct 11, 2015 at 4:29 PM, matteo <matteo.ghe...@gmail.com> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Hi all,
> I'm trying to open and use the Field Calculator of Processing, but I
> receive this error:
>
> An error has occured while executing Python code:
>
> AttributeError: FieldsCalculator instance has no attribute 'TYPE_NAMES'
> Traceback (most recent call last):
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/gui/ProcessingToolbox.py"
> ,
> line 208, in executeAlgorithm
> dlg = alg.getCustomParametersDialog()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/algs/qgis/FieldsCalculato
> r.py",
> line 161, in getCustomParametersDialog
> return FieldsCalculatorDialog(self)
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/algs/qgis/ui/FieldsCalcul
> atorDialog.py",
> line 70, in __init__
> self.manageGui()
>   File
> "/home/ma7730/.qgis2/python/plugins/processing/algs/qgis/ui/FieldsCalcul
> atorDialog.py",
> line 78, in manageGui
> for t in self.alg.TYPE_NAMES:
> AttributeError: FieldsCalculator instance has no attribute 'TYPE_NAMES'
>
>
> Python version: 2.7.10 (default, Sep 13 2015, 20:30:50) [GCC 5.2.1
> 20150911]
> QGIS version: 2.11.0-Master Master, a721752
>
>
>
> Master version of QGIS on a Debian testing machine.
> Should I open a ticket?
>
> Thanks
>
> Matteo
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJWGnI4AAoJEBy7UYf0gaEO/MkH/3iQa2BEc3s7stqRAuf5KyZV
> lJS/mrwKKdVVM3JA6u+KLPEUys6BJcWLay1SvXgs7tQ2qVwR/lXmucMrqPBCUYCN
> fWWvXXxK0lMbM9ln44c58p7pTRyu4uuKTj1PyO5ZE86D4410OFzjcZj84wWyjcQG
> rGNdU1yLtb8wzJnZ1A3ygtkimkVI6AbtUIBzJyccbQjOPj2W/Wvg4Ad5AUKxDqU4
> ZSNO5cKDz96oZwvofUX55TSsGmn4ASFAMCJ7kc0FnB+q1UT2gdbZNkAhJa+ALR2d
> Rg6+v99QIueCr5Yum73nP5t2IDfsXVQByPiwqll2kjZZ3v3A/9QpjGsLvVCFXUc=
> =DI6U
> -END PGP SIGNATURE-
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Geometry Checker contra Topology Checker

2015-10-07 Thread Salvatore Larosa
Hi Radim,

On Wed, Oct 7, 2015 at 9:25 AM, Radim Blazek <radim.bla...@gmail.com> wrote:
> I must say that I like more the concept of rules in Topology Checker
> instead of one big dialog used in Geometry Checker. Both from UI and
> programming point of view. It is more flexible and extensible. I am
> curious why a new plugin was started instead of improvement of the old
> one. I don't think that the Topology Checker should be simply removed
> until we have something similar in terms of definition and
> implementation of rules.

+1, something that I thought and that I could not express.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Geometry Checker contra Topology Checker

2015-10-06 Thread Salvatore Larosa
On Tue, Oct 6, 2015 at 8:33 PM, Giovanni Manghi
<giovanni.man...@gmail.com> wrote:
> Hi,
>
>> Is it Geometry Checker replacement for Topology Checker? It has more
>> options but does not support multiple layers. What is the future,
>> Geometry Checker or Topology Checker or both merged together?
>
>
> this is the classic example of bad redundancy we would need to remove
> in QGIS. Not only we have now the geometry checker and the topology
> checker, but there is also a core python tool to check for geometry.
> It seems to me that the last two should should eventually be merged in
> the first one, considered that they do not offer any tool to fix the
> geometries and that they have a few issues (slow, problems with
> reprojected layers, false positives, etc.).

Just as additional note, we have two identical entries under the
Vector menu "Geometry Tools".

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS Master crashes on exit

2015-09-28 Thread Salvatore Larosa
Hi Casper,

On Mon, Sep 28, 2015 at 10:04 AM, Casper Børgesen (CABO) <c...@niras.dk> wrote:
> Hi!
>
>
>
> I’m using QGIS master x64 from OSGeo4W, and I’m experiencing crashes (with
> minidumps) each time I exit QGIS (including if I just open and closes QGIS).
>
>
>
> I don’t know how to extract a stack trace from the minidump (if it has one?)
> and renaming the “.qgis2” folder doesn’t help.
>
>
>
> I have just updated the my MASTER edition from OSGeo4W, based on revision
> c7a3ea3, but I haven’t found a build date for that revision. The
> “qgis-dev-bin.exe” has a modified date of September 16, 2015, but I would
> expect it to be newer by now?

the date of your revision is a couple of weeks ago (15 Sep), in the
meanwhile a lot of fix have been pushed
Please try a more recent revision, the crash should disappear.

Thanks,
-SL

>
>
>
> I could open a ticket describing the problem, but I’m not sure where the
> problem is? QGIS code or OSGeo4W builds?
>
>
>
> Can any give me a hint?
>
>
>
> Regards, Casper
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-27 Thread Salvatore Larosa
Hi Giuseppe,

On Sat, Sep 26, 2015 at 8:16 PM, Giuseppe Sucameli
<brush.ty...@gmail.com> wrote:
> Hi Salvatore,
> I'm unable to find the ticket no., I would like to know if the virtual field
> issue is fixed
> in current master

not fixed yet and I didn't open the ticket, but I have a fix for it. [0]
Attributes map must be updated just after the signal has been emitted
otherwise the attribute index changes before to remove the index
throws the exception on
the attribute form code. It happens only when the attribute table is open.
You fixed a very similar issue recently (#13366)

> (today I'm unable to build the master on Ubuntu 14.04 due
> to an
> error linking geos library, related to the following changes [1]).

known issue, I had to edit my CMakeCache.txt
like Matthias has pointed out on this mailing list [2].

> Did you have time to have a look at it?
> Otherwise, if you need help in crushing this bug, please just ask.

sure, thanks for helping

Ciao,
-SL

[0] - https://gist.github.com/slarosa/9843a5ee38161d4e2d92
[2] - http://lists.osgeo.org/pipermail/qgis-developer/2015-September/039327.html

>
> Cheers!
> Giuseppe
>
> [1]
> https://github.com/qgis/QGIS/commit/e9e638f6f40baf22f4d0667a98fb8e034fefd78c
>
>
> On Wed, Sep 23, 2015 at 12:12 AM Salvatore Larosa <lrssv...@gmail.com>
> wrote:
>>
>> Hi Giuseppe,
>>
>> On Tue, Sep 22, 2015 at 10:55 PM, Giuseppe Sucameli
>> <brush.ty...@gmail.com> wrote:
>> > Hi Salvatore,
>> > I can reproduce the issue you reported, I get segfault following those
>> > steps.
>>
>> thank you Giuseppe for having tried it, maybe I am managed to find a fix
>> for it.
>>
>> > Please, file a new ticket for it, AFAICS it's not related to the other
>> > issue.
>>
>> I will do.
>>
>> Saluti,
>> -SL
>>
>> > Ciao.
>> > Giuseppe
>> >
>> >
>> > On Tue, Sep 22, 2015 at 3:06 PM Salvatore Larosa <lrssv...@gmail.com>
>> > wrote:
>> >>
>> >> Hi Tom,
>> >>
>> >> On Tue, Sep 22, 2015 at 10:02 AM, Tom Chadwin <tom.chad...@nnpa.org.uk>
>> >> wrote:
>> >> > Hi Salvatore
>> >> >
>> >> > Following the steps in Pedro's ticket does *not* crash for me.
>> >> > However,
>> >> > I'll
>> >> > ask some questions to clarify:
>> >> >
>> >> > 1. I did not select "Virtual field", as that was not mentioned in the
>> >> > ticket
>> >>
>> >> I added a comment to the issue with the steps already mentioned in this
>> >> trhead.
>> >>
>> >> > 2. I only gave a static value for the contents o the field, rather
>> >> > than
>> >> > an
>> >> > expression - does this only happen with more complex expressions?
>> >>
>> >> yes it occurs with any value, not needed a complex expression.
>> >>
>> >> > 3. I did not close the attribute table between creating the new field
>> >> > and
>> >> > deleting it
>> >>
>> >> correct, you have to keep attribute dialog open
>> >>
>> >> > Does anyone else *not* get a crash following the steps in
>> >> > https://hub.qgis.org/issues/13366?
>> >>
>> >> Actually there are two different issue apparently, the first one
>> >> (Pedro's issue) happens with native field, but it was already fixed
>> >> [0],
>> >> the second one (mine) happens when creating a virtual field by field
>> >> calculator and then deleting it.
>> >>
>> >> Maybe should I file a new ticket for it?
>> >>
>> >> Thanks for your feedback.
>> >>
>> >> --
>> >> Salvatore Larosa
>> >> linkedIn: http://linkedin.com/in/larosasalvatore
>> >> twitter: @lrssvt
>> >> skype: s.larosa
>> >> IRC: lrssvt on freenode
>> >> ___
>> >> Qgis-developer mailing list
>> >> Qgis-developer@lists.osgeo.org
>> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >
>> > --
>> > Giuseppe Sucameli
>>
>> --
>> Salvatore Larosa
>> linkedIn: http://linkedin.com/in/larosasalvatore
>> twitter: @lrssvt
>> skype: s.larosa
>> IRC: lrssvt on freenode
>
> --
> Giuseppe Sucameli



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-22 Thread Salvatore Larosa
Hi Giuseppe,

On Tue, Sep 22, 2015 at 10:55 PM, Giuseppe Sucameli <brush.ty...@gmail.com>
wrote:
> Hi Salvatore,
> I can reproduce the issue you reported, I get segfault following those
> steps.

thank you Giuseppe for having tried it, maybe I am managed to find a fix
for it.

> Please, file a new ticket for it, AFAICS it's not related to the other
> issue.

I will do.

Saluti,
-SL

> Ciao.
> Giuseppe
>
>
> On Tue, Sep 22, 2015 at 3:06 PM Salvatore Larosa <lrssv...@gmail.com>
wrote:
>>
>> Hi Tom,
>>
>> On Tue, Sep 22, 2015 at 10:02 AM, Tom Chadwin <tom.chad...@nnpa.org.uk>
>> wrote:
>> > Hi Salvatore
>> >
>> > Following the steps in Pedro's ticket does *not* crash for me. However,
>> > I'll
>> > ask some questions to clarify:
>> >
>> > 1. I did not select "Virtual field", as that was not mentioned in the
>> > ticket
>>
>> I added a comment to the issue with the steps already mentioned in this
>> trhead.
>>
>> > 2. I only gave a static value for the contents o the field, rather than
>> > an
>> > expression - does this only happen with more complex expressions?
>>
>> yes it occurs with any value, not needed a complex expression.
>>
>> > 3. I did not close the attribute table between creating the new field
>> > and
>> > deleting it
>>
>> correct, you have to keep attribute dialog open
>>
>> > Does anyone else *not* get a crash following the steps in
>> > https://hub.qgis.org/issues/13366?
>>
>> Actually there are two different issue apparently, the first one
>> (Pedro's issue) happens with native field, but it was already fixed
>> [0],
>> the second one (mine) happens when creating a virtual field by field
>> calculator and then deleting it.
>>
>> Maybe should I file a new ticket for it?
>>
>> Thanks for your feedback.
>>
>> --
>> Salvatore Larosa
>> linkedIn: http://linkedin.com/in/larosasalvatore
>> twitter: @lrssvt
>> skype: s.larosa
>> IRC: lrssvt on freenode
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
> Giuseppe Sucameli

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-22 Thread Salvatore Larosa
Hi Tom,

On Tue, Sep 22, 2015 at 10:02 AM, Tom Chadwin <tom.chad...@nnpa.org.uk> wrote:
> Hi Salvatore
>
> Following the steps in Pedro's ticket does *not* crash for me. However, I'll
> ask some questions to clarify:
>
> 1. I did not select "Virtual field", as that was not mentioned in the ticket

I added a comment to the issue with the steps already mentioned in this trhead.

> 2. I only gave a static value for the contents o the field, rather than an
> expression - does this only happen with more complex expressions?

yes it occurs with any value, not needed a complex expression.

> 3. I did not close the attribute table between creating the new field and
> deleting it

correct, you have to keep attribute dialog open

> Does anyone else *not* get a crash following the steps in
> https://hub.qgis.org/issues/13366?

Actually there are two different issue apparently,  the first one
(Pedro's issue) happens with native field, but it was already fixed
[0],
the second one (mine) happens when creating a virtual field by field
calculator and then deleting it.

Maybe should I file a new ticket for it?

Thanks for your feedback.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] crash on deleting a column (virtual field)

2015-09-21 Thread Salvatore Larosa
I am experiencing a crash that systematically happens on each machine
I tested, both Windows and Linux, for such reason I am excluding a
local issue.

Before I file a ticket though, I would like to know if anyone can
reproduce the issue. The steps are:

* open the attribute table
* create a virtual field with expression = "other field"
* open delete column dialog (from the toolbar of attribute table)
* the only selectable column is the new virtual field, select it
* ok on dialog
* crash

Thanks for any feedback!

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-21 Thread Salvatore Larosa
Hi Pedro,

On Mon, Sep 21, 2015 at 4:04 PM, Pedro Venâncio
<pedrongvenan...@gmail.com> wrote:
> Hi Salvatore,
>
> Can it be related with this issue: https://hub.qgis.org/issues/13366

thank you it seems a very similar issue, I added my stacktrace to the issue.

Best regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] editing capabilities problem in the postgres data provider

2015-08-26 Thread Salvatore Larosa
Hi Jürgen,

On Wed, Aug 26, 2015 at 2:17 PM, Jürgen E. j...@norbit.de wrote:
 Hi Salvatore,

 On Wed, 26. Aug 2015 at 14:04:56 +0200, Salvatore Larosa wrote:
 Why it is not possible to modify the existing geometries if the
 primary key is not present?

 Because ctids are very flaky - any modification to the row might or will 
 change
 it - without QGIS noticing.  So previously selected features might 
 mysteriously
 loose their selection, subsequent updates or deletes might fail or even worse
 update or delete a different feature.

gosh, very bad, thanks for the clarification. Will be this change
candidate for LTR version?

Best regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] editing capabilities problem in the postgres data provider

2015-08-26 Thread Salvatore Larosa
On Tue, Aug 25, 2015 at 12:14 PM, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi all,

 I just noticed that in 2.10 (and developing) version is not possible
 to change geometries for the postgres data provider while all work
 fine in LTR. The following code returns False in 2.10 and master
 version (I get superuser permissions on the database):

 vl = iface.activeLayer()
 provider = vl.dataProvider()
 provider.capabilities()  QgsVectorDataProvider.ChangeGeometries

 Anyone confirms?

Checking deeper I realized that the different behavior between master
and LTR is due to this commit [0].
Why it is not possible to modify the existing geometries if the
primary key is not present?

Just wondering. Thanks.

[0] - 
https://github.com/qgis/QGIS/commit/2844005e805709bb39b95aef6a7e5a72777b8b0f


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] editing capabilities problem in the postgres data provider

2015-08-25 Thread Salvatore Larosa
Hi all,

I just noticed that in 2.10 (and developing) version is not possible
to change geometries for the postgres data provider while all work
fine in LTR. The following code returns False in 2.10 and master
version (I get superuser permissions on the database):

 vl = iface.activeLayer()
 provider = vl.dataProvider()
 provider.capabilities()  QgsVectorDataProvider.ChangeGeometries

Anyone confirms?

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] GetFeatureInfo Filter not work on Shape File

2015-06-19 Thread Salvatore Larosa
Hi Walter,

On Sat, Jun 6, 2015 at 9:54 AM, Walter Lorenzetti lorenze...@gis3w.it wrote:
 Hi list,

 I'm using qgis-server 2.8.2 on Ubuntu 14.04 with qgis-web-client, but i have
 a problem on GetFeatureInfo call with Filter parameter on a shape file in my
 project, I obtain zero results.

confirmed here, also on master version, it looks like a QGIS-Server issue.
Using a postgres or spatialite connection works fine.

Have you filed a ticket for it?

Ciao,
-SL


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Processing log: not saved?

2015-06-07 Thread Salvatore Larosa
Hi,

On Sun, Jun 7, 2015 at 9:26 PM, Anita Graser anitagra...@gmx.at wrote:


 On Sun, Jun 7, 2015 at 7:51 PM, Paolo Cavallini cavall...@faunalia.it
 wrote:

 Hi all,
 The recent changes in Processing solved a number of issues - in general
 I think it is now more polished and  usable.
 One thing I did not understand, however, is why the log has disappeared
 fro the History box. I may be missing something, but I believe having
 the possibility of going back to the outputs from several backends was a
 very useful feature.
 Is there a good reason not to put it back?


 +1 for keeping the algorithm log.

+1 how it is now, Processing is a core plugin and any core
functionality should to show logs
on the same place and I think the message logs widget of QGIS is the
right place, imho.

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS 2.8.2 and dev crash if python expressions contain errors

2015-05-30 Thread Salvatore Larosa
Hi,

On Sat, May 30, 2015 at 2:12 PM, Anita Graser anitagra...@gmx.at wrote:
 Hi,

 If you confirm, I can open a ticket:

Yes, I can confirm the crash on linux as well, so you can file a ticket, thanks.
I am going to issue a pull request for that.

Best Regards,
-SL

 QGIS crashes ungracefully when a python expression script contains an error.

 I think there should be a warning but the crashes should be avoided.

 Crash log from my OSGeo4W install is here:
 https://dl.dropboxusercontent.com/u/42637169/qgis-20150530-140918-3584-680-a9aade2.dmp

 Best wishes,
 Anita

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



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Dev map broken in About?

2015-05-27 Thread Salvatore Larosa
On Wed, May 27, 2015 at 3:46 PM, Matthias Kuhn matth...@opengis.ch wrote:
 Fixed.
 It was a bug in leaflet

Thanks Matthias!


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Bookmarks can be imported/exported?

2015-02-24 Thread Salvatore Larosa
Hi Paolo,

On Tue, Feb 24, 2015 at 4:41 PM, Paolo Cavallini cavall...@faunalia.it wrote:
 Il 24/02/2015 16:39, Paolo Cavallini ha scritto:
 Hi all.
 Sorry for flooding, but while checking the changelog I'm finding a
 series of issues. Exporting a bookmark and reimporting it results in:
 * an empty name of the bookmark
 * a wrong extent.
 Is this confirmed, ora local issue?

I just fixed both the issues.
The first one was due to the lack of some translation string and the
second one I mistakenly swapped xmax with ymin of the bookmark extent
(as reported by Pedro, thanks).


 furthermore, the output dir is not remembered.

also this has been fixed.

Best regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Retrieve field name used as label

2014-12-04 Thread Salvatore Larosa
Both should work:

QgsLabel(layer.pendingFields()).fields()[0].name()

layer.customProperty(labeling/fieldName)

Best Regards,
-SL

--
Sent from my mobile phone
Il 04/Dic/2014 23:00 Tom Chadwin tom.chad...@nnpa.org.uk ha scritto:

 Can anyone help with this?



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Retrieve-field-name-used-as-label-tp5176293p5176544.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

Re: [Qgis-developer] problem with VACUUM in DB Manager

2014-12-03 Thread Salvatore Larosa
Hi,

On Wed, Dec 3, 2014 at 3:41 PM, Matteo Ghetta matteo.ghe...@gmail.com wrote:
 Hi all,
 maybe a problem in QGIS 2.6 with VACUUM analyze on both database and schemas
 but not on single tables.

 This is the error:

 Errore durante l'esecuzione di codice Python:

 Traceback (most recent call last):
   File
 /home/ma7730/lavori/QGIS-master/build26/output/python/plugins/db_manager/db_manager.py,
 line 201, in
 invoke_callback = lambda x: self.invokeCallback( callback )
   File
 /home/ma7730/lavori/QGIS-master/build26/output/python/plugins/db_manager/db_manager.py,
 line 273, in invokeCallback
 callback( self.tree.currentItem(), self.sender(), self )
   File
 /home/ma7730/lavori/QGIS-master/build26/output/python/plugins/db_manager/db_plugins/postgis/plugin.py,
 line 172, in runVacuumAnalyzeActionSlot
 parent.infoBar().pushMessage(self.tr(Select a table for vacuum
 analyze.), QgsMessageBar.INFO, parent.iface.messageTimeout())
 TypeError: 'QgsMessageBar' object is not callable

my fault when I introduced that changes, sorry.

 QGIS 2.6 on Debian testing machine but confirmed also on windows and mac
 computers.


 Should I open a ticket?

Jürgen has just fixed in master. so it is not necessary to file a ticket. thanks


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Intersection of line and polygon

2014-11-04 Thread Salvatore Larosa
Hi,

On Tue, Nov 4, 2014 at 8:36 PM, Nyall Dawson nyall.daw...@gmail.com wrote:
 Hi all,

 Can someone give me a pointer to the best way to implement an intersection
 between a line and a rectangle using QgsGeometry? The line may curve out of
 the rectangle and then back in multiple times, so ideally I want to get a
 collection of each part of the line which is within the rectangle.

is there some trouble to use the intersection function of QgsGeometry()?
should not to be enough line.intersection(rectangle)? or probably I am
missing the question here? :)

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Intersection of line and polygon

2014-11-04 Thread Salvatore Larosa
On Tue, Nov 4, 2014 at 10:24 PM, Nyall Dawson nyall.daw...@gmail.com wrote:
 Looking at the definition of QgsGeometry::intersection the docs state
 Returns a geometry representing the points shared by this geometry
 and other.. I assume this method is designed for intersection of two
 polygons, where someone is after the overlapping area.

You should be able to perform the intersection with different geometry types.
I done a script [0] that does an intersection between line and polygon
and returns a multiLine geometry.

[0] - http://codepad.org/zFXO4XBC

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS 2.6 release

2014-10-31 Thread Salvatore Larosa
Hi,

On Fri, Oct 31, 2014 at 11:37 AM, Werner Macho werner.ma...@gmail.com wrote:
 Looking at www.qgis.org it tells me that the release is in 1 1/2h..did I
 miss something? I always thought the release is today..

the release manager said:
http://lists.osgeo.org/pipermail/qgis-developer/2014-October/035264.html
so, the release should to be between less that one hour!

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QgsFeatureRequest.NoGeometry flag makes iterator return no features

2014-10-16 Thread Salvatore Larosa
Hi Giovanni,

On Thu, Oct 16, 2014 at 7:45 PM, G. Allegri gioha...@gmail.com wrote:
 I need to iterate over a layer without the need of geometries.
 I rembember I used this flag time ago and it worked fine. Now, if I set this
 on the feature request, I get an empty set of features from the iterator. Am
 I doing something wrong?

 req = QgsFeatureRequest(QgsExpression('$area1000,00'))
 reg.setFlags(QgsFeatureRequest.NoGeometry)
 feats = [f for f in mylayer.getFeatures(req)]

if you set flag to NoGeometry you cannot pass the $area function as it
needs of the geometry in order to calculate the correct value.
your snippet should to work whether you store the value of $area in a
new field and use it in your espression

Could this be a reason? :)

Ciao.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS crash during testing of my plugin

2014-10-15 Thread Salvatore Larosa
Ciao Luca,

On Wed, Oct 15, 2014 at 9:25 AM, Luca Delucchi lucadel...@gmail.com wrote:
 On 14 October 2014 14:15, Salvatore Larosa lrssv...@gmail.com wrote:
 On Tue, Oct 14, 2014 at 1:49 PM, Luca Delucchi lucadel...@gmail.com wrote:
 On 14 October 2014 13:28, Salvatore Larosa lrssv...@gmail.com wrote:


 Did you install the python-dbg package?


 yes sure

 and python2.7-dbg?


 yes

 I don't know whether getting stacktrace by python helps here, but that
 should be a big hint in order to try to track down the source of the
 problem with your plugin.


 ok, how do you usually use py-bt with gdb? how do you run gdb (gdb
 qgis or something different)?

Usually, it is enough to type:

# gdb qgis
(gdb) r
 - crash
(gdb) py-bt
 - python stacktrace

but there are other useful options [0]

also look at this link [1], you could be in the same situation

Saluti!

[0] - https://docs.python.org/devguide/gdb.html
[1] - 
http://stackoverflow.com/questions/22931774/how-to-use-gdb-python-debugging-extension-inside-virtualenv

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS crash during testing of my plugin

2014-10-14 Thread Salvatore Larosa
Hi,

On Tue, Oct 14, 2014 at 11:15 AM, Luca Delucchi lucadel...@gmail.com wrote:
 Hi everybody,

 I'm developing a Python plugin with several submodules (like MMQGIS).
 I create a BaseDialog class to create each dialog and some functions
 to fill the dialogs.
 When I try to call the second method QGIS crash and it return this logs.
 Maybe I should create a ui file for each method and don't use the
 BaseDialog class to create my interfaces?

could you attach the output of the py-bt command?
Just for having some more information about the crash.

Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS crash during testing of my plugin

2014-10-14 Thread Salvatore Larosa
Hi Luca,

On Tue, Oct 14, 2014 at 11:40 AM, Luca Delucchi lucadel...@gmail.com wrote:
 On 14 October 2014 11:26, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi,


 Hi Salvatore,

 On Tue, Oct 14, 2014 at 11:15 AM, Luca Delucchi lucadel...@gmail.com wrote:
 Hi everybody,

 I'm developing a Python plugin with several submodules (like MMQGIS).
 I create a BaseDialog class to create each dialog and some functions
 to fill the dialogs.
 When I try to call the second method QGIS crash and it return this logs.
 Maybe I should create a ui file for each method and don't use the
 BaseDialog class to create my interfaces?

 could you attach the output of the py-bt command?

 How to use py-bt command?

just type py-bt [0] onto gdb prompt, you need of the python extension
for debugging though.

Regards,
-SL

[0] - https://docs.python.org/devguide/gdb.html

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS crash during testing of my plugin

2014-10-14 Thread Salvatore Larosa
On Tue, Oct 14, 2014 at 12:19 PM, Luca Delucchi lucadel...@gmail.com wrote:
 On 14 October 2014 11:51, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi Luca,


 Hi Salvatore,



 just type py-bt [0] onto gdb prompt, you need of the python extension
 for debugging though.


 I'm still not able to run it, I installed all the needed software.
 These are my steps:
 - run gdb qgis
 - inside gdb type run this execute qgis
 - now try to crash qgis
 - type py-bt but the result is

  (gdb) py-bt
  Undefined command: py-bt.  Try help.

Did you install the python-dbg package?

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS crash during testing of my plugin

2014-10-14 Thread Salvatore Larosa
On Tue, Oct 14, 2014 at 1:49 PM, Luca Delucchi lucadel...@gmail.com wrote:
 On 14 October 2014 13:28, Salvatore Larosa lrssv...@gmail.com wrote:


 Did you install the python-dbg package?


 yes sure

and python2.7-dbg?

I don't know whether getting stacktrace by python helps here, but that
should be a big hint in order to try to track down the source of the
problem with your plugin.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] how to set square symbol in a point layer with python

2014-10-13 Thread Salvatore Larosa
Hi,

On Mon, Oct 13, 2014 at 11:51 AM, Stefano Masera
stefano.mas...@arpa.piemonte.it wrote:
 Thanks for the answer!
 Sorry but I didn't understand how to use QgsSimpleMarkerSymbolLayerV2.
 I did some attempt but I didn't manage..
 Below there's my code (with only two symbol item as example)

 myTargetField = field
 myRangeList = []
 myOpacity = 1


 # symbol 1
 mySymbol = QgsSymbolV2.defaultSymbol(layer.geometryType())
 mySymbol.setColor(QColor('#FF'))
 mySymbol.setAlpha(myOpacity)
 myRange = QgsRendererRangeV2(0.1,34.4,mySymbol, 35)
 myRangeList.append(myRange)
 # symbol 2
 mySymbol = QgsSymbolV2.defaultSymbol(layer.geometryType())
 mySymbol.setColor(QColor('#238443'))
 mySymbol.setAlpha(myOpacity)
 myRange = QgsRendererRangeV2(34.5,39.4,mySymbol,35 - 39 dB(A))
 myRangeList.append(myRange)

 # other symbol items


 myRenderer = QgsGraduatedSymbolRendererV2('', myRangeList)
 myRenderer.setMode(QgsGraduatedSymbolRendererV2.EqualInterval)
 myRenderer.setClassAttribute(myTargetField)

 layer.setRendererV2(myRenderer)
 iface.legendInterface().refreshLayerSymbology(layer)
 layer.triggerRepaint()



 And I want that symbol 1 became a square.
 I can't understand how to use QgsSimpleMarkerSymbolLayerV2.

you can get the symbol layer from QgsSymbolV2 instance:

 mySymbol.symbolLayer(0)

and then change the name for the markersymbol:

 mySymbol.setName(square)

a working example which you can test from python console is:

 layer = iface.activeLayer()
 mySymbol = QgsSymbolV2.defaultSymbol(layer.geometryType())
 mySymbolLayer = mySymbol.symbolLayer(0)
 mySymbolLayer.setName(square)
 layer.rendererV2().symbols()[0].changeSymbolLayer(0, mySymbolLayer)
 iface.legendInterface().refreshLayerSymbology(layer)

Best Regatds,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QgsAttributeDialog() working example

2014-09-29 Thread Salvatore Larosa
Hi,

On Mon, Sep 29, 2014 at 4:56 PM, Alexandre Neto senhor.n...@gmail.com wrote:
 Hello,

 I'm trying to open an attribute dialog for a temporary feature using
 QgsAttributeDialog(). but with no luck. Can anyone point me to working
 example?
 I'm trying something like this:


 mc = iface.mapCanvas()
 layer = mc.currentLayer()
 dialog = QgsAttributeDialog(layer, temp_feature)
 dialog.show()

I think you should to import the class before and setting the feature
owner bool parameter.
after this changes the snippet should work fine for you!

Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QgsAttributeDialog() working example

2014-09-29 Thread Salvatore Larosa
Hi,

On Mon, Sep 29, 2014 at 6:19 PM, Alexandre Neto senhor.n...@gmail.com wrote:
 Hello Salvatore,

 You were right, I just needed to import the class first, this have opened
 the form for me:

 from qgis.gui import QgsAttributeDialog
 mc = iface.mapCanvas()
 layer = mc.currentLayer()
 temp_feature.setAttributes(attributes)
 dialog = QgsAttributeDialog(layer, temp_feature, True)
 dialog.show()


 But now I can't make it editable.

is your layer editable? you need to call startEditing() method in
order to get the form in edit mode.

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Lizmap edit layer

2014-09-20 Thread Salvatore Larosa
Hi,

On Sat, Sep 20, 2014 at 11:06 AM, Mira Maric mmmx...@gmail.com wrote:
 Hi. Same thing is when I save table in public schema or other schema.
 When I run:
 SELECT type FROM geometry_columns WHERE f_table_name = 'bus_stops' AND
 f_table_schema = 'topology'

 I get
 Type character varying (30)
 POINT

that is ok, and which QGIS and LizMapWC versions?

Could you provide the name of the geometry column in bus_stops table?
I don't see the geometry column name either in ST_AsText or
ST_Trasform, so it raises to
syntax error when you are editing the bus_stops table from the web client.

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Lizmap edit layer

2014-09-19 Thread Salvatore Larosa
Hi,

On Fri, Sep 19, 2014 at 9:15 PM, Mira Maric mmmx...@gmail.com wrote:
 Hi. I am using lizmap web client form editing layer bus_stops.
 Bus_stops layer is in Postgis database. I am import it to the database
 from the shapefile with SPIT plugin.

Which QGIS and LizMapWC versions ?


 When I try to edit layer with lizmap webclient I get next message:

 An error occured for : 'SELECT *, ST_AsText() AS astext FROM
 topology.bus_stops WHERE ST_Intersects(
 ST_MakeEnvelope(429253.865738,5407067.308823,429265.809023,5407079.252109,
 3857 ), ST_Transform(, 3857 ) )', the message:invalid query (ERROR:
 syntax error at or near ,

What the following query returns?:
SELECT type FROM geometry_columns WHERE f_table_name = 'bus_stops' AND
f_table_schema = 'topology'

Why the bus_stops table is into the topology schema? I would
recommend you to use a different schema

Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] How to get Composer's name/title using Python

2014-09-08 Thread Salvatore Larosa
Hi Nyall,

On Mon, Sep 8, 2014 at 2:12 PM, Nyall Dawson nyall.daw...@gmail.com wrote:

 It's not stored in QgsComposition (unfortunately... this needs to
 change sometime!). Try:

 for composer_view in composers:
print composer_view.composerWindow().windowTitle()

shouldn't be useful having here a convenience method to get the composer title?

Regards,
SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QEP or RFC?

2014-09-02 Thread Salvatore Larosa
+1 for QEP from me, I really like the idea of an unique and personal tag.

All the Best,
-SL

On Tue, Sep 2, 2014 at 4:01 PM, Alexander Bruy alexander.b...@gmail.com wrote:
 +0 for QEP from me

 2014-09-02 16:01 GMT+03:00 Larry Shaffer lar...@dakotacarto.com:
 Hi,

 I need to start using the new QEP/RFC setup (today actually), specifically
 for some sponsored work. I don't want the sponsor to think the QGIS project
 is indecisive, so I propose a vote on the naming of the process, since there
 is some disagreement.

 QEP or RFC?

 +0 for QEP (I'm fine with RFC, as well).

 I think RFC is a bit dry, though universally understood. QEP should not
 confuse the public, since the dev group actually interested in using them is
 fairly small. QEP is clearly spelled out in the repo name. QEP shows a
 renewed configuration over the older, existing RFC process.

 Lastly, QEP pays homage to Python's PEP. I think QGIS would not be as
 popular as it is today if it were not for Python integration.

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota

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



 --
 Alexander Bruy
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] collapse and expand all actions in legend

2014-08-28 Thread Salvatore Larosa
Hi Martin,

On Thu, Aug 28, 2014 at 1:20 PM, Martin Dobias wonder...@gmail.com wrote:
 Hi Salvatore

 On Thu, Aug 28, 2014 at 6:01 PM, Salvatore Larosa lrssv...@gmail.com wrote:
 I don't see anymore those actions in legend contextual menu, could we
 re-enable them?

 Now they still show up only if you click to empty area. I have
 excluded it from the ordinary context menu because it is getting
 really long for layers - and expand/collapse all items are not really
 contextual actions anyway. I think we could have a small toolbar like
 in browser dock widget and have those actions there (either directly
 or in advanced menu) - together with actions like new group.

no problem to scroll down a lot of layers to find an empty area :)
but couldn't we think to some submenu action here?
I think it is useful to add they in context menu for groups only as well.


 Also, wouldn't be useful to have a check all and uncheck all actions?

 We already have such thing in Layer menu  Show / Hide All Layers.

yeah, I know, sorry badly explained, I was referring to move them in
the context (sub)menu as well.
Having all in legend should be helpful to the end user imo.

Regards,
-SL



 I did not test the legend refactoring part II branch yet, so I don't
 know if this has already been done there.

 The second part of legend refactoring contains no changes in this area.

 Regards
 Martin



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] IT Translation broken in 2.5, it was ok in 2.4!!

2014-08-21 Thread Salvatore Larosa
Hi,
looking at the code it seems that until at b8bdc8f it was fine,
after that commit a lot of translation strings are missing.

Regards,
-SL


On Wed, Aug 20, 2014 at 6:00 PM, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi to all,
 just a quick warning for (it) translators:
 I just noticed the Italian translation is broken for some context help e.g.
 Road Graph, SQL Anywhere, Python Console etc, in the latest master branch.
 It was fine in the final 2.4.

 Anyone knows the reason of that?

 Best Regards,
 -SL

 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] IT Translation broken in 2.5, it was ok in 2.4!!

2014-08-21 Thread Salvatore Larosa
Hi,

On Thu, Aug 21, 2014 at 9:01 AM, Werner Macho werner.ma...@gmail.com wrote:
 Hi!

 Currently trying to investigate this ..
 What do you mean with missing?
 A lot of strings changed and that commit was a string update.
 Strings which do not fit any more are marked as unfinished or even
 untranslated after that ..

I refer to strings which have not changed since 2.4 e.g. Python
Console, Road Graph plugin context help.
I suppose that if there are not gui strings changed the translation
string will be kept, or not?


 As italian as a language already switched to transifex it should be
 easy to finish/continue that translations.

 Or do I miss something there?

 kind regards
 Werner

 On Thu, Aug 21, 2014 at 8:44 AM, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi,
 looking at the code it seems that until at b8bdc8f it was fine,
 after that commit a lot of translation strings are missing.

 Regards,
 -SL


 On Wed, Aug 20, 2014 at 6:00 PM, Salvatore Larosa lrssv...@gmail.com wrote:
 Hi to all,
 just a quick warning for (it) translators:
 I just noticed the Italian translation is broken for some context help e.g.
 Road Graph, SQL Anywhere, Python Console etc, in the latest master branch.
 It was fine in the final 2.4.

 Anyone knows the reason of that?

 Best Regards,
 -SL

 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode



 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] How about to use a tree widget for plugin manager?

2014-08-21 Thread Salvatore Larosa
The plugins are becoming more numerous and the number is expected to
grow, it may be useful to include a tree filtered by category, ie
digitizing, vector, raster, geoprocessing plugin, instead of a list
widget.


Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] IT Translation broken in 2.5, it was ok in 2.4!!

2014-08-20 Thread Salvatore Larosa
Hi to all,
just a quick warning for (it) translators:
I just noticed the Italian translation is broken for some context help e.g.
Road Graph, SQL Anywhere, Python Console etc, in the latest master branch.
It was fine in the final 2.4.

Anyone knows the reason of that?

Best Regards,
-SL

--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] edit widgets do not work in current master

2014-06-19 Thread Salvatore Larosa
Hi, I have some project (saved with 2.2) with some edit widget
customization (hidden field, value map etc).
When opening the 2.2 project in current master the edit widgets do not work
anymore, i.e fields are visible even though they are set on hidden,
descriptions are not shown in the attributes even though the value map is
properly set up

Anybody else confirms?

Best Regards,
-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] edit widgets do not work in current master

2014-06-19 Thread Salvatore Larosa
Hi Matthias,

On Thu, Jun 19, 2014 at 10:49 PM, Matthias Kuhn matthias.k...@gmx.ch
wrote:

 Hi Salvatore,

 did that just appear right now? The changes to the edit widgets have
 been merged a couple of weeks ago already. It would be good to open a
 bug report with a demo project.


Sorry I noticed that just now, I cannot remember the last time that it was
working.
I am going to file a ticket with a sample project!



 Best,
 Matthias


 On Don 19 Jun 2014 22:07:24 CEST, Salvatore Larosa wrote:
  Hi, I have some project (saved with 2.2) with some edit widget
  customization (hidden field, value map etc).
  When opening the 2.2 project in current master the edit widgets do not
  work anymore, i.e fields are visible even though they are set on
  hidden, descriptions are not shown in the attributes even though the
  value map is properly set up
 
  Anybody else confirms?
 
  Best Regards,
  -SL
 
  --
  Salvatore Larosa
  linkedIn: http://linkedin.com/in/larosasalvatore
  twitter: @lrssvt
  skype: s.larosa
  IRC: lrssvt on freenode
 
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer





-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGis 2.0.1 - Group layer SR selection panel

2014-01-16 Thread Salvatore Larosa
Hi Roberto,

On Thu, Jan 16, 2014 at 2:19 PM, Geo DrinX geodr...@gmail.com wrote:

 Hello all,

 there is something wrong, or too complex, in the panel in object.

 In fact, if I create a layer group and I want to give a unique SR to all
 layers under the group, in the panel it is not possible to select the SR
 directly in the recently used SR list.

 I tried using double click, single click ...  nothing to do  :(

 The only way to do it is to ... select the SR from the mondial reference
 systems, that are not ordinated.

 Please, tell me that it will be changed in the next version of QGis !


There is a bug [0] in the QgsProjectionSelector class and there is already
a PR [1] for fixing it.
So the upcoming release should have that patch!

Cheers,
-SL

[0] - http://hub.qgis.org/issues/8298
[1] - https://github.com/qgis/QGIS/pull/1063



 Thank you

 Roberto

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] [Feature][Processing] Headless

2014-01-02 Thread Salvatore Larosa
Hi,

I just tested it and works wonderfully!
I also have tried it as web process for PyWPS and works very well!

Thanks a lot for this!

Best Regards,
-SL

On Mon, Dec 16, 2013 at 3:46 PM, rldhont rldh...@gmail.com wrote:

 Hi dev,

 I just created a pull request to run QGIS-Processing headless.
 I have tested it with a qgis and a modeler algorithm.

 https://github.com/qgis/QGIS/pull/1031

 Review and comments are welcome

 To test QGIS Processing algorithm headlessly, you can use this python code
 __

 import sys, os
 import inspect

 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from qgis.core import *


 # supply path to where is your qgis installed
 QgsApplication.setPrefixPath(/path/to/your/qgis/build, True)

 # load providers
 QgsApplication.initQgis()

 # load a project
 p = QgsProject.instance()
 p.read( QFileInfo( /path/to/a/project.qgs ) )

 # init QApplication for processing
 a = QApplication( sys.argv )

 # init QGIS Processing
 from processing.core.Processing import Processing
 cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
 if cmd_folder not in sys.path:
 sys.path.insert(0, cmd_folder)
 Processing.initialize()

 # import QGIS Processing tools
 from processing.tools import *

 # print an algorithms search
 general.alglist( 'buffer')

 # print an algorithm help
 general.help( 'qgis:fixeddistancebuffer' )


 # run an algorithm
 alg = Processing.getAlgorithm( 'qgis:fixeddistancebuffer' )
 general.runalg( 'qgis:fixeddistancebuffer', '/vector/layer/input/uri',
 0.1, 5, False, '/vector/layer/output.shp' );

 # quit
 QgsApplication.exitQgis()
 

 export PYTHONPATH=/path/to/build/share/qgis/python:/path/to/
 build/share/qgis/python/plugins
 export LD_LIBRARY_PATH=/path/to/build/lib
 python my_scrpit.py
 _

 Regards
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Segfault on load style...

2013-09-02 Thread Salvatore Larosa
Hi,

2013/9/2 rldhont rldh...@gmail.com

 Hi all,

 My QGIS master segfault on load style :
 _

 QGIS died on signal 11Could not attach to process.  If your uid matches
the uid of the target
 process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
 again as the root user.  For more details, see
/etc/sysctl.d/10-ptrace.conf
 ptrace: Opération non permise.
 No thread selected
 No stack.
 gdb returned 0
 __

 Am I the only one ?


Larry has just fixed !

Regards,

-SL

[0] -


 I'm on Ubuntu 64bits.

 Regards,
 René-Luc D'Hont
 3Liz
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Console API auto-completion prepared file (.pap)

2013-08-31 Thread Salvatore Larosa
Hi Larry,

2013/8/31 Larry Shaffer lar...@dakotacarto.com

 Hi Salvatore,

 On Fri, Aug 30, 2013 at 2:52 PM, Salvatore Larosa lrssv...@gmail.comwrote:

 Hi Larry,

 2013/8/30 Larry Shaffer lar...@dakotacarto.com

 Hi,

 I've added generation of the console's API *.pap file for
 auto-completion [0]. This allows to keep up with latest API bindings in an
 easier fashion:

 make  make qsci-pap-src  make install
 Generates the default .pap file (~1 MB) in source tree, which can take
 over a minute.

 make  make qsci-pap-master [ make install]
 Generates a local-only .pap that overrides the default .pap (when
 testing new bindings). It will optionally be installed as well.
 Distributing such an install, like for custom console API completions, will
 always override the default .pap.

 You can edit run the src/python/qsci_apis/generate_console_pap.py
 script directly to produce custom .pap files.

 Please let me know if you can think of a better solution.


 I think this is a good solution, I was going to push the updated APIs
 files generated by myself. Thanks.



 Default .pap includes the following APIs (unchanged from before):

 PyQGIS.api
 Python-2.7.api
 PyQt4-4.7.4.api
 OSGeo_GDAL-OGR-1.9.1.api

 Should GDAL-OGR-1.9.1 be updated to 1.10 for QGIS 2.0 release?


 I would like update to the 1.10.0 version and add the GEOS-3.4.2, I have
 prepared those api files so if there are not objections here I could push
 they to master in order to add the new APIs to the pyqgis.pap file.


 Sounds good to me. I'm done mucking about with the setup, so please make
 the changes you see fit. Looks like the default pyqgis.pap I committed is
 missing the new 'qgis.core.NULL' attribute. Must of missed that somehow.
 Shows up fine when making qsci-pap-master, though. Please test for its
 completion tip in console before uploading another +1 MB .pap file (thanks).


the pyqgis.pap file seems not to have the PyQGIS.api file, I done some
adjustment to the cmake file [0] in order to point the generates_api script
to the right directory. Please could you verify that it is working for you
as well?




 Missing is the QScintilla2 API file, but I think that will just bloat the
 default completions with items most users will not need. IMO, we should
 keep the default .pap as slim as possible, for the same reasons, i.e. just
 core PyQGIS, OSGeo and Python/PyQt modules. That is, until there is
 on-the-fly object inspection support, which would auto-filter the results.


ok, we can leave out the QScintilla APIs, but what about to add the updated
file (QScintilla-2.7.2) into qsci_apis dir ? or should we drop all the old
versions (GDAL-OGR-1.10 will replace GDAL-OGR-1.9.1 and so on) ?

Thanks,

-SL

[0] - https://gist.github.com/slarosa/6397516



 Regards,

 Larry



 I am going to test your cool commit:-)

 Thanks a lot!

 Best Regards,

 -SL




 [0] https://github.com/qgis/Quantum-GIS/commit/dc462859

 Regards,

 Larry

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




 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode





-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Console API auto-completion prepared file (.pap)

2013-08-31 Thread Salvatore Larosa
ok Larry, your last commit works fine only I was wonder might be a problem
to edit the source tree file pyqgis.pap by running the qsci-pap-src target
? just curiosity!

Tonight I'll push the updated API files (GDAL/OGR-1.10.0,QScintilla-2.7.2
and GEOS-3.4.2 ) and will add the GEOS-3.4.2 APIs to the default .pap file.

Thanks for the clarification !




2013/8/31 Larry Shaffer lar...@dakotacarto.com

 Hi Salvatore,

 On Sat, Aug 31, 2013 at 4:50 AM, Salvatore Larosa lrssv...@gmail.comwrote:

 Hi Larry,

 2013/8/31 Larry Shaffer lar...@dakotacarto.com

 Hi Salvatore,

 On Fri, Aug 30, 2013 at 2:52 PM, Salvatore Larosa lrssv...@gmail.comwrote:

 Hi Larry,

 2013/8/30 Larry Shaffer lar...@dakotacarto.com

 Hi,

 snip 8--


 Should GDAL-OGR-1.9.1 be updated to 1.10 for QGIS 2.0 release?


 I would like update to the 1.10.0 version and add the GEOS-3.4.2, I
 have prepared those api files so if there are not objections here I could
 push they to master in order to add the new APIs to the pyqgis.pap file.


 Sounds good to me. I'm done mucking about with the setup, so please make
 the changes you see fit. Looks like the default pyqgis.pap I committed is
 missing the new 'qgis.core.NULL' attribute. Must of missed that somehow.
 Shows up fine when making qsci-pap-master, though. Please test for its
 completion tip in console before uploading another +1 MB .pap file (thanks).


 the pyqgis.pap file seems not to have the PyQGIS.api file, I done some
 adjustment to the cmake file [0] in order to point the generates_api script
 to the right directory. Please could you verify that it is working for you
 as well?


 The point of the qsci-pap-src target is to update the default pyqgis.pap,
 in the source tree. Once that is updated, then the regular CMakelists.txt
 [0] takes care of installing it. This update could be done every once in a
 while, but should always be done right before a release (i.e. like now).
 The target is not part of ALL, otherwise building would take that much
 longer. So, keeping a fairly recent version of pyqgis.pap updated in the
 source tree is a good idea.

 The qsci-pap-master target helps developers when they are testing out new
 bindings and want the console to show them right away. Ideally, once a new
 binding is committed, the qsci-pap-src would be run to update the default
 pyqgis.pap. However, I do not expect this to happen very often; and, it
 seems rather excessive to upload a new pyqgis.pap ( 1MB) so often. It
 should be done a regular basis, though.

 It may be possible to just remove the qsci-pap-master target. But, my
 feeling is that if many developers are updating the default pyqgis.pap, it
 will lead to problems with it.

 In other words, your edits should not be committed. But, you did find a
 bug.  :^)  Indeed, the PyQGIS.api file was not being picked up when making
 qsci-pap-src. I have adjusted the custom commands and the script. GitHub is
 offline right now for maintenance, but I'll commit it ASAP, along with a
 fixed default pyqgis.pap.

 Missing is the QScintilla2 API file, but I think that will just bloat the
 default completions with items most users will not need. IMO, we should
 keep the default .pap as slim as possible, for the same reasons, i.e. just
 core PyQGIS, OSGeo and Python/PyQt modules. That is, until there is
 on-the-fly object inspection support, which would auto-filter the results.


 ok, we can leave out the QScintilla APIs, but what about to add the
 updated file (QScintilla-2.7.2) into qsci_apis dir ? or should we drop all
 the old versions (GDAL-OGR-1.10 will replace GDAL-OGR-1.9.1 and so on) ?


 I think the .api files in QGIS source/install should reflect the 'base and
 most likely' versions available on supported platforms. It is common to
 have a much older QScintilla installed, which is why the older 2.4.5 api is
 in there. Since QGIS is working with much newer OSGeo libs (e.g. gdal-1.10)
 in core, I think it would be better to have more up-to-date .api version
 for those.

 IMO, the idea here is to ensure new users and plugin developers don't get
 used to using a newer API for something that might not be available for all
 users. However, your custom API loader in console should take care of those
 users who do want to use the latest.


 Regards,

 Larry



 Thanks,

 -SL

 [0] - https://gist.github.com/slarosa/6397516



 Regards,

 Larry



  I am going to test your cool commit:-)

 Thanks a lot!

 Best Regards,

 -SL




 [0] https://github.com/qgis/Quantum-GIS/commit/dc462859

 Regards,

 Larry




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Console API auto-completion prepared file (.pap)

2013-08-31 Thread Salvatore Larosa
Hi Larry,

2013/8/31 Larry Shaffer lar...@dakotacarto.com

 Hi Salvatore,

 Sorry to keep messing with this, but it was causing a build error. I
 reverted adding of qsci-pap-master target, leaving it similar to as before,
 excepting the convenience target of qsci-pap-src.

 WITH_QSCIAPI is now marked as advanced, to keep casual users from thinking
 they need to regenerate the .pap file as part of building.

 Here is why I think this is the simplest, most versatile solution:

 *Casual user/dev who compiles/installs QGIS*
 Everything works as before with the default pre-prepared pyqgis.pap in
 source tree used. No generation of .pap occurs. PyQGIS.api is still built
 by default and the target for qsci-pap-src is just created.

 *QGIS dev working on bindings*
 Making qsci-pap-src will update the default .pap in source tree, which
 will be used when running from build directory or install during binding
 testing. If the dev is ready to commit, the already-updated .pap includes
 the latest completions, and everyone benefits. We can use git to revert any
 fouled-up .pap that may make its way into the repo. This assumes the
 committing dev actually ran qsci-pap-src. If not, then any other dev can
 easily do so, updating their source tree, then commit the new default .pap.


this I was not clear in my previous email about the update in the source
tree, but now it does make much sense.

No idea for a better solution at the moment, I agree with your solution.
For now we can go ahead keeping your last commit, just after on Sept 1st.
we can think for a better solution (whether it there is) IMO.


Best Regards,

-SL


 I am really done messing with this now. :^) If you have better solution,
 please let me know.

 Regards,

 Larry


 On Sat, Aug 31, 2013 at 12:37 PM, Larry Shaffer lar...@dakotacarto.comwrote:

 Hi Salvatore,

 On Sat, Aug 31, 2013 at 7:58 AM, Salvatore Larosa lrssv...@gmail.comwrote:

 ok Larry, your last commit works fine only I was wonder might be a
 problem to edit the source tree file pyqgis.pap by running the qsci-pap-src
 target ? just curiosity!


 I'm not sure I understand your question. Doing periodic updates to the
 pyqgis.pap in source keeps from forcing everyone who compiles the source to
 also generate that file. There is no simple means for checking when the API
 has changed (except maybe SHA comparisons of the API file). Without such a
 check, the generation of that file may often be unnecessary, but still done.

 Everyone benefits if that file is kept up to date in the source tree. For
 example, the one I replaced with the initial commit was 11 months old,
 missing many completions for new functions.

 Alternatively, we can set it up similar to what you were suggesting. Let
 me know what you think would be a better solution.

 Regards,

 Larry



 Tonight I'll push the updated API files
 (GDAL/OGR-1.10.0,QScintilla-2.7.2 and GEOS-3.4.2 ) and will add the
 GEOS-3.4.2 APIs to the default .pap file.

 Thanks for the clarification !





-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Console API auto-completion prepared file (.pap)

2013-08-30 Thread Salvatore Larosa
Hi Larry,

2013/8/30 Larry Shaffer lar...@dakotacarto.com

 Hi,

 I've added generation of the console's API *.pap file for auto-completion
 [0]. This allows to keep up with latest API bindings in an easier fashion:

 make  make qsci-pap-src  make install
 Generates the default .pap file (~1 MB) in source tree, which can take
 over a minute.

 make  make qsci-pap-master [ make install]
 Generates a local-only .pap that overrides the default .pap (when testing
 new bindings). It will optionally be installed as well. Distributing such
 an install, like for custom console API completions, will always override
 the default .pap.

 You can edit run the src/python/qsci_apis/generate_console_pap.py script
 directly to produce custom .pap files.

 Please let me know if you can think of a better solution.


I think this is a good solution, I was going to push the updated APIs files
generated by myself. Thanks.



 Default .pap includes the following APIs (unchanged from before):

 PyQGIS.api
 Python-2.7.api
 PyQt4-4.7.4.api
 OSGeo_GDAL-OGR-1.9.1.api

 Should GDAL-OGR-1.9.1 be updated to 1.10 for QGIS 2.0 release?


I would like update to the 1.10.0 version and add the GEOS-3.4.2, I have
prepared those api files so if there are not objections here I could push
they to master in order to add the new APIs to the pyqgis.pap file.

I am going to test your cool commit:-)

Thanks a lot!

Best Regards,

-SL




 [0] https://github.com/qgis/Quantum-GIS/commit/dc462859

 Regards,

 Larry

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Saga and sextante on OSX

2013-08-28 Thread Salvatore Larosa
Hi,

Il giorno martedì 27 agosto 2013, John C. Tull ha scritto:

 Hi everyone,

 I'm running trunk on OS X 10.8 with qgis dependencies built from source
 (most using the homebrew package manager). I also have a functional
 saga_cmd binary that I can use in my terminal to produce valid outputs.
 Unfortunately, sextante complains when I try to run a function:

  Missing dependency.This algorithm cannot be run :-(

 This algorithm requires SAGA to be run.Unfortunately, it seems that SAGA
 is not installed in your system, or it is not correctly configured to be
 used from QGIS


if you are running with SAGA 2.0.8, there should be an option under
Processing--Processing options in SAGA Provider ticks Enable SAGA 2.0.8
compatibility. That should allow you to run SAGA algs.


Regards,

-SL



 This perplexes me. The appropriate path, /usr/local/bin shows in my qgis
 preferences. Sextante was also working at least several months ago in
 trunk. Can anyone provide any suggestions on what may be causing this to
 not work?

 Thanks,
 John
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

Re: [Qgis-developer] Digitizing behavior

2013-08-20 Thread Salvatore Larosa
Hi,


2013/8/20 Andreas Neumann a.neum...@carto.net

 Hi Salvatore,

 I think you described it wrong: the former is on the top and not the
 latter. If the latter were at the top it would be more logical and like the
 other GIS.


Yes, I did mean the former is on the top and not the latter.




 I agree that the current QGIS behavior is strange and I wonder why this
 happens. Aren't objects rendered by its order in a table unless there are
 other rules?

 Andreas


 On Mon, 19 Aug 2013 23:48:16 +0200, Salvatore Larosa wrote:

 I'm noticing that while digitizing a new feature which overlaps
 another, the latter is at the top although I expect to see it at the
 bottom, so the new feature should overlap to the existent one.

 I was wondering if this was the correct behavior since other GIS
 software have a different behavior.

 Do you think we can change this for the upcoming 2.0?

 Best Regards


 __**_
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-**developerhttp://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Digitizing behavior

2013-08-20 Thread Salvatore Larosa
Hi Matthias,


2013/8/20 Matthias Kuhn matthias.k...@gmx.ch

 Can you shortly check if this branch would resolve the issue?

 https://github.com/matthias-kuhn/Quantum-GIS/tree/addedontop


the patch solves the problem only on digitizing of the first feature the
next are to the bottom !


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Digitizing behavior

2013-08-20 Thread Salvatore Larosa
Hi Jürgen

2013/8/20 Jürgen E. j...@norbit.de

 Hi Salvatore,

 On Mon, 19. Aug 2013 at 23:48:16 +0200, Salvatore Larosa wrote:
 I'm noticing that while digitizing a new feature which overlaps
 another,
 the latter is at the top although I expect to see it at the bottom,
 so the
 new feature should overlap to the existent one.

 IMHO the render order should be considered arbitrary. The provider doesn't
 return the features in a particular order later anyway.

 Currently (w/o Matthias patch) while the layer is edited feature with
 changed
 geometries are rendered first (ie. bottom), then added features and then
 features from the provider (- those that are going to be deleted).

 I don't think that this must be changed.  If a layer can have overlapping
 features, it probably should be configured to show them transparently
 already.


Yes, you're right and this is a particular case and we can use transparency
if there are overlapping features,
mine was only a reflection on how other software behaved with such a
similar thing.

Nevertheless my vote is for apply Matthias's patch!

Thanks,

-SL





 Jürgen

 --
 Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
 Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
 Software Engineer D-26506 Norden
 http://www.norbit.de
 committ(ed|ing) to QGISIRC: jef on FreeNode

 --
 norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
 Rheinstrasse 13, 26506 Norden
 GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Digitizing behavior

2013-08-20 Thread Salvatore Larosa
Hi Jürgen,


2013/8/20 Jürgen E. j...@norbit.de

 Hi Salvatore,

 On Tue, 20. Aug 2013 at 12:14:59 +0200, Salvatore Larosa wrote:
 Yes, you're right and this is a particular case and we can use
 transparency if there are overlapping features,
 mine was only a reflection on how other software behaved with such a
 similar thing.

 Nevertheless my vote is for apply Matthias's patch!

 It just might have an impact on other stuff (that false rely on new
 features
 being returned first; maybe in the attribute table, snapping, some user
 plugins).  Not sure if it actually does.


Clearly my vote also is for doesn't break anything :-)



 Jürgen

 --
 Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
 Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
 Software Engineer D-26506 Norden
 http://www.norbit.de
 committ(ed|ing) to QGISIRC: jef on FreeNode

 --
 norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
 Rheinstrasse 13, 26506 Norden
 GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Digitizing behavior

2013-08-19 Thread Salvatore Larosa
I'm noticing that while digitizing a new feature which overlaps another,
the latter is at the top although I expect to see it at the bottom, so the
new feature should overlap to the existent one.

I was wondering if this was the correct behavior since other GIS software
have a different behavior.

Do you think we can change this for the upcoming 2.0?

Best Regards

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] WMS of orthophotos delivers strange colours in master

2013-08-07 Thread Salvatore Larosa
Hi,

2013/8/7 Bernd Vogelgesang bernd.vogelges...@gmx.de

 Thanx Salvatore,

 was too blind too see myself:
 I didn't change anything, just added the url and picked the layer.
 But now i see that in 1.8 PNG was default, while in master, it was default
 to gif!
 I'm pretty sure i never used gif as format for anything, so how come that
 gif there is default?

 Just tested again: when i add the WMS-Service to master, gif is picked as
 default there automatically

 Had a look now at the metadata: image/gif is there mentioned on first
 place of the list of available encodings.
 Maybe master has now a different behaviour on handling these infos than
 1.8?

 gif seems to be a pretty bad choice in any case ... but is that a matter
 of the data provider (changing order in metadata) or of qgis (defaulting
 everything to png when possible)?


I think it depends on how it is in metadata and I am not sure if changing
to defaulting everything to PNG is good.
you could bring this question to qgis developer mailing list [0] in order
to get a more specific answer !


Best regards,
-SL

[0] - qgis-developer@lists.osgeo.org


 Bernd


 Am 07.08.2013, 13:10 Uhr, schrieb Salvatore Larosa lrssv...@gmail.com:


  Hi,

 2013/8/7 Bernd Vogelgesang bernd.vogelges...@gmx.de

  Hi,

 first i thought that those guys from the saxonian administration were
 trying to make artwork instead aerial images.
 When loading the wms in current master, the images look like being
 processed by Andy Warhol.


 I am not sure what kind of brushes were used by Andy W.,
 but are you using the same image encoding for both 1.8 and master ? for
 example PNG ?

 Regards,

 -SL



 Then i tried it with 1.8., and there everything is ok and as expected.

 I tested on Linux and Windows, both with the same strange look in master.

 Can anyone confirm this? Is it a problem of master, the service or some
 settings?
 Couldn't find any ticket or thread on this so far.

 For those you want to check themselves:

 http://www.landesvermessung.**sachsen.de/ias/basiskarte4/**
 service/SRV4ADV_P_DOPRGB/**WMSFREE_TK/wmsservicehttp://www.landesvermessung.sachsen.de/ias/basiskarte4/service/SRV4ADV_P_DOPRGB/WMSFREE_TK/wmsservice

 Image as seen by me:
 https://dl.dropboxusercontent.**com/u/48666790/QGIS/**
 screenshot_wms_master.pnghttps://dl.dropboxusercontent.com/u/48666790/QGIS/screenshot_wms_master.png

 --
 Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf *
 +49-9133-825374
 __**_
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-userhttp://lists.osgeo.org/mailman/listinfo/qgis-user






 --
 Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf * +49-9133-825374
 __**_
 Qgis-user mailing list
 qgis-u...@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-userhttp://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Splash screen for 2.0

2013-07-16 Thread Salvatore Larosa
Hi Marco,

2013/7/16 Marco Bernasocchi ma...@bernawebdesign.ch

 On 07/16/2013 02:14 PM, Salvatore Larosa wrote:

 Here a revision with text in green:
 https://www.dropbox.com/s/**7echczuauz1ay7m/qgis_**
 splashscreen_logo_green.pnghttps://www.dropbox.com/s/7echczuauz1ay7m/qgis_splashscreen_logo_green.png

 my vote is for the clipped logo and the arrow pointing to Dofour mountain.


 Salvatore can you try to use only green and Helvetica for the text? (and
 maybe blue?)



Version with text in blue and helvetica font:
https://www.dropbox.com/s/ufzh5q2rt90mvqo/qgis_splashscreen_logo_wo_border_helv_blue.png

Version with text in green and helvetica font:
https://www.dropbox.com/s/b138mbf1zvtu4ph/qgis_splashscreen_logo_wo_border_helv_green.png





 for me the logo like that is the best, very fresh and different from the
 usual logo top left.

 thanks Salvatore



 --
 Marco Bernasocchi
 http://opengis.ch




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] [Qgis-psc] Logo

2013-04-20 Thread Salvatore Larosa
I very like as this contest is going, #50,  #267 and #268 are very nice but
I also think they don't look fine as desktop icon, IMO inside  the Q
there is too much white.

Regards,

-SL
I like #50 but with slight modification, a globe inside the Q would be
good. The globe designed from #315 is nice to be put inside the Q in
#50.

Noli

On 4/20/13, Nathan Woodrow madman...@gmail.com wrote:
 Hi all,

 There is now another poll with some more designs:

 http://99designs.com.au/logo-design/vote-9qwk3a

 All polls can be found at:

 http://99designs.com.au/logo-design/contests/qgis-needs-logo-210397/polls

 - Nathan


 On Sat, Apr 20, 2013 at 2:01 PM, Nathan Woodrow madman...@gmail.com
 wrote:

 Hey all,

 Here are the current top running designs, could everyone please cast
 there
 vote (star rating). http://99designs.com.au/logo-design/vote-6srjtn
 Remember the final designs will be taken into the final round were the
 design can be tweaked more, removing words, change colours, layout, etc.

  http://99designs.com.au/logo-design/vote-6srjtn

 - Nathan


 On Sat, Apr 20, 2013 at 12:56 PM, Nathan Woodrow
 madman...@gmail.comwrote:

 Hey all,

 I'm going to go over what people have voted for so far and put them in a
 poll for people to vote on.  The top designs out of that will go though
 to
 the final round where we can have more iterations of the picked designs.

 - Nathan


 On Fri, Apr 19, 2013 at 4:22 PM, Marco Bernasocchi 
 ma...@bernawebdesign.ch wrote:

 Marco Bernasocchi (mobile)
 http://opengis.ch
 On Apr 19, 2013 4:23 AM, Tim Sutton li...@linfiniti.com wrote

  Personally I would automatically exclude anything that uses a compass
  metaphor - it is so cliche and is used by so many different products
  out there that it does not distinguish ours from the rest.

 +1
 as well anything that is more a drawing like #12
 ciao
 
  Regards
 
  Tim

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





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


Re: [Qgis-developer] [Qgis-user] [Qgis-psc] Logo

2013-04-20 Thread Salvatore Larosa
the #335 is very nice!!!

Larry thanks very much!

http://99designs.it/logo-design/contests/qgis-needs-logo-210397/entries/335


2013/4/20 Noli Sicad nsi...@gmail.com

 I like #50 but with slight modification, a globe inside the Q would be
 good. The globe designed from #315 is nice to be put inside the Q in
 #50.

 Noli

 On 4/20/13, Nathan Woodrow madman...@gmail.com wrote:
  Hi all,
 
  There is now another poll with some more designs:
 
  http://99designs.com.au/logo-design/vote-9qwk3a
 
  All polls can be found at:
 
 
 http://99designs.com.au/logo-design/contests/qgis-needs-logo-210397/polls
 
  - Nathan
 
 
  On Sat, Apr 20, 2013 at 2:01 PM, Nathan Woodrow madman...@gmail.com
  wrote:
 
  Hey all,
 
  Here are the current top running designs, could everyone please cast
  there
  vote (star rating). http://99designs.com.au/logo-design/vote-6srjtn
  Remember the final designs will be taken into the final round were the
  design can be tweaked more, removing words, change colours, layout, etc.
 
   http://99designs.com.au/logo-design/vote-6srjtn
 
  - Nathan
 
 
  On Sat, Apr 20, 2013 at 12:56 PM, Nathan Woodrow
  madman...@gmail.comwrote:
 
  Hey all,
 
  I'm going to go over what people have voted for so far and put them in
 a
  poll for people to vote on.  The top designs out of that will go though
  to
  the final round where we can have more iterations of the picked
 designs.
 
  - Nathan
 
 
  On Fri, Apr 19, 2013 at 4:22 PM, Marco Bernasocchi 
  ma...@bernawebdesign.ch wrote:
 
  Marco Bernasocchi (mobile)
  http://opengis.ch
  On Apr 19, 2013 4:23 AM, Tim Sutton li...@linfiniti.com wrote
 
   Personally I would automatically exclude anything that uses a
 compass
   metaphor - it is so cliche and is used by so many different products
   out there that it does not distinguish ours from the rest.
 
  +1
  as well anything that is more a drawing like #12
  ciao
  
   Regards
  
   Tim
 
  ___
  Qgis-user mailing list
  qgis-u...@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 
 
 
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] [Qgis-psc] Logo

2013-04-16 Thread Salvatore Larosa
Hi,

I like #185 also, #50 is good but it is too linear IMO I don't know if it
looks fine for other context (splashscreen, web page, desktop icon etc).
Also I think #91 and #88 are misleading for a GIS desktop application.

Regards,

-SL


2013/4/16 Nathan Woodrow madman...@gmail.com

 Could everyone have a look over the latest entries and provide some
 feedback.

 Regards,
 Nathan


 On Tue, Apr 16, 2013 at 9:13 AM, Nathan Woodrow madman...@gmail.comwrote:

 Hey Larry,

 Thanks for the feedback. I had the same feelings but kind of like the
 design, maybe just not for QGIS :)

 - Nathan


 On Tue, Apr 16, 2013 at 1:52 AM, Larry Shaffer lar...@dakotacarto.comwrote:

 Hi Nathan,

 On Sun, Apr 14, 2013 at 11:43 PM, Nathan Woodrow madman...@gmail.comwrote:

 What do people think of
 http://99designs.com.au/logo-design/contests/qgis-needs-logo-210397/entries/115
  and
 http://99designs.com.au/logo-design/contests/qgis-needs-logo-210397/entries/117


 Well, I don't like it. First off, I don't get it. At a glance, I have no
 idea what it's trying to convey or why there is so much text.

 Secondly, I think it is imperative for a logo design to offer a
 shortened square aspect, e.g. for an icon. The Q in QGIS obviously lends
 itself to this, and IMO works well for it; so I think a design that
 leverages that single character will be more versatile, than say one that
 only works well for a web site header.

 Regards,

 Larry



  On Mon, Apr 15, 2013 at 3:32 PM, Paolo Cavallini 
 cavall...@faunalia.it wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 15/04/2013 03:14, Nathan Woodrow ha scritto:
  Hey All,

 
 http://99designs.com.au/logo-design/contests/qgis-needs-logo-210397/entries/64

 In
 
 this case the logo as we use it now would be the Q, that is a
 black circle with the green arrow, right?
 Thanks Nathan for managing this.
 All the best.
 - --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAlFrkP4ACgkQ/NedwLUzIr5+wgCePXM1yyku1L6tiV58VMljNQpH
 jnUAnjee/MUuExfhmbo2U11nhrbzRwfG
 =QeyB
 -END PGP SIGNATURE-
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



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





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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] New Python Console

2013-04-03 Thread Salvatore Larosa
Hi Jeremy,
I was aware, sorry for that.
I am trying to solve this issue although I don't know if this is related to
the Qsci module.
Thanks.

Regards,

-SL

Il giorno 03/apr/2013 00:01, Jeremy Palmer jpal...@linz.govt.nz ha
scritto:

 Hi QGIS devs!

 I'm just been playing with the new python console and it's a great
 improvement -many thanks to Salvatore Larosa.

 One feature that seems to be missing is the ability for auto-completion to
 work on runtime objects using automatic type inference.

 e.g. currently:

  iface.activeLayer().

 does not bring up autocompletion list for the QgsMaplayer object

 Or:

  layer = iface.activeLayer()
  layer.

 does not bring up the autocomplete for the layer object.

 Is this a hard thing to implement? Or is it limited by the Qsci module?

 Cheers,
 Jeremy

 This message contains information, which is confidential and may be
 subject to legal privilege. If you are not the intended recipient, you must
 not peruse, use, disseminate, distribute or copy this message. If you have
 received this message in error, please notify us immediately (Phone 0800
 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ
 accepts no responsibility for changes to this email, or for any
 attachments, after its transmission from LINZ. Thank You.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

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


Re: [Qgis-developer] Capturing stdout from a plugin

2013-03-17 Thread Salvatore Larosa
Hi Gary,

I issued a pull request [1] to revert that method.

Regards,

-SL

[1] - https://github.com/qgis/Quantum-GIS/pull/470


2013/3/15 Gary Sherman gsher...@geoapt.com

 In the 1.x console API, you could use:

 output = sys.stdout.get_and_clean_data()

 to grab what was sent to stdout via print statements.

 Is there an equivalent way to do this with the 2.0 API? I'm not seeing
 it...

 Thanks,
 -gary


 --
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Gary Sherman
 Chair, QGIS Project Steering Committee
 -Desktop GIS Book:
  *http://desktopgisbook.com
 -Alaska Novel:
  *http://alaskana.co
 -Geospatial Consulting  Hosting:
  *http://geoapt.com
 We work virtually everywhere
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Capturing stdout from a plugin

2013-03-15 Thread Salvatore Larosa
Hi,

2013/3/15 Gary Sherman gsher...@geoapt.com

 In the 1.x console API, you could use:

 output = sys.stdout.get_and_clean_data()

 to grab what was sent to stdout via print statements.

 Is there an equivalent way to do this with the 2.0 API? I'm not seeing
 it...


currently doesn't exist a similar method in the new console, but all the
print
statements are catched from the console.

I had to delete the QgisOutputCatcher class because I got some problem with
the text styling in qscintilla lexer.

However, I think it is better revert that method or add a similar.
I'll try fix it asap.

Thanks for catching it :-)

Regards,

-SL




 Thanks,
 -gary


 --
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Gary Sherman
 Chair, QGIS Project Steering Committee
 -Desktop GIS Book:
  *http://desktopgisbook.com
 -Alaska Novel:
  *http://alaskana.co
 -Geospatial Consulting  Hosting:
  *http://geoapt.com
 We work virtually everywhere
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] new splash screen for upcoming 2.0 ?

2013-02-26 Thread Salvatore Larosa
Hi Anita,

2013/2/26 Anita Graser anitagra...@gmx.at

 Hi,

 I agree with Larry's assessment that the color feels out of touch with
 modern style unfortunately.
 On the other hand, I really like the squared corners as I've already
 written in an answer to http://hub.qgis.org/issues/7211.


Ok, I dropped the aquamarine color and I changed something (not much).
Here the new look: http://lrssvt.ns0.it/img/splash_simple_new.png



 Do we keep the discussion here or should we rather move it to the bug
 tracker where it could be recorded together with all evolutionary
 steps of the design?


Yes, you're right, I started the topic for that reason !
I just added there the SVG version so everybody can work on it !

Thanks for your feedback!

Best Regards,

-SL




 Best wishes
 Anita




 On Tue, Feb 26, 2013 at 6:23 AM, Andre Joost andre+jo...@nurfuerspam.de
 wrote:
  Am 25.02.2013 22:34, schrieb Salvatore Larosa:
  Hi,
 
 
  2013/2/25 Marco
  Bernasocchimarco-mkcfxjbjhoaovdft+aqlje1gaupnl...@public.gmane.org
 
  hi all, I like a lot the splash from Salvatore, it looks kind of
 sexyer
  than the rounded one.
  could we use that with an old map?
 
  Thanks, I done a new one with the old map suggested from Andre Joost !
  You can look at it here:
 http://lrssvt.ns0.it/img/splash_oldmap_shadow.png
 
 
  Thanks for using my idea. I had the same intention, and accidentially
  saw that you used a quiet new (openstreet)map of Essen already in your
  first try ;-)
 
  For your new proposal, I would prefer to see the main text away from the
  interesting parts of the picture, for example more to the bottom.
 
  Greetings,
  André Joost
 
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] new splash screen for upcoming 2.0 ?

2013-02-25 Thread Salvatore Larosa
Hi,

2013/2/25 Marco Bernasocchi ma...@bernawebdesign.ch

 hi all, I like a lot the splash from Salvatore, it looks kind of sexyer
 than the rounded one.
 could we use that with an old map?

Thanks, I done a new one with the old map suggested from Andre Joost !
You can look at it here: http://lrssvt.ns0.it/img/splash_oldmap_shadow.png

Regards,

-SL

It would be great
 ciao

 Marco Bernasocchi (mobile)
 http://opengis.ch
 On 24 Feb 2013 15:31, Salvatore Larosa lrssv...@gmail.com wrote:

 Hi Tim,

 2013/2/24 Tim Sutton li...@linfiniti.com

 Hi Salvatore

 For me it would be a -1 I'm afraid :-(

 We made an informal decision to use old maps and place names (typically
 a previous hack fest venue) for our splashes.

 :-( I was not aware of that decision on splashes,
 anyway I'd like very much see a different splash
 in the new release slightly more elegant and if possible
 with squared borders, keeping the same logic.

 I also issued a new topic in the bug tracker [1],
 so everyone may leave any feedback on it.
 I will put there the SVG version of my proposed.

 BTW, thanks for your replies !

 Regards,

 -SL

 [1] - http://hub.qgis.org/issues/7211

 Regards

 Tim
 On 20 Feb 2013 6:55 PM, Salvatore Larosa lrssv...@gmail.com wrote:

 Hi all,
 this morning I was playing with inkscape for a new splash screen for
 QGIS 2.0,
 and the result is the attached image [1], I like it, but I am not sure
 if it looks good to you!

 Here the video that shows QGIS on startup:
 http://lrssvt.ns0.it/img/splash_.ogv

 What you think about it ?

 [1] - http://lrssvt.ns0.it/img/splash.png

 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode

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




 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] new splash screen for upcoming 2.0 ?

2013-02-24 Thread Salvatore Larosa
Hi Tim,

2013/2/24 Tim Sutton li...@linfiniti.com

 Hi Salvatore

 For me it would be a -1 I'm afraid :-(

 We made an informal decision to use old maps and place names (typically a
 previous hack fest venue) for our splashes.

:-( I was not aware of that decision on splashes,
anyway I'd like very much see a different splash
in the new release slightly more elegant and if possible
with squared borders, keeping the same logic.

I also issued a new topic in the bug tracker [1],
so everyone may leave any feedback on it.
I will put there the SVG version of my proposed.

BTW, thanks for your replies !

Regards,

-SL

[1] - http://hub.qgis.org/issues/7211

 Regards

 Tim
 On 20 Feb 2013 6:55 PM, Salvatore Larosa lrssv...@gmail.com wrote:

 Hi all,
 this morning I was playing with inkscape for a new splash screen for QGIS
 2.0,
 and the result is the attached image [1], I like it, but I am not sure if
 it looks good to you!

 Here the video that shows QGIS on startup:
 http://lrssvt.ns0.it/img/splash_.ogv

 What you think about it ?

 [1] - http://lrssvt.ns0.it/img/splash.png

 --
 Salvatore Larosa
 linkedIn: http://linkedin.com/in/larosasalvatore
 twitter: @lrssvt
 skype: s.larosa
 IRC: lrssvt on freenode

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




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] new splash screen for upcoming 2.0 ?

2013-02-20 Thread Salvatore Larosa
Hi all,
this morning I was playing with inkscape for a new splash screen for QGIS
2.0,
and the result is the attached image [1], I like it, but I am not sure if
it looks good to you!

Here the video that shows QGIS on startup:
http://lrssvt.ns0.it/img/splash_.ogv

What you think about it ?

[1] - http://lrssvt.ns0.it/img/splash.png

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] getLayerID() new API

2013-02-18 Thread Salvatore Larosa
Hi,

2013/2/18 francescobocca...@libero.it francescobocca...@libero.it

 Hi all,
 anyone con suggest me how use getLayerID() method in new QGIS API?


use id():
http://qgis.org/api/classQgsMapLayer.html#a710f27dec806d3bcd5ae14701c2e6fd7

Regards,

-SL



 Thanks

 Francesco
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Extract epgs code from input layer

2013-02-16 Thread Salvatore Larosa
Hi,

2013/2/16 francescobocca...@libero.it francescobocca...@libero.it

 Hi all,
 i would like to extract epsg code from inputvector layer.
 My code is:

 vlayerA = QGisLayers.getObjectFromUri(self.getParameterValue(href.INPUT))
 self.epsg = vlayerA.crs().srsid()

 Is it corrects?
 If i print the values it show strange value.


Those are not strange values, the srs id is the primary key that reference
to SRS in sqlite db.
You should use authid() [1] to get EPSG code or description() [2] to get a
textual description of the SRS.

Regards,

-SL

[1] - http://goo.gl/o29FU
[2] - http://goo.gl/IPvYx


 Thanks

 Francesco
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


  1   2   >