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.18
The ElevationProfile widget is used to generate and display an elevation profile from an input pa...
- 2user-specified input geometry | ArcGIS API for JavaScript 3.41
Description. This sample allows input of either a polyline or freehand polyline geometry. The ele...
- 3Elevation Profile - Esri Community
These samples encompass the elevation-focused samples we have: Elevations Samples | ArcGIS API fo...
- 4ElevationProfile | API Reference | ArcGIS API for JavaScript 3.41
The Elevation Profile widget allows a user to create an elevation profile based on a polyline geo...
- 5Profile—ArcGIS REST APIs
The Profile request is used to sample elevation values along input lines. The output polyline fea...