Removed hard coded graticule size. Plugin now working.

git-svn-id: http://svn.osgeo.org/qgis/trunk@1162 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-04-06 08:51:58 +00:00
parent ec6ca1501d
commit 5a92da233b
5 changed files with 1221 additions and 1016 deletions

View File

@ -135,7 +135,6 @@ void GraticuleCreator::generateGraticule(DBFHandle theDbfHandle, SHPHandle theSh
//
//Latitude loop
//
myRecordInt=0;
for (double myYDouble=-90.0;myYDouble<=90.0;myYDouble+=theYIntervalDouble)
{

View File

@ -39,7 +39,7 @@ void PluginGui::pbnOK_clicked()
{
//check input file exists
//
GraticuleCreator * myGraticuleCreator = new GraticuleCreator(leOutputShapeFile->text(),1,1);
GraticuleCreator * myGraticuleCreator = new GraticuleCreator(leOutputShapeFile->text(),spinLongInterval->value(),spinLatInterval->value());
//
// If you have a produced a raster layer using your plugin, you can ask qgis to
// add it to the view using:
@ -49,7 +49,7 @@ void PluginGui::pbnOK_clicked()
//
delete myGraticuleCreator;
emit drawVectorLayer(leOutputShapeFile->text(),QString("Waypoints"),QString("ogr"));
emit drawVectorLayer(leOutputShapeFile->text(),QString("Graticule"),QString("ogr"));
//close the dialog
done(1);
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Form interface generated from reading ui file 'pluginguibase.ui'
**
** Created: Mon Apr 5 16:14:45 2004
** Created: Tue Apr 6 10:12:02 2004
** by: The User Interface Compiler ($Id$)
**
** WARNING! All changes made in this file will be lost!

File diff suppressed because one or more lines are too long