Skip to content
Permalink
Browse files

spatial query: cosmetic changes and set svn keywords

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13377 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 25, 2010
1 parent 5c02949 commit 4a73983879f3db3d4e7334cb6b999330d835a910
@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include "qgsgeometrycoordinatetransform.h"

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */
#ifndef GEOMETRYCOORDINATETRANSFORM_H
#define GEOMETRYCOORDINATETRANSFORM_H

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include "qgsmngprogressbar.h"

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */
#ifndef QGSMNGPROGRESSBAR_H
#define QGSMNGPROGRESSBAR_H

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include <qgsvectordataprovider.h>

@@ -54,19 +54,15 @@ void QgsReaderFeatures::initReader( bool useSelection )
}
else
{
QgsAttributeList attListGeom;
int idGeom = 0;
attListGeom.append( idGeom );
mLayer->select( attListGeom, mLayer->extent(), true, false );
mLayer->select( QgsAttributeList() );
mFuncNextFeature = &QgsReaderFeatures::nextFeatureTotal;
}

} // void QgsReaderFeatures::initReader()

bool QgsReaderFeatures::nextFeatureTotal( QgsFeature & feature )
{
return mLayer->dataProvider()->nextFeature( feature );

return mLayer->nextFeature( feature );
} // bool QgsReaderFeatures::nextFeatureTotal ( QgsFeature & feature )

bool QgsReaderFeatures::nextFeatureSelected( QgsFeature & feature )
@@ -82,7 +78,4 @@ bool QgsReaderFeatures::nextFeatureSelected( QgsFeature & feature )
mIterSelectedFeature++;
}
return bReturn;

} // bool QgsReaderFeatures::nextFeatureSelected( QgsFeature &feature )


@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */
#ifndef READERFEATURES_H
#define READERFEATURES_H

@@ -16,7 +16,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include "qgsrubberselectid.h"

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#ifndef QGSRUBBERSELECTID_H
#define QGSRUBBERSELECTID_H
@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include <QMessageBox>

@@ -195,12 +195,8 @@ void QgsSpatialQuery::setSpatialIndexReference()
QgsReaderFeatures * readerFeaturesReference = new QgsReaderFeatures( mLayerReference, mUseReferenceSelection );
QgsFeature feature;
int step = 1;
while ( true )
while ( readerFeaturesReference->nextFeature( feature ) )
{
if ( ! readerFeaturesReference->nextFeature( feature ) )
{
break;
}
mPb->step( step++ );

if ( ! hasValidGeometry( feature ) )
@@ -293,7 +289,7 @@ void QgsSpatialQuery::populateIndexResult(
{
mLayerReference->featureAtId( *iterIdReference, featureReference );
geomReference = featureReference.geometry();
if (( geomTarget->*op )( geomReference ) == 1 )
if (( geomTarget->*op )( geomReference ) )
{
qsetIndexResult.insert( idTarget );
break;
@@ -321,7 +317,8 @@ void QgsSpatialQuery::populateIndexResultDisjoint(
{
mLayerReference->featureAtId( *iterIdReference, featureReference );
geomReference = featureReference.geometry();
if (( geomTarget->*op )( geomTarget ) == 0 )

if ( !( geomTarget->*op )( geomTarget ) )
{
addIndex = false;
break;
@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */
#ifndef SPATIALQUERY_H
#define SPATIALQUERY_H

@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#include <QMessageBox>
#include <QDateTime>
@@ -15,7 +15,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#ifndef SPATIALQUERYDIALOG_H
#define SPATIALQUERYDIALOG_H
@@ -16,7 +16,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */


//
@@ -16,7 +16,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: $ */
/* $Id$ */

#ifndef SPATIALQUERYPLUGIN_H
#define SPATIALQUERYPLUGIN_H

0 comments on commit 4a73983

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