Beginning of GIST index implementation for spit

git-svn-id: http://svn.osgeo.org/qgis/trunk@2382 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-12-01 03:53:40 +00:00
parent 8061b19d09
commit bbbdc11dee
3 changed files with 8 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void QgsDelimitedTextPluginGui::updateFieldLists()
// clear the sample text box
txtSample->clear();
// put the header row in the sample box
txtSample->insert(line + "\n");
txtSample->insert(line + "\n");
// put a few more lines into the sample box
int counter = 0;
while((line=stream.readLine()) && (counter < 20))

View File

@ -246,6 +246,12 @@ bool QgsShapeFile::insertLayer(QString dbname, QString schema, QString geom_col,
delete feat;
}
}
// create the GIST index if the the load was successful
if(result)
{
// prompt user to see if they want to build the index and warn
// them about the potential time-cost
}
ogrLayer->ResetReading();
return result;
}

View File

@ -123,6 +123,7 @@ void QgsGraduatedSymRenderer::readXML(const QDomNode& rnode, QgsVectorLayer& vl)
{
QDomNode classnode = rnode.namedItem("classificationfield");
int classificationfield = classnode.toElement().text().toInt();
this->setClassificationField(classificationfield);
QDomNode rangerendernode = rnode.namedItem("rangerenderitem");