File tree Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Expand file tree Collapse file tree 3 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ General purpose distance and area calculator.
32
32
Constructor
33
33
%End
34
34
35
- QgsDistanceArea( const QgsDistanceArea &origDA );
36
- %Docstring
37
- Copy constructor
38
- %End
39
-
40
- // QgsDistanceArea &operator=( const QgsDistanceArea &origDA );
41
-
42
35
void setEllipsoidalMode( bool flag );
43
36
%Docstring
44
37
Sets whether coordinates must be projected to ellipsoid before measuring
Original file line number Diff line number Diff line change @@ -55,40 +55,6 @@ QgsDistanceArea::QgsDistanceArea()
55
55
setEllipsoid ( GEO_NONE );
56
56
}
57
57
58
-
59
- QgsDistanceArea::QgsDistanceArea ( const QgsDistanceArea &origDA )
60
- {
61
- _copy ( origDA );
62
- }
63
-
64
- QgsDistanceArea &QgsDistanceArea::operator =( const QgsDistanceArea &origDA )
65
- {
66
- if ( this == & origDA )
67
- {
68
- // Do not copy unto self
69
- return *this ;
70
- }
71
- _copy ( origDA );
72
- return *this ;
73
- }
74
-
75
- // ! Copy helper. Avoid Sqlite3 accesses.
76
- void QgsDistanceArea::_copy ( const QgsDistanceArea &origDA )
77
- {
78
- mEllipsoidalMode = origDA.mEllipsoidalMode ;
79
- mEllipsoid = origDA.mEllipsoid ;
80
- mSemiMajor = origDA.mSemiMajor ;
81
- mSemiMinor = origDA.mSemiMinor ;
82
- mInvFlattening = origDA.mInvFlattening ;
83
- if ( ( mSemiMajor > 0 ) && ( mSemiMinor > 0 ) )
84
- {
85
- // Some calculations and trig. Should not be TOO time consuming.
86
- // Alternatively we could copy the temp vars?
87
- computeAreaInit ();
88
- }
89
- mCoordTransform = origDA.mCoordTransform ;
90
- }
91
-
92
58
void QgsDistanceArea::setEllipsoidalMode ( bool flag )
93
59
{
94
60
mEllipsoidalMode = flag;
Original file line number Diff line number Diff line change @@ -42,12 +42,6 @@ class CORE_EXPORT QgsDistanceArea
42
42
// ! Constructor
43
43
QgsDistanceArea ();
44
44
45
- // ! Copy constructor
46
- QgsDistanceArea ( const QgsDistanceArea &origDA );
47
-
48
- // ! Assignment operator
49
- QgsDistanceArea &operator =( const QgsDistanceArea &origDA );
50
-
51
45
/* * Sets whether coordinates must be projected to ellipsoid before measuring
52
46
* \note for calculations to use the ellipsoid, both the ellipsoid mode must be true
53
47
* and an ellipse must be set
@@ -340,9 +334,6 @@ class CORE_EXPORT QgsDistanceArea
340
334
Length
341
335
};
342
336
343
- // ! Copy helper
344
- void _copy ( const QgsDistanceArea &origDA );
345
-
346
337
// ! used for transforming coordinates from source CRS to ellipsoid's coordinates
347
338
QgsCoordinateTransform mCoordTransform ;
348
339
You can’t perform that action at this time.
0 commit comments