Skip to content

Commit 15e7940

Browse files
author
rblazek
committed
fix for #1095
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12738 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ea08ee4 commit 15e7940

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/providers/grass/qgsgrassprovider.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,11 @@ void QgsGrassProvider::select( QgsAttributeList fetchAttributes,
491491

492492
Polygon = Vect_new_line_struct();
493493

494-
Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), 0 );
495-
Vect_append_point( Polygon, rect.xMaximum(), rect.yMinimum(), 0 );
494+
// Using z coor -PORT_DOUBLE_MAX/PORT_DOUBLE_MAX we cover 3D, Vect_select_lines_by_polygon is
495+
// using dig_line_box to get the box, it is not perfect, Vect_select_lines_by_polygon
496+
// should clarify better how 2D/3D is treated
497+
Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), -PORT_DOUBLE_MAX );
498+
Vect_append_point( Polygon, rect.xMaximum(), rect.yMinimum(), PORT_DOUBLE_MAX );
496499
Vect_append_point( Polygon, rect.xMaximum(), rect.yMaximum(), 0 );
497500
Vect_append_point( Polygon, rect.xMinimum(), rect.yMaximum(), 0 );
498501
Vect_append_point( Polygon, rect.xMinimum(), rect.yMinimum(), 0 );

0 commit comments

Comments
 (0)