地理信息系统开发工具GISDK使用手册英文版第一部分 WelcometoGISDKHelp.docx
《地理信息系统开发工具GISDK使用手册英文版第一部分 WelcometoGISDKHelp.docx》由会员分享,可在线阅读,更多相关《地理信息系统开发工具GISDK使用手册英文版第一部分 WelcometoGISDKHelp.docx(36页珍藏版)》请在冰点文库上搜索。
![地理信息系统开发工具GISDK使用手册英文版第一部分 WelcometoGISDKHelp.docx](https://file1.bingdoc.com/fileroot1/2023-6/16/4f104474-d8ec-4013-ba65-dbea95e6396f/4f104474-d8ec-4013-ba65-dbea95e6396f1.gif)
地理信息系统开发工具GISDK使用手册英文版第一部分WelcometoGISDKHelp
1Preface
TransCAD®,outofthebox,isaverypowerfulandversatilecomputerprogram.But,ifyouareanadvanceduseroraprogrammer,youmaywanttodomoreordifferentthingsthatareofferedbythestandarduserinterface.TheGeographicInformationSystemDeveloper’sKit(GISDK)providesyouwithatoolkitthatyoucanusetogetoutsidetheboxandcustomizeTransCADinanywayyoudesire.
GISDK(tm)isacollectionofsoftwaretoolsanddocumentationthatcomewithTransCADandmakeitpossibletoautomaterepetitiveTransCADtasks,createuserdesignedadd-ins,integrateotherprograms,orbuildcustomapplications.GISDKalsomakesitpossibletocalltheTransCADfunctionalityfromothersoftwareapplications.
TheprimarycomponentoftheGISDKisaprogramminglanguagecalledCaliperScript(tm).Thisisaneasy-to-learn,BASIC-likeprogramminglanguagethatprovidesawaytointeractwiththeTransCADprogramanddata.CaliperScriptisaprogramminglanguagethatispowerful,buteasytouse.Itismoreflexibleandpowerfulthatthelanguagesprovidedwithothertransportationsoftware.AlsocodewritteninotherlanguagessuchasCorFORTRANcanbeintermixedwithGISDKprogramswritteninCaliperScript,facilitatingcompatibilitywithexistingsoftware.
TheprimaryuseoftheCaliperScriptistointeractwithTransCAD.ThereareoveronethousandGISDKfunctionsinTransCAD,allofwhichcanbecalledfromCaliperScript.Thesefunctionsgiveusersawidevarietyoftoolsthatrangefrommanagingmapsanddisplaycharacteristicstocreating,accessing,updatingandanalyzingdataanddatastructures,includingmatricesandnetworks.Inaddition,theGISDKfunctionscanbecalledusingWindowsAutomation,sinceTransCADcanactasbothanAutomationServerandClient.TransCADfortheWebusesthiswaytowritecodethatcanberunbyawebbrowserandcallTransCADtoprovidemaps,drivingdirectionsandotherservices.CaliperScriptalsoprovidesthecapabilitytoprogramcomplete,customWindowsinterfacesforTransCADapplications.
CaliperScript,inturn,issupportedbythreecomponents:
acompiler,adebuggerandatoolboxforinteractingwiththecompileranddebugger.TheGISDKCompilertakestheCaliperScriptcodeandcreatesaUIDatabasethatcanberunwiththeTransCADplatform.Anyerrorsinthecodewillbereportedbythecompiler,withdetailsaboutthetypeandlocationoftheerror.TheGISDKDebuggerrunstheCaliperScriptcodeintestingmodetomakesurethattherearenoerrors,suchaserrorsinlogicorvariablehandling.Ifthecodedoesnotbehaveasexpected,thedebuggerallowstheusertosetbreakpointsortostepthroughthecodeonelineatatime,tomakesurethatthecodeisexecutingasexpected.TheGISDKToolboxnotonlyhasbuttonstorunthecompilerandthedebuggerbutalsohastoolstomakeinteractingwiththeprogramfasterandeasier.
TheGISDKforStandardTransCADhastwoadditionalcomponents.ThefirstisBatchMode,whichisasimplerwayofautomatingtransportationanalysis.ThesecondistheabilitytoaccessTransCADMatrixDLLsdirectlyfromCandFORTRAN.TheMatrixDLLsareprovidedforVisualCandCompaqVisualFORTRAN.Forrunningtraveldemandapplicationsandforsomeroutingandlogisticsprocedures,TransCADhasaBatchModecapabilitythatmakesiteasytocreateautomatedmodelruns.CaliperprovidesthesourcecodeforthebatchmodelscriptsandTransCADhasatoolforgeneratingthescriptsinteractively.Thisgreatlyreducesthepossibilityoferrorenteringthemodelapplicationscripts.Thescriptscanbeeasilymodifiedbyusersandconsultants.Also,itiseasytoaugmentthescriptswithadditionalfunctionssuchasproducingspecificmapsorreports.
Formoreinformation,see:
AboutYou
AbouttheBookandthisOn-LineHelp
OtherGISDKResources
LicensingofGISDKAdd-InsandApplications
GISDKVersions
IfYouNeedMoreHelp
AboutYou
WemadeseveralassumptionsaboutyouwhenweputtheGISDKProgrammer’sGuideandOn-LineHelptogether:
∙YouareafrequentuserofTransCADandarefamiliarwiththetermsandconceptscoveredintheUser’sGuide.IfyouwishtouseBatchMode,whichispartofStandardTransCAD,youshouldalsobefamiliarwiththetermsandconceptscoveredintheTravelDemandModelingUser’sGuide.
∙Youhavesomebasicknowledgeandexperienceinprogramming,eitherinBasic,VisualBasic,C,orsomeotherlanguage.
∙YouwanttoautomateorcustomizeTransCADtohelpyouaccomplishyourworkmoreefficiently,ortoprovideassistancetootherusers.
∙Youwanttogetstartedquickly,withoutweeksoftrainingorhardwork.
AbouttheBookandthisOn-LineHelp
TheGISDKProgrammer’sGuidegivesyoutheessentialbackgroundinformationthatyouneedtostartusingGISDK.ThefullGISDKdocumentationisprovidedelectronicallyaspartofthisOn-LineHelpsystem.ThiscomprehensiveOn-LineHelpsystemgivesyoudetailedbackground,instructions,acompletelistingoftheGISDKfunctions,andsamplesinaclearandconciselayout.Together,theGISDKProgrammer’sGuideandthisOn-LineHelpsystemdescribeeverythingyouneedtoknowtostartusingGISDK.IntheGISDKProgrammer’sGuide:
Chapter1,Introduction,providesanintroductiontoGISDKandanoverviewofitscapabilities,alongwithinstructionsforstartingtheGISDKToolboxandtheGISDKDebugger.
Chapter2,QuickStart,providesaconciseoverviewofhowyouuseGISDKtobuildapplicationstoautomaterepetativetasks.Ifyouareanexperienceddeveloper,thischapterprovidesmostoftheinformationyouneedtogetstarted.Ifyouarelessexperiencedatsoftwareandapplicationdevelopment,itwillgiveyouagoodoverviewoftheprocessandafeelforhowthelanguageworks.
Chapter3,GISDKMechanics,describesthetoolsthatcomewithGISDK,includingtheGISDKToolboxandtheGISDKDebugger,andhowyouusethesetoolstowriteanddevelopadd-insandcustomapplications,andaccessTransCADasanapplicationserver.
Inaddition,thisOn-LineHelpsystemcontainscomprehensiveinformationoncallingGISDKfunctions,oncreatingGISDKmacros,andonotherGISDKapplications.ThisOn-LineHelpsystemincludesacompletelistingoftheGISDKfunctions.TheadditionalsectionsinthisOn-LineHelpforGISDKinclude:
∙CommonCallingConventions:
standardsthatareusedforargumentsinGISDKfunctions
∙UsingGISDKFunctions:
overviewsofGISDKfunctionsbytopic,includingwindows,maps,layers,editors,tables,andviews
∙UsingProjectionsandCoordinateSystems:
detailsonsettingamap'sprojectionorcoordinatesystem,includingunits,ellipsoids,datums,andtransformations
∙ListingofGISDKFunctions:
individualdescriptionsoftheGISDKfunctions,includingsyntax,returnvalues,andexamples
∙GISDKMechanics:
thecompilationtoolsthatcomewithGISDKandhowyouusethemtowriteanddevelopadd-insandcustomapplications,howtousethedebuggertohelpyoufindandfixruntimeproblemsinyourGISDKmacros,andhowtoaccessTransCADasanAutomationServer
∙LanguageElements:
thesyntax,organization,andelementsoftheCaliperScriptlanguage
∙Resources:
introductiontoandexplanationoftheformatandstructureoftheresourcefilesthatcontainyouradd-inorcustomapplication
∙StandardInterfaceMacros:
alistingofmacrosinthestandardinterfaceusefulincustomapplicationsforclosingfiles,settingstyles,andothertasks,plusgeocodingandothermacros
BatchMode,whichcomeswithStandardTransCAD,isaneasywaytocreateandrunplanningmodelsasasetofCaliperScriptmacros,aswellastorunsomeoftheroutingandlogisticsprocedures.BatchModefortransportationplanningisdescribedintheTravelDemandModelingwithTransCADUser'sGuideandintheon-lineHelpforPlanning.BatchModeforroutingandlogisiticsproceduresisdescribedintheRoutingandLogisticswithTransCADUser'sGuideandintheon-lineHelpforRouting.
IfyouhavepurchasedTransCADfortheWeb,theTransCADfortheWebUser'sGuideandtheon-lineHelpforTransCADfortheWebexplainhowtouseGISDKfunctionsandGISDKmacrosinwebmappingapplications.
OtherGISDKResources
TheGISDKProgrammer’sGuideandOn-LineHelpgivesomeexamplesofhowyoucanuseGISDK.MoreexamplesareavailableontheCaliperCorporationwebsite(YouarefreetoadoptandadapttheseCaliperScriptandAutomationServerexamplestomeetyourownneeds.Youarealsoencouragedtocontributetothegrowinglistofexamples,sothatotherscanbenefit.
LicensingofGISDKAdd-InsandApplications
GISDKenablesyoutocreateadd-ins,customapplications,orAutomationServers.GISDKalsomakesitpossibleforthirdpartiestocreateanddistributeadd-insandcustomapplications.WeexpectthatmanyGISDKuserswillfallintooneofthreeclasses:
∙IndividualuserswhowanttoautomateorsimplifytaskstheyroutinelyperformwithTransCAD
∙Internalsystemsstaffwhodevelopadd-insandapplicationstobeusedbyotherswithintheirorganization
∙Developers,resellers,andconsultantswhouseTransCADalongwithGISDKtoprovidecustomend-usersolutions
CaliperCorporationoffersadditionaltechnologyforthecreationanddistributionofrun-timeversionsofcustomapplications.Thistechnologyenablesustocreateforyouacompletestand-aloneprogram(onethatdoesnotneedtheTransCADprogramfiles)thatincorporatesalltherequiredGISfunctionalityforyourapplication.Run-timelicensinginvolvesthepaymentofaprocessingfeeplustechnologylicensefeesthatarenegotiatedonacase-by-casebasis.
Whenyoudevelopanadd-inorcustomapplicationusingGISDK,theproductisauseri