Skip to content

Commit d69d9fa

Browse files
author
jef
committedApr 25, 2010
spatial query: cosmetic changes and set svn keywords
git-svn-id: http://svn.osgeo.org/qgis/trunk@13377 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9b1f6ff commit d69d9fa

14 files changed

+20
-30
lines changed
 

‎src/plugins/spatialquery/qgsgeometrycoordinatetransform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#include "qgsgeometrycoordinatetransform.h"
2121

‎src/plugins/spatialquery/qgsgeometrycoordinatetransform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919
#ifndef GEOMETRYCOORDINATETRANSFORM_H
2020
#define GEOMETRYCOORDINATETRANSFORM_H
2121

‎src/plugins/spatialquery/qgsmngprogressbar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#include "qgsmngprogressbar.h"
2121

‎src/plugins/spatialquery/qgsmngprogressbar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919
#ifndef QGSMNGPROGRESSBAR_H
2020
#define QGSMNGPROGRESSBAR_H
2121

‎src/plugins/spatialquery/qgsreaderfeatures.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#include <qgsvectordataprovider.h>
2121

@@ -54,19 +54,15 @@ void QgsReaderFeatures::initReader( bool useSelection )
5454
}
5555
else
5656
{
57-
QgsAttributeList attListGeom;
58-
int idGeom = 0;
59-
attListGeom.append( idGeom );
60-
mLayer->select( attListGeom, mLayer->extent(), true, false );
57+
mLayer->select( QgsAttributeList() );
6158
mFuncNextFeature = &QgsReaderFeatures::nextFeatureTotal;
6259
}
6360

6461
} // void QgsReaderFeatures::initReader()
6562

6663
bool QgsReaderFeatures::nextFeatureTotal( QgsFeature & feature )
6764
{
68-
return mLayer->dataProvider()->nextFeature( feature );
69-
65+
return mLayer->nextFeature( feature );
7066
} // bool QgsReaderFeatures::nextFeatureTotal ( QgsFeature & feature )
7167

7268
bool QgsReaderFeatures::nextFeatureSelected( QgsFeature & feature )
@@ -82,7 +78,4 @@ bool QgsReaderFeatures::nextFeatureSelected( QgsFeature & feature )
8278
mIterSelectedFeature++;
8379
}
8480
return bReturn;
85-
8681
} // bool QgsReaderFeatures::nextFeatureSelected( QgsFeature &feature )
87-
88-

‎src/plugins/spatialquery/qgsreaderfeatures.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919
#ifndef READERFEATURES_H
2020
#define READERFEATURES_H
2121

‎src/plugins/spatialquery/qgsrubberselectid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* (at your option) any later version. *
1717
* *
1818
***************************************************************************/
19-
/* $Id: $ */
19+
/* $Id$ */
2020

2121
#include "qgsrubberselectid.h"
2222

‎src/plugins/spatialquery/qgsrubberselectid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#ifndef QGSRUBBERSELECTID_H
2121
#define QGSRUBBERSELECTID_H

‎src/plugins/spatialquery/qgsspatialquery.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#include <QMessageBox>
2121

@@ -195,12 +195,8 @@ void QgsSpatialQuery::setSpatialIndexReference()
195195
QgsReaderFeatures * readerFeaturesReference = new QgsReaderFeatures( mLayerReference, mUseReferenceSelection );
196196
QgsFeature feature;
197197
int step = 1;
198-
while ( true )
198+
while ( readerFeaturesReference->nextFeature( feature ) )
199199
{
200-
if ( ! readerFeaturesReference->nextFeature( feature ) )
201-
{
202-
break;
203-
}
204200
mPb->step( step++ );
205201

206202
if ( ! hasValidGeometry( feature ) )
@@ -293,7 +289,7 @@ void QgsSpatialQuery::populateIndexResult(
293289
{
294290
mLayerReference->featureAtId( *iterIdReference, featureReference );
295291
geomReference = featureReference.geometry();
296-
if (( geomTarget->*op )( geomReference ) == 1 )
292+
if (( geomTarget->*op )( geomReference ) )
297293
{
298294
qsetIndexResult.insert( idTarget );
299295
break;
@@ -321,7 +317,8 @@ void QgsSpatialQuery::populateIndexResultDisjoint(
321317
{
322318
mLayerReference->featureAtId( *iterIdReference, featureReference );
323319
geomReference = featureReference.geometry();
324-
if (( geomTarget->*op )( geomTarget ) == 0 )
320+
321+
if ( !( geomTarget->*op )( geomTarget ) )
325322
{
326323
addIndex = false;
327324
break;

‎src/plugins/spatialquery/qgsspatialquery.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919
#ifndef SPATIALQUERY_H
2020
#define SPATIALQUERY_H
2121

‎src/plugins/spatialquery/qgsspatialquerydialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#include <QMessageBox>
2121
#include <QDateTime>

‎src/plugins/spatialquery/qgsspatialquerydialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* (at your option) any later version. *
1616
* *
1717
***************************************************************************/
18-
/* $Id: $ */
18+
/* $Id$ */
1919

2020
#ifndef SPATIALQUERYDIALOG_H
2121
#define SPATIALQUERYDIALOG_H

‎src/plugins/spatialquery/qgsspatialqueryplugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* (at your option) any later version. *
1717
* *
1818
***************************************************************************/
19-
/* $Id: $ */
19+
/* $Id$ */
2020

2121

2222
//

‎src/plugins/spatialquery/qgsspatialqueryplugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* (at your option) any later version. *
1717
* *
1818
***************************************************************************/
19-
/* $Id: $ */
19+
/* $Id$ */
2020

2121
#ifndef SPATIALQUERYPLUGIN_H
2222
#define SPATIALQUERYPLUGIN_H

0 commit comments

Comments
 (0)
Please sign in to comment.