Alguém tem um exemplo funcional usando ESRI Leaflet para atribuir um color ramp a um DEM hospedado como um ArcGIS REST ImageServer? <\/P>
<\/P>
Tenho usado esta documentação da <\/SPAN>ESRI<\/A> <\/SPAN>e consegui fazer um exemplo de hillshade funcionar:<\/P> <\/P>\/\/\/Hillshade DEMvar renderingRule = { "rasterFunction":"Hillshade", "rasterFunctionArguments": { "Azimuth":315, "Altitude":45, "ZFactor":1 },"variableName":"DEM"};var dem = L.esri.imageMapLayer({ url: 'https:\/\/gis.arkansas.gov\/arcgis\/rest\/services\/ImageServices\/DEM_1M_2018\/ImageServer', renderingRule: renderingRule});<\/CODE><\/PRE> <\/P>Mas não tive sucesso ao aplicar um color ramp:<\/P> <\/P>var renderingRuleTwo = { "rasterFunction" : "Colormap", "rasterFunctionArguments" : { "ColorrampName" : "Blue Bright" }, "variableName" : "Raster" }; var demTwo = L.esri.imageMapLayer({ url: 'https:\/\/gis.arkansas.gov\/arcgis\/rest\/services\/ImageServices\/DEM_1M_2018\/ImageServer', renderingRule: renderingRuleTwo });<\/CODE><\/PRE> <\/P> Agradeço antecipadamente a quem puder fornecer alguma orientação!<\/P> <\/P> Editado: Formatação<\/P>
\/\/\/Hillshade DEMvar renderingRule = { "rasterFunction":"Hillshade", "rasterFunctionArguments": { "Azimuth":315, "Altitude":45, "ZFactor":1 },"variableName":"DEM"};var dem = L.esri.imageMapLayer({ url: 'https:\/\/gis.arkansas.gov\/arcgis\/rest\/services\/ImageServices\/DEM_1M_2018\/ImageServer', renderingRule: renderingRule});<\/CODE><\/PRE> <\/P>Mas não tive sucesso ao aplicar um color ramp:<\/P> <\/P>var renderingRuleTwo = { "rasterFunction" : "Colormap", "rasterFunctionArguments" : { "ColorrampName" : "Blue Bright" }, "variableName" : "Raster" }; var demTwo = L.esri.imageMapLayer({ url: 'https:\/\/gis.arkansas.gov\/arcgis\/rest\/services\/ImageServices\/DEM_1M_2018\/ImageServer', renderingRule: renderingRuleTwo });<\/CODE><\/PRE> <\/P> Agradeço antecipadamente a quem puder fornecer alguma orientação!<\/P> <\/P> Editado: Formatação<\/P>
var renderingRuleTwo = { "rasterFunction" : "Colormap", "rasterFunctionArguments" : { "ColorrampName" : "Blue Bright" }, "variableName" : "Raster" }; var demTwo = L.esri.imageMapLayer({ url: 'https:\/\/gis.arkansas.gov\/arcgis\/rest\/services\/ImageServices\/DEM_1M_2018\/ImageServer', renderingRule: renderingRuleTwo });<\/CODE><\/PRE> <\/P> Agradeço antecipadamente a quem puder fornecer alguma orientação!<\/P> <\/P> Editado: Formatação<\/P>
in esri leaflet we're not doing anything special. we just pass through whatever JSON you supply.
if this thread isn't helpful, I'd recommend figuring out the appropriate syntax for your raster function directly at the REST endpoint and asking for help from image service experts if necessary.
https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer/exportImage
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.