<?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 JSON Geometry - GetSamples in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192147#M17711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a REST query and it is not working for one geometry, but is for another. Is there a mechanism for determining if&amp;nbsp; a geometry is valid or not? I found&amp;nbsp;&lt;A class="link-titled" href="http://geojsonlint.com/" title="http://geojsonlint.com/"&gt;GeoJSONLint - Validate your GeoJSON&lt;/A&gt;&amp;nbsp;, but couldn't find something for ESRI's APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the rest of the parameters I enter are valid, because I tested the function by swapping out a geometry I know that works.&lt;/P&gt;&lt;P&gt;I'm getting the following error:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{&amp;nbsp; "error": {&amp;nbsp;&amp;nbsp; "code": 400,&amp;nbsp;&amp;nbsp; "message": "Invalid or missing input parameters.",&amp;nbsp;&amp;nbsp; "details": []&amp;nbsp; } }&lt;/PRE&gt;&lt;P&gt;Bad Geometry (not working in my service):&lt;/P&gt;&lt;P&gt;{"rings": [[[-7949872.332327881,5251978.743232549],[-7949868.499244263,5251978.1339145275],[-7949865.041371125,5251976.365604301],[-7949862.297191506,5251973.611397049],[-7949860.535324938,5251970.140896959],[-7949859.928231544,5251966.293823039],[-7949860.535334537,5251962.446752237],[-7949862.297207038,5251958.97626031],[-7949865.041386656,5251956.22206315],[-7949868.499253862,5251954.45376109],[-7949872.332327881,5251953.844446186],[-7949876.179384461,5251954.45376109],[-7949879.649865517,5251956.22206315],[-7949882.404055541,5251958.97626031],[-7949884.17235512,5251962.446752237],[-7949884.781672734,5251966.293823039],[-7949884.172364719,5251970.140896959],[-7949882.404071072,5251973.611397051],[-7949879.649881047,5251976.3656043],[-7949876.17939406,5251978.1339145275],[-7949872.332327881,5251978.743232549]]], "spatialReference":{"wkid":102100}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's weird, because I use the following geometry and it works perfectly:&lt;/P&gt;&lt;P&gt;{"rings": [[[-7963957.049118099,5227422.1263048],[-7963953.225959912,5227421.518553044],[-7963949.777040598,5227419.754788266],[-7963947.03996673,5227417.007660669],[-7963945.282662304,5227413.546081402],[-7963949.777056001,5227399.663025433],[-7963953.225969432,5227397.899268757],[-7963957.049118099,5227397.291520092],[-7963960.886285824,5227397.899268757],[-7963964.347846032,5227399.663025433],[-7963967.09495644,5227402.410143024],[-7963968.858710604,5227405.871714194],[-7963969.4664619425,5227409.708896252],[-7963968.858720122,5227413.546081402],[-7963967.094971841,5227417.007660669],[-7963964.347861435,5227419.754788266],[-7963960.886295345,5227421.518553044],[-7963957.049118099,5227422.1263048]]], "spatialReference":{"wkid":102100}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole form data is as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FSERVERNAME%2Farcgis%2Frest%2Fservices%2FEstimatedFloodDepth%2FImageServer%2FgetSamples" rel="nofollow" target="_blank"&gt;https://SERVERNAME/arcgis/rest/services/EstimatedFloodDepth/ImageServer/getSamples&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL class="" style="color: #222222; padding-left: 10px; padding-bottom: 5px;"&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;geometry:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;{"rings": [[[-7949872.332327881,5251978.743232549],[-7949868.499244263,5251978.1339145275],[-7949865.041371125,5251976.365604301],[-7949862.297191506,5251973.611397049],[-7949860.535324938,5251970.140896959],[-7949859.928231544,5251966.293823039],[-7949860.535334537,5251962.446752237],[-7949862.297207038,5251958.97626031],[-7949865.041386656,5251956.22206315],[-7949868.499253862,5251954.45376109],[-7949872.332327881,5251953.844446186],[-7949876.179384461,5251954.45376109],[-7949879.649865517,5251956.22206315],[-7949882.404055541,5251958.97626031],[-7949884.17235512,5251962.446752237],[-7949884.781672734,5251966.293823039],[-7949884.172364719,5251970.140896959],[-7949882.404071072,5251973.611397051],[-7949879.649881047,5251976.3656043],[-7949876.17939406,5251978.1339145275],[-7949872.332327881,5251978.743232549]]], "spatialReference":{"wkid":102100}}&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;geometryType:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;esriGeometryPolygon&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;sampleDistance:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;sampleCount:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;1000&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;mosaicRule:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;pixelSize:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;returnFirstValueOnly:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;false&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;f:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;pjson&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 14:37:29 GMT</pubDate>
    <dc:creator>MichaelRutkowski</dc:creator>
    <dc:date>2017-12-07T14:37:29Z</dc:date>
    <item>
      <title>JSON Geometry - GetSamples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192147#M17711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a REST query and it is not working for one geometry, but is for another. Is there a mechanism for determining if&amp;nbsp; a geometry is valid or not? I found&amp;nbsp;&lt;A class="link-titled" href="http://geojsonlint.com/" title="http://geojsonlint.com/"&gt;GeoJSONLint - Validate your GeoJSON&lt;/A&gt;&amp;nbsp;, but couldn't find something for ESRI's APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the rest of the parameters I enter are valid, because I tested the function by swapping out a geometry I know that works.&lt;/P&gt;&lt;P&gt;I'm getting the following error:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{&amp;nbsp; "error": {&amp;nbsp;&amp;nbsp; "code": 400,&amp;nbsp;&amp;nbsp; "message": "Invalid or missing input parameters.",&amp;nbsp;&amp;nbsp; "details": []&amp;nbsp; } }&lt;/PRE&gt;&lt;P&gt;Bad Geometry (not working in my service):&lt;/P&gt;&lt;P&gt;{"rings": [[[-7949872.332327881,5251978.743232549],[-7949868.499244263,5251978.1339145275],[-7949865.041371125,5251976.365604301],[-7949862.297191506,5251973.611397049],[-7949860.535324938,5251970.140896959],[-7949859.928231544,5251966.293823039],[-7949860.535334537,5251962.446752237],[-7949862.297207038,5251958.97626031],[-7949865.041386656,5251956.22206315],[-7949868.499253862,5251954.45376109],[-7949872.332327881,5251953.844446186],[-7949876.179384461,5251954.45376109],[-7949879.649865517,5251956.22206315],[-7949882.404055541,5251958.97626031],[-7949884.17235512,5251962.446752237],[-7949884.781672734,5251966.293823039],[-7949884.172364719,5251970.140896959],[-7949882.404071072,5251973.611397051],[-7949879.649881047,5251976.3656043],[-7949876.17939406,5251978.1339145275],[-7949872.332327881,5251978.743232549]]], "spatialReference":{"wkid":102100}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's weird, because I use the following geometry and it works perfectly:&lt;/P&gt;&lt;P&gt;{"rings": [[[-7963957.049118099,5227422.1263048],[-7963953.225959912,5227421.518553044],[-7963949.777040598,5227419.754788266],[-7963947.03996673,5227417.007660669],[-7963945.282662304,5227413.546081402],[-7963949.777056001,5227399.663025433],[-7963953.225969432,5227397.899268757],[-7963957.049118099,5227397.291520092],[-7963960.886285824,5227397.899268757],[-7963964.347846032,5227399.663025433],[-7963967.09495644,5227402.410143024],[-7963968.858710604,5227405.871714194],[-7963969.4664619425,5227409.708896252],[-7963968.858720122,5227413.546081402],[-7963967.094971841,5227417.007660669],[-7963964.347861435,5227419.754788266],[-7963960.886295345,5227421.518553044],[-7963957.049118099,5227422.1263048]]], "spatialReference":{"wkid":102100}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole form data is as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FSERVERNAME%2Farcgis%2Frest%2Fservices%2FEstimatedFloodDepth%2FImageServer%2FgetSamples" rel="nofollow" target="_blank"&gt;https://SERVERNAME/arcgis/rest/services/EstimatedFloodDepth/ImageServer/getSamples&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL class="" style="color: #222222; padding-left: 10px; padding-bottom: 5px;"&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;geometry:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;{"rings": [[[-7949872.332327881,5251978.743232549],[-7949868.499244263,5251978.1339145275],[-7949865.041371125,5251976.365604301],[-7949862.297191506,5251973.611397049],[-7949860.535324938,5251970.140896959],[-7949859.928231544,5251966.293823039],[-7949860.535334537,5251962.446752237],[-7949862.297207038,5251958.97626031],[-7949865.041386656,5251956.22206315],[-7949868.499253862,5251954.45376109],[-7949872.332327881,5251953.844446186],[-7949876.179384461,5251954.45376109],[-7949879.649865517,5251956.22206315],[-7949882.404055541,5251958.97626031],[-7949884.17235512,5251962.446752237],[-7949884.781672734,5251966.293823039],[-7949884.172364719,5251970.140896959],[-7949882.404071072,5251973.611397051],[-7949879.649881047,5251976.3656043],[-7949876.17939406,5251978.1339145275],[-7949872.332327881,5251978.743232549]]], "spatialReference":{"wkid":102100}}&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;geometryType:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;esriGeometryPolygon&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;sampleDistance:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;sampleCount:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;1000&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;mosaicRule:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;pixelSize:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt; &lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;returnFirstValueOnly:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;false&lt;/DIV&gt;&lt;/LI&gt;&lt;LI style="margin-left: 10px; margin-top: 1px;"&gt;&lt;DIV class="" style="color: #545454; font-weight: bold; margin-right: 0.5em;"&gt;f:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 12px !important; margin-top: 1px; margin-right: 1em;"&gt;pjson&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192147#M17711</guid>
      <dc:creator>MichaelRutkowski</dc:creator>
      <dc:date>2017-12-07T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Geometry - GetSamples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192148#M17712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both of your geometries are valid as far as the JS API is concerned.&amp;nbsp; I was able to create graphics from each one and add&amp;nbsp;it to a&amp;nbsp;map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would take a look at server logs to get a more complete picture of what's going wrong here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192148#M17712</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-12-07T16:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Geometry - GetSamples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192149#M17713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not seeing anything odd with the geometries either. The logs aren't telling me anything informative either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 17:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192149#M17713</guid>
      <dc:creator>MichaelRutkowski</dc:creator>
      <dc:date>2017-12-07T17:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Geometry - GetSamples</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192150#M17714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's an example of poor error message that doesn't really help at all. I've tried many ways couldn't work it out. Here's a sample image service at from ESRI, I'm wondering if ESRI could provide a working example with this service. The code snippet provided in the help doc refers to fake server which could be tested.&amp;nbsp;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer/getSamples" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer/getSamples"&gt;Get Samples: (CharlotteLAS)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 12:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-geometry-getsamples/m-p/192150#M17714</guid>
      <dc:creator>Jack_Zhang</dc:creator>
      <dc:date>2020-03-23T12:55:17Z</dc:date>
    </item>
  </channel>
</rss>

