資源簡介
GDAL的ogr2ogr可執行程序的一個GUI版本,采用的是qt界面,包含源代碼和可執行程序,大家可以下載學習一下

代碼片段和文件信息
/*****************************************************************************
?* ogr2gui?is?an?application?used?to?convert?and?manipulate?geospatial
?* data.?It?is?based?on?the?“OGR?Simple?Feature?Library“?from?the?
?* “Geospatial?Data?Abstraction?Library“?.
?*
?* Copyright?(c)?2009?Inventis?
?*
?* This?program?is?free?software:?you?can?redistribute?it?and/or?modify
?* it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
?* the?Free?Software?Foundation?either?version?3?of?the?License?or
?* (at?your?option)?any?later?version.
?*
?* This?program?is?distributed?in?the?hope?that?it?will?be?useful
?* but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?* MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?* GNU?General?Public?License?for?more?details.
?*
?* You?should?have?received?a?copy?of?the?GNU?General?Public?License
?* along?with?this?program.??If?not?see?
?*****************************************************************************/
/*!
?* \file?App.cpp
?* \brief?Qt?Application
?* \author?Olivier?Pilotte?[?Inventis?]?Mohamed?Hedi?Lassoued?[?Inventis?]
?* \version?0.6
?* \date?27/10/09
?*/
#include?“../inc/App.h“
App::App(?QWidget?*widget?)?:?QMainWindow(?widget?)
{
InitData();
InitInterface();
TranslateInterface();
InitProjections();
UpdateParameters();
}
App::~App(?void?)
{
delete?[]?*formats;
delete?[]?*databases;
delete?[]?*projections;
}
void?App::InitData(?void?)
{
ogr?=?new?Ogr();
formats?=?new?QString?*?[?formatsCount?];
for(?int?i?=?0;?i? {
formats[?i?]?=?new?QString[?2?];
}
databases?=?new?QString?*?[?databasesCount?];
for(?int?i?=?0;?i?sesCount;?i?++?)
{
databases[?i?]?=?new?QString[?2?];
}
projections?=?new?QString*[?projectionsCount?];
for(?int?i?=?0;?i? {
projections[?i?]?=?new?QString[?2?];
}
#include?“../inc/Dta.h“
}
void?App::InitProjections(?void?)
{
QString?prj;
cmbTargetProj->addItem(?tr(?““?)?);
for(?int?i?=?1;?i? {
prj.clear();
prj?=?projections[?i?][?0?];
prj.append(?tr(?“?:?“?)?);
prj.append(?projections[?i?][?1?]?);
cmbTargetProj->addItem(?prj?);
}
}
void?App::InitInterface(?void?)
{
thePanel?=?new?QWidget();
inf?=?new?Inf(?this?);
InitMenu();
InitLayout();
InitSlots();
radSourceFile->setChecked(?true?);
radTargetFile->setChecked(?true?);
radTargetOverwrite->setChecked(?true?);
btnExecute->setEnabled(?false?);
this->setCentralWidget(?thePanel?);
this->show();
}
void?App::InitMenu(?void?)
{
theMenu?=?new?QMenuBar(?this?);
{
fileMenu?=?new?QMenu(?theMenu?);
{
mnuQuit?=?new?QAction(?this?);
fileMenu->addAction(?mnuQuit?);
}
helpMenu?=?new?QMenu(?theMenu?);
{
mnuOgrHe
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2359296??2009-06-17?10:18??ogr2guiExe&&DLL\libmySQL.dll
?????文件?????168182??2009-10-14?14:31??ogr2guiExe&&DLL\libpq.dll
?????文件????????733??2009-11-01?01:31??ogr2guiExe&&DLL\ogr2gui-0.6\BUILDING
?????文件????????603??2009-10-27?23:41??ogr2guiExe&&DLL\ogr2gui-0.6\config.h
?????文件??????32473??2009-08-23?16:59??ogr2guiExe&&DLL\ogr2gui-0.6\COPYING
?????文件???????1734??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\annotated.html
?????文件???????2386??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\classes.html
?????文件??????23137??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_app-members.html
?????文件??????36152??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_app.html
?????文件??????10040??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_inf-members.html
?????文件??????16398??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_inf.html
?????文件???????6608??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_ogr-members.html
?????文件??????22645??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\class_ogr.html
?????文件???????2862??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\config_8h_source.html
?????文件???????6619??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\doxygen.css
?????文件???????1281??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\doxygen.png
?????文件???????3074??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\files.html
?????文件???????4188??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\functions.html
?????文件???????4105??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\functions_func.html
?????文件???????1865??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\index.html
?????文件??????13377??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\moc___app_8cpp_source.html
?????文件???????8568??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\moc___inf_8cpp_source.html
?????文件???????1844??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\tabs.css
?????文件?????????35??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\tab_b.gif
?????文件????????706??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\tab_l.gif
?????文件???????2585??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\tab_r.gif
?????文件???????2376??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\_app_8cpp.html
?????文件??????81572??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\_app_8cpp_source.html
?????文件???????2384??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\_app_8h.html
?????文件??????21117??2009-11-01?01:37??ogr2guiExe&&DLL\ogr2gui-0.6\doc\html\_app_8h_source.html
............此處省略34個文件信息
評論
共有 條評論