ARCGIS最短路径 VB代码 - 图文 联系客服

发布时间 : 星期日 文章ARCGIS最短路径 VB代码 - 图文更新完毕开始阅读78db131c0a4e767f5acfa1c7aa00b52acfc79cf0

毕业设计(论文)专用纸frommanysourcestoasingledestination.Iftheshortestpathbetweenanytwopointsisastraightline,thentheleast-costpathisthepathofleastresistance.Least-costpathanalysisusesthecostweighteddistanceanddirectionsurfacesforanareatodetermineacosteffectiveroutebetweenasourceandadestination.CriteriaforAnalysis:

Acostpathconsistsofsequentiallyconnectedlinksthatprovidetherouteforeachcelllocationtoreachasourcecell.Acostpathdistance(orcostdistance)fromanycelltoasourcecellistheaccumulativecostofalllinksalongthepathforthecelltoreachthesourcecells.Therearemanypossiblepathstoreacheachsourcecell,andtherearemanypathstoreachthemanysourcecells.Thereisoneleast-costpath,dependinguponthemodelcriteria.TofindtheleastcostpathforaproposedroutepipelinebetweentwoSabkhasinShaybahfield(SabkhaA&SabkhaB).Todothatwewillhavetokeeptheconstructioncostdown,minimizingsluggingandbackpressureofoilandalsoavoidsurfacefacilities.Thefollowingobjectivesaretobeconsidered;Theleast-costpathshouldbeprimarilycomposedoflandwithashallowslopebecausesteepterrainwillincreasetheoperatingcost.Thelongerthepath,thehighertheconstructioncosts;therefore,thedistancebetweenthetwositesneedstobeconsidered.ThefirststeptowardsleastcostpathanalysisistheconversionofcontourdatatoDigitalElevationModel(DEM)usuallydonethroughArcGISSpatialAnalystExtension.TheDEM(digitalelevationmodel)isarasterversionofthecontourdata.ThesourceofcontourdataisSurveyingServicesDivision(SSD)ofSaudiAramco.DerivingSlopeMap:

37毕业设计(论文)专用纸TheSlopehelpstoidentifythemaximumrateofchangeinsurfacevalueoveraspecificdistance,anditisexpressedindegreesorpercentage.CalculatingtheslopeisoneofmanyfunctionsofthespatialanalysttoolandthisfunctionwasusedtoderiveaslopemapfromDEM.Fig2:SlopeMapReclassSlopeMap:

TheSlopemapwasreclassifiedonascaleof1to10.Thedarkershadesrepresentareasofshallowslope,areaswhereconstructioncostswillbelessexpensive.Theresulthelpstodifferentiatetheslopeclassesandhenceprovideanopportunitywhenchoosinglocation.Fig3:ReclassMapCreatingTotalCostLayer:

Thedarkershadesindicateareasthroughwhichitwillbelesscostlytoconstruct.Thisisanexampleofaversionoftotalcost.Wecanconsidervariouscombinationsofcontributingfactors,therebycreating38毕业设计(论文)专用纸severaltotalcostsurfacealternatives.CostDistanceandCostDirectionAnalysis:

Fig5:CostDistanceFig6:CostDirectionOncetotalcostlayeriscreated,weneedtoderivecostdistanceandcostdirectionsurface.Onesurfaceisincreasingcostsaswetravelfartherawayfromthesource.Theothersurfacemodelisincreasingcostsdependingonthedirectionwearetraveling.Bothofthesesurfacesactasinputstocalculatetheleast-costpath.TheCostDistancelayerrepresentshowcostsaccumulateaswemovefurtherawayfromtheoneoftheSabkhas.Thecostdistancelayertakesintoaccountdistancemeasurementsfromthesourceandthevaluesofthetotalcostlayerforeachlocationonthemap.Thecostdirectionlayertakesintoaccountthetotalcostlayeranddeterminesthebearingtothe39毕业设计(论文)专用纸easiest(leastcostly)pathbacktothesource.Whencombined,theselayersarelikeanobstaclecourse.Thefartherawayyouare,themoreitcostsyouintime,money,orefforttoreachthegoal.Least-CostPath:

Theleast-costpathdistancefromacelltoasourcecellisthesmallest(orleast)costdistanceamongallcostpathdistancesfromthecelltothesourcecells.Forshortestorleast-costpathanalysis,weidentifyatleasttwopointsorlocations:thesourceandthedestination.UsingArcGISspatialanalystwecanFig7:Source&DestinationPointsFig8:LeastCost-Pathgenerateleastcostpathasshownaboveandalsotheshortestpathfromthesourcetothedestinations.Theresultsindicatetheoptimumroutebetweentwopoints.Theseroutesarefurtherutilizedinthepetroleumindustryforrunning40