QGIS-2.8-PyQGISDeveloperCookbook-en(8)
时间:2025-03-11
时间:2025-03-11
为开发人员准备的文档,涵盖QGIS的多种功能实现和代码。
onWindows:setPATH=C:\qgispath;%PATH%
Thesecommandscanbeputintoabootstrapscriptthatwilltakecareofthestartup.Whendeployingcustom
applicationsusingPyQGIS,thereareusuallytwopossibilities:
requireusertoinstallQGISonhisplatformpriortoinstallingyourapplication.Theapplicationinstaller
shouldlookfordefaultlocationsofQGISlibrariesandallowusertosetthepathifnotfound.Thisapproach
hastheadvantageofbeingsimpler,howeveritrequiresusertodomoresteps.
packageQGIStogetherwithyourapplication.Releasingtheapplicationmaybemorechallengingandthe
packagewillbelarger,buttheuserwillbesavedfromtheburdenofdownloadingandinstallingadditional
piecesofsoftware.
Thetwodeploymentmodelscanbemixed-deploystandaloneapplicationonWindowsandMacOSX,forLinux
leavetheinstallationofQGISuptouserandhispackagemanager.