Is there any way to create queryable relate between feature point and raster datasets?

3989
7
Jump to solution
05-30-2016 12:58 AM
RolandGliba
New Contributor III

Hy!

I'd like to reach that when I clicking on a feature point that displays me a raster dataset with the same name (along some kind of connection field I don't know). where should I do that and which way? Maybe in ArcMap before publish the mapservice at all? or Image Service good for it? or Should I create a GP tool? I tried many ways to do that with raster catalogs and mosaic datasets but I stucked with create a queryable relate. Pls help me with ideas. Thank you

Roland

0 Kudos
1 Solution

Accepted Solutions
FC_Basson
MVP Regular Contributor

If you are going the JS API route, you could publish your raster dataset as an Image Service and then get the attributes for the underlying raster with an ImageServiceIdentifyTask - ImageServiceIdentifyTask | API Reference | ArcGIS API for JavaScript

View solution in original post

7 Replies
FC_Basson
MVP Regular Contributor

What about using the HTML popup tool?  Your point layer can have a field with the location of the image file.  Then when you click on your point feature using the HTML popup tool, the image will be displayed in the popup content and you can drag and drop the image to your Data Frame.

0 Kudos
FC_Basson
MVP Regular Contributor

There seems to be limitations on the file types that can be displayed in the HTML popup.  In addition to having the file location as a field value, the popup also requires the content to be HTML formatted, so for a link to a raster image the field value would have to be <img alt="File" src="c:\imagery\image1.jpg" width="500" />.   If the popup or info content contains the image location, you can select-drag-and-drop to the Data Fram TOC and the image will load.

0 Kudos
RolandGliba
New Contributor III

Thank you. It works and useful. But I need it to works in a published service too either in an API for Flex or JS. Any idea? And thank you again for the help

Roland

0 Kudos
FC_Basson
MVP Regular Contributor

It's almost easier to do in the JS API.  Same principle as my previous suggestion of having an image ID attribute in your point feature layer.  The images you can load in a raster mosaic and publish to an Image Service.  Then from the point image ID in your web map layer, you can set a definition query on your Image Service mosaic layer to only show the image with the related ID.

0 Kudos
RolandGliba
New Contributor III

I have made the model what can query rasters by the in memory points. I used the make a raster layer tool and it works nicely but the flex is not able to handle the raster datatype in a GP tool output. I was thinking of choose the make image server layer tool instead. Or what else kind of datatypes are supported for a GP service output for flex?

Unfortunately, my model can't query the image service it results the whole mosaic dataset. Any idea? This is my final trying if I can't do this way I am going to trying it in JS what is new for me

thank you

0 Kudos
FC_Basson
MVP Regular Contributor

If you are going the JS API route, you could publish your raster dataset as an Image Service and then get the attributes for the underlying raster with an ImageServiceIdentifyTask - ImageServiceIdentifyTask | API Reference | ArcGIS API for JavaScript

RolandGliba
New Contributor III

Hy again! I have just started in the last days with the wab. But I don't know how did you mean this answer. If I make a raster id in the point feature attributes how should I make a query trough it for the rasters in the imageservice. Or could you help me how can I use the imageserviceidentifytask? maybe with details? I'd be grateful for your help

0 Kudos