Skip to content
Permalink
Browse files
Fix for the problem where the attribute table of delimited text layer…
…s just showed the visible features

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5714 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 21, 2006
1 parent 75cd4b7 commit dea3bc99c159bb56e8a7292f80c3387342fb8732
Showing with 8 additions and 4 deletions.
  1. +5 −4 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
  2. +3 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -525,10 +525,6 @@ void QgsDelimitedTextProvider::select(QgsRect * rect, bool useIntersect)
// We store the rect and use it in getNextFeature to determine if the
// feature falls in the selection area
mSelectionRectangle = new QgsRect((*rect));
// Select implies an upcoming feature read so we reset the data source
reset();
// Reset the feature id to 0
mFid = 0;
}


@@ -628,6 +624,11 @@ void QgsDelimitedTextProvider::reset()
// the header record
mStream->seek(0);
mStream->readLine();
//reset any spatial filters
if(mSelectionRectangle && mExtent)
{
*mSelectionRectangle = *mExtent;
}
}

QString QgsDelimitedTextProvider::minValue(int position)
@@ -1027,6 +1027,9 @@ bool QgsOgrProvider::addFeature(QgsFeature* f)
}
}

//todo: choose i such that it doesn't get larger than fdef->GetFieldCount()
//todo: only add the attribute if it has the same name as fdef->GetFieldDefn(i)->GetNameRef()

//add possible attribute information
for(int i=0;i<f->attributeMap().size();++i)
{

0 comments on commit dea3bc9

Please sign in to comment.