Skip to content
Permalink
Browse files

fix for #1095

git-svn-id: http://svn.osgeo.org/qgis/trunk@12738 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Jan 11, 2010
1 parent f7d90c6 commit 5b662acefb538e7832f64c08e1e6d5ab9de4d93a
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/providers/grass/qgsgrassprovider.cpp
@@ -491,8 +491,11 @@ void QgsGrassProvider::select( QgsAttributeList fetchAttributes,

Polygon = Vect_new_line_struct();

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

0 comments on commit 5b662ac

Please sign in to comment.
You can’t perform that action at this time.