Tag: web app

Use the Image Interpretation app template to create an imagery app in minutes

App template screenshot

With the Image Interpretation app template, now released in beta, you can create an interactive web app that lets people view, understand, and annotate imagery, no coding necessary. Straightforward configuration options let you customize the app for your project, whether … Continue reading

Posted in App Developers, Apps, ArcGIS Online, Imagery, Uncategorized, Web | Tagged , , , , , , , | 2 Comments

New Learn ArcGIS Lesson: Fight Child Poverty with Demographic Analysis

Detroit, MI demographic map

More children live in poverty in Detroit, Michigan, than in any other city in the United States. In the new Fight Child Poverty with Demographic Analysis lesson on the Learn ArcGIS website, you’ll take on the role of a charity … Continue reading

Posted in ArcGIS Online | Tagged , , , , , , , , , , , , | Leave a comment

Using Smart Mapping in custom web apps

sm-subset-extent

Smart Mapping was released last year in the ArcGIS API for JavaScript, ArcGIS Online, and Portal for ArcGIS, providing easy-to-use tools for generating attractive default visualizations of geographic data on the web. The ArcGIS Online Map Viewer fully equips users … Continue reading

Posted in App Developers, Apps, Mapping, Uncategorized, Web | Tagged , , , , , | Leave a comment

Community Maps contributors leverage their contributions across the organization

Featured-Blog-Image_Newsletter

Community Maps contributors are finding creative ways to leverage their ArcGIS Online accounts. Many of these contributors have created well-designed web maps and applications to meet the goals and business needs of their organization. 

Posted in App Developers, ArcGIS Online, Community Maps, Local Government, Mapping, Web | Tagged , , , , , | Leave a comment

Step-up to the boilerplate

sm-thumb

Take some development work off of your plate and get a jump on building ArcGIS API for JavaScript apps by starting with the JavaScript Application Boilerplate. After developing a few ArcGIS Online hosted templates, such as the Social Media and … Continue reading

Posted in App Developers, ArcGIS Online, Developer, Web | Tagged , , , , , , , , , , , , , , , , , | 2 Comments

Displaying your geoprocessing raster output in your web application (using Silverlight)

When you are developing a Geoprocessing service that generates Raster dataset as output (e.g. Viewshed or Hillshade analysis), you will find the output Raster dataset cannot be rendered directly in your web application.

In order to display the Geoprocessing Raster output in the web application, you have to follow the following steps:

Continue reading

Posted in Analysis & Geoprocessing, Developer, Imagery, Services, Web | Tagged , , , , , , , , , | 15 Comments

Image Service Explorer sample update

 

The Image Service Explorer sample has been updated. There have been 2 fixes and 3 enhancements added.

Description of the fixes:

1. Fixed an internationalization issue. Previously this sample did not display the correct extent and did not pass the correct extent to the REST download request, when client was running in some European locales.

2.  Fixed an Identify issue. Previously the Identify tool (freehand line profiling) did not work when the source data was a single-band mosaic dataset.

Enhancements added:

1. Allow client to set current layer as base layer. Now users can use transparent control to perform simple visual comparison.

2.  Allow client to push a whereclause (generated through attribute query) into a “definition query”, i.e. image display is limited to this query.

 

3. Allow client to specify a mosaic rule that is used when image service layer is initialized, this will overwrite server side default setting.

These updates can be found in the editingnotes.txt file that is in the download.

 

Written by: Wenxue Ju

 

Posted in Developer, Imagery, Services | Tagged , , , , , , , | Leave a comment

Changing the display of image services dynamically in a Web API

Last week, we posted up a sample web application to navigate and explore an image service. This week we will examine some of the Silverlight code that was used in the sample.

Web clients can dynamically change the display of image services, such as format, band composition, interpolation, compression quality, nodata value, projection, and (starting from ArcGIS Server 10) clients can also specify a raster function to be applied by ArcGIS Server.


Band Combination

Changing band composition on-the-fly can be particularly useful when service has more than 3 bands, such as a Landsat service. This give you the ability to change to true color or false color composition.
isLayer.BandIds = new int[]{2,1,0}; //0-based; shown in Silverlight code


Format

You can change format of the returned service on-the-fly. For instance, you may use the new “JPGPNG” format, which returns a PNG when the request extent contains transparent pixels, and returns a JPG when there are no transparent pixels. JPGPNG is the default format in Web API and is recommended for web developers.
isLayer.ImageFormat = ArcGISImageServiceLayer.ImageServiceImageFormat.JPGPNG;


Compression Quality

The compression quality is a useful way to transmit the service faster when limited bandwidth is an issue. A lower compression quality transmits a lower quality image, but the image can be transmitted faster. Compression quality only applies when the JPG format is used. Compression quality ranges from 1 (low quality) to 100 (high quality).
isLayer.CompressionQuality = 50;


Interpolation
The display resampling method can be customized for your service. You should use bilinear or cubic for continuous data such as elevation of imagery. You should use nearest neighbor or majority for discrete data such as land use classification.
isLayer.Interpolation = ArcGISImageServiceLayer.ImageServiceInterpolation.BilinearInterpolation;

NoData

You can define a nodata value for any pixels that should not have a pixel value, such as the background border of a satellite image. When you display Nodata as a PNG format, these pixels will be displayed as transparent.
isLayer.NoData = 0;

Raster Functions
At ArcGIS 10, client can specify a rendering rule and ask ArcGIS Server to apply it on top of image service. This is done through a number of raster functions, 8 raster functions are supported through REST: Hillshade, ShadedRelief, Slope, Aspect, Colormap, Statistics, Stretch, NDVI. Web clients can leverage these raster functions to achieve different visualization goals. In many cases, you may want to apply a different stretch on an RGB service, or a color map on a single band service, and a shaded relief on an elevation service.

RenderingRule renderingRule = new RenderingRule();
renderingRule.RasterFunctionName = “Hillshade”; //Refer function name in REST SDK
functionArguments.Add(“Azimuth”, 315.0); //Refer arguments in REST SDK
functionArguments.Add(“Altitude”, 45.0);
functionArguments.Add(“ZFactor”, 1.0);
renderingRule.RasterFunctionArguments = functionArguments;
isLayer.RenderingRule = renderingRule;
isLayer.Refresh();

You can view live samples online: JavaScript, Flex, Silverlight.
As described above, image service web API provides a number of different ways that you can change the appearance of image service on the fly. You can expose them in web applications so users can visualize image services on demand. This means that you can use fewer services to serve multiple purposes. For example, one Landsat service is enough for true-color, false-color, and NDVI display; one elevation service is enough for slope, aspect and shaded relief visualization.  Note: Image services are automatically projected to the map’s coordinate system when used in Web APIs.

Submitted by: Wenxue Ju


Posted in Imagery, Services | Tagged , , , , , , , , | 4 Comments

"Image Service Explorer 3.0" web application sample is now available

“Image Service Explorer” is a web application has been updated. This sample is version 3.0.

It provides the following functionalities:
- dynamically renders an image service by applying different band combinations, resampling methods, or raster functions,
- controls how a collection of imagery (in one image service) is mosaicked on-the-fly by applying different mosaic methods,
- queries image services, check associated metadata, and download (or clip) source rasters or mosaicked/processed images,
- identifies pixel values of an image service and draw distance-value or time-series profiles,
- animate the image service if it is time enabled.

Download this sample web application

Submitted by: Wenxue Ju

Posted in Imagery, Services | Tagged , , , , , , | 3 Comments