+1 from me too. This also will bring more consistency with other methods.
We already have iface.activeLayer() instead of currentLayer()
2017-12-23 8:03 GMT+02:00 Tim Sutton :
> Hi
>
>
>
> On 23 Dec 2017, at 06:40, Nyall Dawson wrote:
>
> Hi all,
>
> Just wondering... before 3.0 launch, should we
Hi
> On 23 Dec 2017, at 06:40, Nyall Dawson wrote:
>
> Hi all,
>
> Just wondering... before 3.0 launch, should we remove
> QgsProject.instance() from the Python bindings, in favour of something
> like iface.activeProject()?
+1 That sounds much more intuitive to me.
Regards
Tim
>
> Somet
Hi all,
Just wondering... before 3.0 launch, should we remove
QgsProject.instance() from the Python bindings, in favour of something
like iface.activeProject()?
Sometime in the future (4.0?) we'll end up killing
QgsProject.instance(), but in the meantime is it a good move to push
people away from
On 22 December 2017 at 17:44, Richard Duivenvoorde wrote:
> While the api
>
> https://qgis.org/api/classQgsCoordinateTransform.html#a8c036726885d51e9fdfe1478a063dfcd
>
> still notes this constructor?
>
> Do I miss info? Or is something wrong with my sip stuff?
Nope, as Denis has noted those websi
Dear developers,
OSGeo Code Sprint will come to Bonn (Germany) in March 2018 [1]. You are
invited to join us.
When:
- Sun 2018-03-19 12:00 noon - Sun 2018-03-25 12:00 noon
Where:
- Venue & Accommodation: BaseCamp Bonn (For more informations:
http://www.basecamp-bonn.com/)
- Acc
Il 22/12/2017 19:19, Paolo Cavallini ha scritto:
> http://plugins.qgis.org/plugins/processing_whitebox/
> an impressive piece of work, I'm astonished.
As a side note, I quickly tried the slope command, and no output is
produced, without warning.
All the best.
--
Paolo Cavallini - www.faunalia.eu
It makes my plugin development efforts look insignificant.
On Fri, Dec 22, 2017 at 1:19 PM, Paolo Cavallini
wrote:
> Hi all,
> I noticed the new plugin has been published by Alexander Bruy:
> http://plugins.qgis.org/plugins/processing_whitebox/
> an impressive piece of work, I'm astonished.
> On
Hi all,
I noticed the new plugin has been published by Alexander Bruy:
http://plugins.qgis.org/plugins/processing_whitebox/
an impressive piece of work, I'm astonished.
Once installed from zipfile it appears correctly. However, I do not see
it in the list of plugins available for install in a recen
I have attached a script that creates two polygon layers in QGIS 2.18. Run
the script to create the polygons and then run one of the Geoprocessing
Tools such as Difference, Symmetrical Difference, or Clip and you get the
wrong results. If you do the same thing in QGIS 2.14 you get the correct
resul
See my email earlier today :-)
In short use:
canvasCrs = self.canvas.mapSettings().destinationCrs()
transform = QgsCoordinateTransform(
epsg4326, canvasCrs, QgsProject.instance())
x, y = transform.transform(float(lon), float(lat))
https://github.c
I'm not sure what to do with this API break for my QGIS 3 plugin. Can
anyone explain what is wrong and what needs to change or is this a bug?
This showed up with QGIS 3 version 2.99.0-245. In my code I have the
following:
canvasCrs = self.canvas.mapSettings().destinationCrs()
tran
Hi Andreas,
thanks for the testing. I'm suspecting that something is weird with my
data
thanks and sorry for the noise!
Cheers
Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinf
Hi Matteo,
Just tested on both Linux (latest master) and Windows (a bit older).
Both work fine with
round(7.34562, 2)
Result is as expected (7.35).
Andreas
On 22.12.2017 10:45, matteo wrote:
Hi devs,
I just compiled QGIS and it seems that the round function in the field
calculator is not w
Yep,
thanks Pedro
Cheers
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
An easy way to do so is to add the path to the QGIS python packages in a
PYTHONPATH env variable and the packages will be reachable from your virtual
env.
Another (better) to do so would be having QGIS package packaged as
pip/setuptools package so that they can be installed in any virtualenv -
Just a side question, can't we make a default constructor like the one in
qgis 2 and take the project instance context automatically in the
constructor itself?
Most of plugin writers won't know exactly what is the third parameter. And
it's better to always use the project context if I understand.
Le ven. 22 déc. 2017 à 04:39, Richard Duivenvoorde a
écrit :
> On 22-12-17 09:24, Richard Duivenvoorde wrote:
>
> >> crsTransform = QgsCoordinateTransform(crs2, crs)
>
> Just for reference, I think (but please correct me if otherwise) that
> for plugins this is then the easiest one?
>
> crsTr
Hi !
I always have trouble when I need to use QGIS/OSGeo's python environment
from outside of QGIS (e.g. setting up an IDE, running some custom scripts
that need access to the same libraries than QGIS, etc...). Suggested
solutions are to create some batch file, but I never really manage to make
th
Hi Matteo,
Seems similar to this one: https://issues.qgis.org/issues/6640 ?
2017-12-22 9:45 GMT+00:00 matteo :
> Hi devs,
>
> I just compiled QGIS and it seems that the round function in the field
> calculator is not working properly.
>
> Without any decimal number it works nice (round(7.34562
Hi devs,
I just compiled QGIS and it seems that the round function in the field
calculator is not working properly.
Without any decimal number it works nice (round(7.34562) -> 7) but when
specifying how many decimals have to be used (round(7.34562, 2) ->
7.34562) there are not taken into account
On 22-12-17 09:24, Richard Duivenvoorde wrote:
>> crsTransform = QgsCoordinateTransform(crs2, crs)
Just for reference, I think (but please correct me if otherwise) that
for plugins this is then the easiest one?
crsTransform = QgsCoordinateTransform(crs2, crs, QgsProject.instance())
as even
Ah, Thanks Etienne
ok. It is clear in the source indeed:
https://github.com/qgis/QGIS/blob/master/src/core/qgscoordinatetransform.h#L75
* \note Not available in Python bindings.
Beautifull docs in the source by the way!!!
What is plan/status to show this (also?) in the qgis.org/api docs?
I
22 matches
Mail list logo