On 26 May 2017 at 07:37, Nyall Dawson <nyall.daw...@gmail.com> wrote:
> On 26 May 2017 at 07:25, Tobias Wendorff <tobias.wendo...@tu-dortmund.de> 
> wrote:
>> Am Do, 25.05.2017, 22:39 schrieb Redoute:
>> <http://qgis.org/api/2.18/classQgsDistanceArea.html#a9877c70b2a9c90e89cf7211fb82176b1>
>>
>> Oops, there it is:
>> QgsDistanceArea::ellipsoidSemiMajor
>> QgsDistanceArea::ellipsoidSemiMinor
>>
>
> Looks like there's a fix for this in 3.0 already - I'll backport now.

Ok - here's the correct fix:
https://github.com/qgis/QGIS/commit/7e089a1c01c3996a43a90c79caa6fb549a737bdd

You were very close - the tricky part here is reading the project
ellipsoid setting. That's not an easy thing to do in QGIS 2.x

The equivalent fix in 3.0 looks like:
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/qgis/HubDistancePoints.py#L118

(This part of the API has been cleaned up a lot!)

Nyall
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to