Profile—ArcGIS REST APIs
文章推薦指數: 80 %
The Profile request is used to sample elevation values along input lines. The output polyline feature can be used to create a profile graph.
SkipToContent
ArcGISRESTAPIs
HomeReady-to-useContentmanagementAllservicesEnterpriseadministration
Menu
OverviewElevationanalysisserviceHydrologyanalysisserviceElevationdatacoverageHydrologydatacoverageElevationrequestsProfileProfilejobSummarizeelevationViewshedHydrologyrequestsTracedownstreamWatershed
BacktoTop
Inthistopic
RequestURLDescriptionUsageRequestParametersCompleterequestexampleResponse
TheProfilerequestisusedtosampleelevationvaluesalonginputlines.Theoutputpolylinefeaturecanbeusedtocreateaprofilegraph.Themaximumnumberofinputlinefeaturesthatcanbeacceptedbyeachdirectrequestis100.
RequestURLhttps://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute
DescriptionTheoutputfromthisrequestarepolylinefeatureswithelevationvaluesextractedalongtheinputlinefeaturesforeachvertex.Theelevationvaluesarestoredasz-valuesintheshapegeometry.Thedistancevaluesarestoredasm-valuesintheshapegeometry.Theinputpolylineverticesaredensifiedusingtheinputmaximumsampledistance.DependingontheDEMresolutionselected,differentdatasourceswillbeusedbytherequest.Bydefault,thisrequestcurrentlyworksworldwidebetween60degreesnorthand56degreessouthbasedonthe3arc-second(approximately90-meter)resolutionSRTMdataset.For30m,therequestwilluse1arc-secondresolutiondatainNorthAmerica(Canada,UnitedStates,andMexico)fromtheUSGSNationalElevationDataset(NED),SRTMDEM-SdatasetfromGeoscienceAustraliainAustraliaandSRTMdatabetween60degreesnorthand56degreessouthintheremainingpartsoftheworld(Africa,SouthAmerica,mostofEuropeandcontinentalAsia,theEastIndies,NewZealand,andislandsofthewesternPacific).For24m,therequestwilluse0.8arc-second(approximately24-meter)datafromtheglobaldatasetWorldDEM4OrthofromAirbusDefenceandSpaceGmbH,excludingthecountriesofAzerbaijan,DRCongo,andUkraine.For10m,therequestwilluse1/3arc-secondresolutiondatainthecontinentalUnitedStatesfromUSGSNationalElevationDataset(NED)andapproximately10-meterdatacoveringNorway,Finland,Denmark,Austria,Spain,Japan,Latvia,Lithuania,SlovakRepublic,Italy,Switzerland,andLiechtensteinfromvariousauthoritativesources.For500m,therequestwillusetheGEBCOdatacoveringtheentireworldat15arc-second(approximately500-meter)resolution.For1,000m,therequestwillusetheGEBCOdatacoveringtheentireworldat30arc-second(approximately1,000-meter)resolution.Refertothelocatormaptoseetheareascoveredandtolearnmoreaboutthedatasourcescurrentlyavailable.
UsageTherequestwillreturnanerrormessageifthespecifiedresolutionisnotavailableatanyoftheinputfeaturelocations.Themaximumnumberofinputlinesis100foreachdirectrequest.Ifadditionalinputlinesareprovided,therequestwillreturnanerrorandwillnotexecute.WhentheMaximumSampleDistanceparameterisemptyornotsupplied,adefaultsamplingdistanceiscalculatedbasedonhowmanyverticesareavailableontheinputlinefeature.Iftheinputlinefeaturecontainsfewerthan50vertices,thedefaultsamplingdistanceisthelengthoftheinputlinefeaturedividedby49.Iftheinputhas50ormore,butfewerthan200vertices,thedefaultsamplingdistanceisthelengthoftheinputlinefeaturedividedby199.Ifthenumberofverticesisfrom200tothemaximumof1,024,theinputlinefeaturewillnotbedensifiediftheMaximumSampleDistanceparameterisemptyornotspecified.Thereturnedlinefeaturesareinthesamecoordinatesystemastheinputlinefeatures.Thez-andm-valuesoftheverticesareinmeters.Themaximumnumberofelevationvaluesreturnedfromtherequestis2,000foreachinputline.Therequestwillreturnanerrormessageandwillnotexecuteifarequestresultsinmorethanthismaximumnumberofelevationvalues.Ifthisoccurs,youshouldeitherspecifyalargersamplingdistance,orinputalinefeaturewithfewervertices,orboth.TheoutputfieldLengthMetersholdstheplanimetriclengthoftheprofilelinecalculatedasageodesicdistanceandisthecorrectlengthregardlessofthecoordinatesystemofthedata.Thislengthwillbedifferentfromtheshape_lengthattributeduetotheeffectsofmapprojectiondistortion.TheoutputfieldDEMResolutionrecordsthesourceDEMresolutionusedbytherequest.ThreeadditionaloutputfieldsarealsoavailablethatidentifytheDEMdatasourceusedinthecalculation.ThosefieldsareProductName,Source,andSourceURL.WhensubmittingtheexecuterequestforthesynchronousProfilerequest,returnZandreturnMmustbespecifiedastrueandincludedintherequestparametersinordertogettheZ(elevation)andM(distance)values.AnexampleofanexecutestringwiththeZandMenabledisprovidedinasubsequentsection.
RequestParametersParameterDescriptionInputLineFeatures(Required)Thelinefeaturesthatwillbeprofiledoverthesurface.Type:FeatureSetSyntax:
{
"geometryType":"geometryType",
"spatialReference":
延伸文章資訊
- 1ElevationProfile Widget | ArcGIS API for JavaScript 4.24
Explore in the sandbox. Open in CodePen. View live. The ElevationProfile widget is used to genera...
- 2ElevationProfileViewModel | ArcGIS API for JavaScript 4.24
Collection of elevation profile lines which are to be generated and displayed in the widget's cha...
- 3ElevationProfileLineGround | ArcGIS API for JavaScript 4.24
Profile line which samples elevation from the Ground of the Map currently set in the View. Whenev...
- 4Elevation Profile - Esri Community
These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API fo...
- 5ElevationProfileLineInput | ArcGIS API for JavaScript 4.24
Class: esri/widgets/ElevationProfile/ElevationProfileLineInput ... Profile line which samples ele...