¿Alguien tiene un ejemplo funcional usando ESRI Leaflet para asignar un color ramp a un DEM alojado como un ArcGIS REST ImageServer? <\/P>
<\/P>
He estado usando esta documentación de <\/SPAN>ESRI<\/A> <\/SPAN>y he logrado hacer funcionar un ejemplo de hillshade:<\/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>Pero no he tenido suerte aplicando un 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> ¡Gracias de antemano a quien pueda brindar alguna orientación!<\/P> <\/P> Edición: Formateo<\/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>Pero no he tenido suerte aplicando un 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> ¡Gracias de antemano a quien pueda brindar alguna orientación!<\/P> <\/P> Edición: Formateo<\/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> ¡Gracias de antemano a quien pueda brindar alguna orientación!<\/P> <\/P> Edición: Formateo<\/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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.