File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -196,21 +196,6 @@ std::unique_ptr< QgsMultiPolygonV2 > QgsGeometryFactory::fromMultiPolygon( const
196
196
return mp;
197
197
}
198
198
199
- std::unique_ptr<QgsPolygonV2> QgsGeometryFactory::fromRect ( const QgsRectangle &rect )
200
- {
201
- QgsPolyline ring;
202
- ring.append ( QgsPointXY ( rect.xMinimum (), rect.yMinimum () ) );
203
- ring.append ( QgsPointXY ( rect.xMaximum (), rect.yMinimum () ) );
204
- ring.append ( QgsPointXY ( rect.xMaximum (), rect.yMaximum () ) );
205
- ring.append ( QgsPointXY ( rect.xMinimum (), rect.yMaximum () ) );
206
- ring.append ( QgsPointXY ( rect.xMinimum (), rect.yMinimum () ) );
207
-
208
- QgsPolygon polygon;
209
- polygon.append ( ring );
210
-
211
- return fromPolygon ( polygon );
212
- }
213
-
214
199
std::unique_ptr<QgsLineString> QgsGeometryFactory::linestringFromPolyline ( const QgsPolyline &polyline )
215
200
{
216
201
QVector< double > x;
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ class CORE_EXPORT QgsGeometryFactory
73
73
static std::unique_ptr<QgsPolygonV2> fromPolygon ( const QgsPolygon &polygon );
74
74
// ! Construct geometry from a multipolygon
75
75
static std::unique_ptr<QgsMultiPolygonV2> fromMultiPolygon ( const QgsMultiPolygon &multipoly );
76
- // ! Construct geometry from a rectangle
77
- static std::unique_ptr<QgsPolygonV2> fromRect ( const QgsRectangle &rect );
78
76
// ! Return empty geometry from wkb type
79
77
static std::unique_ptr< QgsAbstractGeometry > geomFromWkbType ( QgsWkbTypes::Type t );
80
78
You can’t perform that action at this time.
0 commit comments