How do I change the symbology of my basemap ortho imagery to display the infrared band instead of the True color in flexviewer?

1028
3
01-05-2017 10:50 AM
AndrewIng
New Contributor

The ortho imagery has 4 bands: RGB and IR. The default symbology is RGB but I'd like to symbolize it in flexviewer to display the IR band using the red channel.

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   You would symbolize the orthos in the mxd and then publish the map service and consume that map service in FlexViewer so this question has little to do with FlexViewer (which by the way is a retired product that esri no longer support and you should be moving away from).

0 Kudos
AndrewIng
New Contributor

Thank you Robert. I realize Flexviewer is on it's way out. I should have mentioned the orthos are displayed with the Basemap widget. I was originally given an XML file to change the contrast and brightness of the imagery ...(<XmlRasterFunctionTemplate xsi:type='typens:RasterFunctionTemplate' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.1'><Name>Contrast40Brightness15</Name><Description>A raster function template.</Description><Function xsi:type='typens:ContrastBrightnessFunction'><Name>Contrast And Brightness Function</Name><Description>Adjusts the raster contrast and brightness.</Description><PixelType>UNKNOWN</PixelType></Function><Arguments xsi:type='typens:ContrastBrightnessFunctionArguments'><Names xsi:type='typens:ArrayOfString'><String>Raster</String><String>ContrastOffset</String><String>BrightnessOffset</String></Names><Values xsi:type='typens:ArrayOfAnyType'><AnyType xsi:type='typens:RasterFunctionVariable'><Name>Raster</Name><Description></Description><Value></Value><IsDataset>true</IsDataset></AnyType><AnyType xsi:type='typens:RasterFunctionVariable'><Name>ContrastOffset_2013130_122255_347</Name><Description></Description><Value xsi:type='xs:double'>40</Value><IsDataset>false</IsDataset></AnyType><AnyType xsi:type='typens:RasterFunctionVariable'><Name>BrightnessOffset_2013130_122255_347</Name><Description></Description><Value xsi:type='xs:double'>15</Value><IsDataset>false</IsDataset></AnyType></Values></Arguments><Help></Help></XmlRasterFunctionTemplate>). I thought similar code might exists for changing the symbology or for modifying the code for the basemap in the config.xml?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   It is not on it way out, it has been retired already. I am not aware of a way to use a raster function to get the IR channel.