Configure the Application - Image Discovery

Use the steps below to configure the application to point to or search Image Services, and set the result fields to display.

  1. Open config\imagery\imageQueryConfiguration.json in a text editor.
  2. In imageQueryLayers, enter the URL to an ArcGIS Server Image Service endpoint.
  3. Set the label parameter for your ArcGIS Server Image Service.
  4. In the entry imageQueryResultDisplayFields, set the result fields you would like to display in your result grid.
    • field The field name to display.
    • label The label of the field to display in the result grid.
    • filter Set enable to TRUE if you would like to allow filtering on this result field.
    • gridOptions Set hiddenOnDisplay to TRUE will require the user to enable the field for it to be visible in the result grid. Setting canHide to TRUE allows the user to hide the field.
    • style Object containing CamelCase CSS for how to style the field in the result grid.
  5. If you deployed the DiscoveryGeoprocessing.sd from step 5 in Install the Application, set the URL of the GPServer in the discoverGeometryUploadTask configuration entry.
    • uploadUrl: URL to upload endpoint of the GPServer http://YOUR_SERVER/arcgis/rest/services/DiscoveryViewerTools/GPServer/uploads/upload
    • geoprocessingTaskUrl: URL to the GPServer endpoint http://YOUR_SERVER/arcgis/rest/services/DiscoveryViewerTools/GPServer/FileToFeaturesM
  6. If you deployed the DiscoveryGeoprocessing.sd from step 6 in Install the Application, set the URL of the GPServer in the "footprints" configuration entry.
    • url: URL to the GPServer endpoint http://YOUR_SERVER/arcgis/rest/services/DiscoveryViewerTools/GPServer/reportGenerator
  7. Save the file and test your application. Results should display from your Image Service, displaying the result fields defined in imageQueryResultDisplayFields.
Top