<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ImageServiceMeasure Parameter syntax in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482810#M44941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yue,&lt;/P&gt;&lt;P&gt;Sorry for the confusion but I've actually meant I'm using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasuretask-amd.html"&gt;ImageServiceMeasureTask&lt;/A&gt;​, which I assume can use the same parameter object. What I'm having trouble with is when the user selects a county of the state I'd like to know the total area of the raster (with certain values) within that county. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm trying to use the "fromGeometry" property of &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasureparameters-amd.html#fromgeometry"&gt;ImageServiceMeasureParameters&lt;/A&gt; by handing it the county's geometry. And right now the query fails with an error "unable to complete operation". I assume this is because I'm just not getting the parameter fields correctly? Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 19:14:33 GMT</pubDate>
    <dc:creator>JordanLynn</dc:creator>
    <dc:date>2016-03-02T19:14:33Z</dc:date>
    <item>
      <title>ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482806#M44937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been trying to measure the total area of a given raster from a clipped geometry (specifically a selected county), and I've been thinking that &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasuretask-amd.html"&gt;ImageServiceMeasureTask&lt;/A&gt;​ is what I need to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is I have no idea how to setup the &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasureparameters-amd.html#pixelsize"&gt;ImageServiceMeasureParameters&lt;/A&gt; object to work with the image service I'm using. And I can not find any examples anywhere for either the task or the parameter so any help would be greatly appreciated. Here's the relevant javascript and the &lt;A href="https://gis-sandbox.northwestknowledge.net/arcgis/rest/services/idaho_rangeland_atlas/nlcd_test/ImageServer"&gt;URL to the image service&lt;/A&gt; I'm using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;var imageMeasureTask = new ImageServiceMeasureTask(rasterURL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;imageServiceMeasureParams = new ImageServiceMeasureParameters();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;imageServiceMeasureParams.fromGeometry = evt.graphic.geometry;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;imageMeasureTask.execute(imageServiceMeasureParams, success, failure);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482806#M44937</guid>
      <dc:creator>JordanLynn</dc:creator>
      <dc:date>2016-02-29T22:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482807#M44938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I share with you this sample code that you can take a look about &lt;A href="https://jsbin.com/tecubabuye/edit?html,output" title="https://jsbin.com/tecubabuye/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 01:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482807#M44938</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-03-02T01:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482808#M44939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind of follow up my previous answer. The sample that I mentioned above is using an &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasure-amd.html" title="https://developers.arcgis.com/javascript/jsapi/imageservicemeasure-amd.html"&gt;ImageServiceMeasure | API Reference | ArcGIS API for JavaScript&lt;/A&gt; widget. You can check the hyperlink about this widget. However, I confirm with our dev team that this doc has some issue and may confuse you. I do internally logged a documentation enhancement and we should update this documentation pretty. &lt;STRONG&gt;[ENH-000094580 Incomplete documentation for IncopImageServiceMeasure widget]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I would suggest just follow the sample that I showed to you to finish your task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482808#M44939</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-03-02T18:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482809#M44940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yue,&lt;BR /&gt;Thanks for the reply! The sample code does help, I'll work on integrating it into my own and I'll mark this question solved once I've gotten it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 18:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482809#M44940</guid>
      <dc:creator>JordanLynn</dc:creator>
      <dc:date>2016-03-02T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482810#M44941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yue,&lt;/P&gt;&lt;P&gt;Sorry for the confusion but I've actually meant I'm using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasuretask-amd.html"&gt;ImageServiceMeasureTask&lt;/A&gt;​, which I assume can use the same parameter object. What I'm having trouble with is when the user selects a county of the state I'd like to know the total area of the raster (with certain values) within that county. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm trying to use the "fromGeometry" property of &lt;A href="https://developers.arcgis.com/javascript/jsapi/imageservicemeasureparameters-amd.html#fromgeometry"&gt;ImageServiceMeasureParameters&lt;/A&gt; by handing it the county's geometry. And right now the query fails with an error "unable to complete operation". I assume this is because I'm just not getting the parameter fields correctly? Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 19:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482810#M44941</guid>
      <dc:creator>JordanLynn</dc:creator>
      <dc:date>2016-03-02T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482811#M44942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think the issue is if you using the widget that I showed in my sample, then you don't have to worry about &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjsapi%2Fimageservicemeasuretask-amd.html" rel="nofollow" style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;ImageServiceMeasureTask&lt;/A&gt; or &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fjsapi%2Fimageservicemeasureparameters-amd.html%23fromgeometry" rel="nofollow" style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;ImageServiceMeasureParameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The reason is because the widget already handle those task behind, and all you need to do is interact with the UI widget and draw polygon on screen to get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you want to pro-grammatically to get the result without interact with widget, then you need to &lt;/P&gt;&lt;P&gt;pass all the right values that you need to get the result to execute. &lt;/P&gt;&lt;P&gt;The easy way to identify what type of requests that you send to image service, is using the developer tool from browser. Then used that widget sample to see the request. Here I show you a screenshot to illustrate what I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/188511_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482811#M44942</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-03-02T22:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482812#M44943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yue,&lt;/P&gt;&lt;P&gt;I think we've gotten a little far from what I was originally trying to do, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count the total area for specific values (52 and 71) within the a county geometry. Originally I tried to find a way just to count the amount of pixels (I know each pixel is 30 meters) that is returned after I've clipped the image to the shape of the county. So right now I have a clipped image in the shape of a given county and I've filtered the values so that only 52 and 71 appear. I'm just stuck on how to find the area of the image that is showing (after the filter and clipping) inside a selected county. Here's a image of what I'm trying to accomplish: (The green area is the image I'd like to find the area of, ignore the red overlay)&lt;BR /&gt;&lt;IMG alt="2016-03-02-151949_1280x800_scrot.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/188516_2016-03-02-151949_1280x800_scrot.png" style="width: 620px; height: 387px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if it helps the code for this project is on my github &lt;A href="https://github.com/jordlynn/UidahoGIS/blob/master/range_test.html"&gt;here&lt;/A&gt; although it's getting very long the important raster/image service stuff is along line 195. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482812#M44943</guid>
      <dc:creator>JordanLynn</dc:creator>
      <dc:date>2016-03-02T23:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482813#M44944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an area calculation is performed, are pixels with a value of "noData" include in the result?&amp;nbsp; In the testing I've done it seems like "noData" pixels are included but maybe I'm missing something.&amp;nbsp; Is there a way to exclude them?&amp;nbsp; Thanks.&amp;nbsp; -Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 04:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482813#M44944</guid>
      <dc:creator>BruceGodfrey</dc:creator>
      <dc:date>2016-05-03T04:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482814#M44945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it is related to your data or other setup issue. You can try to test with this sample &lt;A href="https://developers.arcgis.com/javascript/3/samples/util_measurepoly/" title="https://developers.arcgis.com/javascript/3/samples/util_measurepoly/"&gt;Measure Polygon Area and Perimeter &lt;/A&gt;​at least you can try if any "noData" value included in this sample with your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, I assume that ImageServiceMeasure Widget is using this method &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/areasandlengthsparameters-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/areasandlengthsparameters-amd.html"&gt;AreasAndLengthsParameters | API Reference | ArcGIS API for JavaScript&lt;/A&gt;​ to calculate the Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help you to narrow down something at least.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 18:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482814#M44945</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-05-03T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: ImageServiceMeasure Parameter syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482815#M44946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try the sample app you provided above (&lt;SPAN style="color: #000000; text-decoration: underline; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjsbin.com%2Ftecubabuye%2Fedit%3Fhtml%2Coutput"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;​)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and I draw an area in western Montana (say around Missoula) an area is calculated.&amp;nbsp; While the pixels are within the bounding box of the service, they are "noData" (based on identifying).&amp;nbsp; It doesn't seem like the Widget is taking into account "noData" pixels.&amp;nbsp; I would expect no area value to be calculated in this case.&amp;nbsp; Does it seem to you like the Widget isn't working correctly or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;-Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 14:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imageservicemeasure-parameter-syntax/m-p/482815#M44946</guid>
      <dc:creator>BruceGodfrey</dc:creator>
      <dc:date>2016-05-04T14:29:06Z</dc:date>
    </item>
  </channel>
</rss>

