19 Commits

Author SHA1 Message Date
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00
Nyall Dawson
7b664ea9a8 Fix see also link 2019-01-12 05:31:00 +10:00
Nyall Dawson
021f5ea366 [needs-docs][api] Rename QgsDistanceArea methods to change "date line"
to "antimeridian"

Because the date line =/= +/-180 degree longitude, which is what
we were incorrectly using it to mean.
2019-01-12 05:31:00 +10:00
Nyall Dawson
a8bd12c4e3 [FEATURE][API] Add method to QgsDistanceArea to split a (multi)line geometry
at the antimeridian

Whenever line segments in the input geometry cross the antimeridian, they
will be split into two segments, with the latitude of the breakpoint being
determined using a geodesic line connecting the points either side of this
segment.

If the geometry contains M or Z values, these will be linearly interpolated
for the new vertices created at the antimeridian.
2019-01-12 05:31:00 +10:00
Nyall Dawson
eaad71e0c9 Tweak API
Better to use QVector here, because the QgsLineString/QgsGeometry
methods all use QVector too, and we want to avoid unnecessary
list->vector conversions.
2019-01-08 19:48:15 +10:00
Nyall Dawson
13ac907198 latitudeGeodesicCrossesDateLine also returns fraction of segment
along which the crossing occurs
2019-01-08 12:32:50 +10:00
Nyall Dawson
adc5c17456 Expose method for calculating latitude geodesic crosses date line to public QgsDistanceArea API 2019-01-08 12:32:50 +10:00
Nyall Dawson
ebd104466e Add method to retrieve destination CRS from QgsDistanceArea 2019-01-08 12:32:50 +10:00
Nyall Dawson
fdea61a97c Add method to calculate the geodesic line joining two points to QgsDistanceArea
Using geographiclib to calculate the line
2019-01-08 12:32:50 +10:00
Juernjakob Dugge
c09b379fc7 Rename member variables, remove "forceCartesian" arguments 2019-01-08 09:36:33 +10:00
Juernjakob Dugge
bf5a077e33 Fix typos 2019-01-08 09:36:33 +10:00
Juernjakob Dugge
3e05c99c11 Add centimeter and millimeter based units to Project Properties and Map Tools Options
Fix the "map units" option in distance measurements when using geographic coordinate systems
2019-01-08 09:36:33 +10:00
Denis Rouzaud
166e952c33 run sipify 2018-12-19 08:04:27 -04:00
Denis Rouzaud
edfb7e1465 run sipify 2018-12-18 17:17:25 -04:00
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08:00
Nyall Dawson
4b1b752633 Fix bad regex 2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00