<?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: ArcGIS REST Services Directory Query Function in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650562#M3161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best I can figure it is&amp;nbsp; xy is not parsed correctly so that the corresponding vertex/xy I am providing in the Input Geometry: does not recognize it as a polygon hence I get the Invalid or missing input parameters.&amp;nbsp; Since the Envelope is only taking the xmin, ymin and xmax, ymax of probably the first four points it returns results but not all the data that the actual polygon covers.&amp;nbsp; This has been really frustrating to say the least.&amp;nbsp; The point in polygon could work but I need to use the polygon outline of the parcel to get a valid return and my trigger for this is an address point (single) XY that is associated with the parcel polygon that I then need to intersect the fema polygon to return all values.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 16:50:56 GMT</pubDate>
    <dc:creator>GeorgeStrebel</dc:creator>
    <dc:date>2014-09-12T16:50:56Z</dc:date>
    <item>
      <title>ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650554#M3153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the ArcGIS REST Services Directory query function to build a query string step by step so I can then relay the process to our web developer who has limited knowledge of GIS.&amp;nbsp; I have gotten stuck when I am trying to query a layer using Input Geometry and the Geometry type as a Polygon.&lt;/P&gt;&lt;P&gt;All the features that are being queried are in the same service; polygon for parcel, polygon for fema flood hazards.&lt;/P&gt;&lt;P&gt;The current process is as follows, take a valid address and use the Find Address Candidates operation in a GeocodeService to get the xy, take the address xy and use the Query operation on the parcel polygon to return the xy of the vertex of the associated parcel polygon.&amp;nbsp; Since HTML doesn't give me a full list of all the vertex that make up the polygon I have to return the JSON which does (see attached jasonXYReturnFromPolyon.txt).&amp;nbsp; This is where I am getting hung up, I an now trying to take the xy of the returned JSON and use it in the Query operation on the fema flood hazard polygon to return all flood zones that intersect the parcel polygon.&amp;nbsp; I can get it to work if I use the default Geometry Type: Envelope with Spatial Relationship: Intersect but it does not return accurate data.&amp;nbsp; When I try and change the Geometry Type to Polygon I get an Invalid or missing input parameters.&amp;nbsp; My guess is that either my Input Geometry is formatted wrong or the xy that is returned to represent the parcel polygon vertex is not seen as a polygon.&amp;nbsp; Any help, insight or suggestions on a better way would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:19:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650554#M3153</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-11T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650555#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean, it does not return accurate data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does your input query (geometry) look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 22:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650555#M3154</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-11T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650556#M3155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mention you can't use the HTML, so you have to take the JSON. What are you doing this in? I don't know why you would ever want the HTML response. Parsing all the HTML for the answer would be overly complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 22:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650556#M3155</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-11T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650557#M3156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;the data returned using the JSON parsed like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3141494.4837799999, 10210904.9416,&lt;/P&gt;&lt;P&gt;3141653.99658,10210458.248260001,&lt;/P&gt;&lt;P&gt;3141672.6825700002,10210411.773290001,&lt;/P&gt;&lt;P&gt;3141673.5565800001,10210409.598750001,&lt;/P&gt;&lt;P&gt;3139938.0423400002,10209644.59766,&lt;/P&gt;&lt;P&gt;3139622.1886399998,10209509.99065,&lt;/P&gt;&lt;P&gt;3139561.4069400001,10209485.35421,&lt;/P&gt;&lt;P&gt;3139103.21428,10210640.368629999,&lt;/P&gt;&lt;P&gt;3139023.60421,10210839.482410001,&lt;/P&gt;&lt;P&gt;3139083.6838099998,10210822.509020001,&lt;/P&gt;&lt;P&gt;3139471.08232,10210956.32962,&lt;/P&gt;&lt;P&gt;3140148.4559599999,10210627.96479,&lt;/P&gt;&lt;P&gt;3140200.8761300002,10210650.42275,&lt;/P&gt;&lt;P&gt;3140457.22273,10210608.13871,&lt;/P&gt;&lt;P&gt;3140749.2382200002,10210598.89168,&lt;/P&gt;&lt;P&gt;3140859.1740299999,10210620.211850001,&lt;/P&gt;&lt;P&gt;3141340.4414400002,10210858.245820001,&lt;/P&gt;&lt;P&gt;3141494.4837799999,10210904.9416&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the default Geometry Type: Envelope and Spatial Relationship as Intersects it will return results with the Correct Out Field: information&amp;nbsp; but it's not what is actually on the ground hence incorrect data.&amp;nbsp; What I am trying to do is figure out why I can't use the above xy with the &lt;STRONG&gt;Geometry Type of Polygon&lt;/STRONG&gt; Spatial Relationship of Intersects to return the correct data. Is it a parsing issue with the xy or maybe the Polygon Geometry Type is not compatible with what I am trying to accomplish.&amp;nbsp; I am not a programmer or developer and am just trying to make this work so I can turn the process over to someone that is.&amp;nbsp; I can not find any documentation or example on how to use the Query Operation with the Geometry Type: as Envelope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650557#M3156</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-12T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650558#M3157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The REST API docs are here: &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/" title="http://resources.arcgis.com/en/help/rest/apiref/"&gt;ArcGIS Server REST API&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Envelope is like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;CODE style="font-family: monospace, 'Courier New', Courier; color: #000066;"&gt;geometryType=esriGeometryEnvelope&amp;amp;&lt;SPAN style="font-weight: bold;"&gt;geometry={xmin: -104, ymin: 35.6, xmax: -94.32, ymax: 41}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;CODE style="font-family: monospace, 'Courier New', Courier; color: #000066;"&gt;geometryType=esriGeometryEnvelope&amp;amp;&lt;SPAN style="font-weight: bold;"&gt;geometry=-104,35.6,-94.32,41&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is my working query:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/9831_Capture.JPG" style="width: 620px; height: 453px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650558#M3157</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-12T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650559#M3158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't specify a geometry, it defaults to envelope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650559#M3158</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-12T14:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650560#M3159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;here is what I get when I do the same inputs and you did in your screenshot, I had to use HTML as the return so I could show you the query otherwise it opens on a different page without the query operation dialog.&amp;nbsp; I am using 10.2, as you can see it returns values for the request output field but it not correct on what is on the ground.&lt;/P&gt;&lt;H2&gt;Query: FEMA Flood Hazard Area (ID: 11)&lt;/H2&gt;&lt;P class="rbody"&gt;&lt;/P&gt;&lt;FORM name="sdform"&gt;&lt;TABLE class="formTable"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Where:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="where" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Text:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="text" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Object IDs:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="objectIds" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Time:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="time" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Input Geometry:&lt;/TD&gt;&lt;TD&gt;&lt;TEXTAREA cols="55" name="geometry" rows="5"&gt;3141494.4837799999, 10210904.9416, 3141653.99658,10210458.248260001, 3141672.6825700002,10210411.773290001, 3141673.5565800001,10210409.598750001, 3139938.0423400002,10209644.59766, 3139622.1886399998,10209509.99065, 3139561.4069400001,10209485.35421, 3139103.21428,10210640.368629999, 3139023.60421,10210839.482410001, 3139083.6838099998,10210822.509020001, 3139471.08232,10210956.32962, 3140148.4559599999,10210627.96479, 3140200.8761300002,10210650.42275, 3140457.22273,10210608.13871, 3140749.2382200002,10210598.89168, 3140859.1740299999,10210620.211850001, 3141340.4414400002,10210858.245820001, 3141494.4837799999,10210904.9416 &lt;/TEXTAREA&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Geometry Type:&lt;/TD&gt;&lt;TD&gt; Envelope&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Input Spatial Reference:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="inSR" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Spatial Relationship:&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Relation:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="relationParam" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Out Fields:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="outFields" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Return Geometry:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT checked="checked" name="returnGeometry" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT name="returnGeometry" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Max Allowable Offset:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="maxAllowableOffset" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Geometry Precision:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="geometryPrecision" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Output Spatial Reference:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="outSR" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Return IDs Only:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="returnIdsOnly" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT checked="checked" name="returnIdsOnly" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Return Count Only:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="returnCountOnly" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT checked="checked" name="returnCountOnly" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Order By Fields:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="orderByFields" size="50" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group By Fields (For Statistics):&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="groupByFieldsForStatistics" size="50" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Output Statistics:&lt;/TD&gt;&lt;TD&gt;&lt;TEXTAREA cols="55" name="outStatistics" rows="5"&gt;&lt;/TEXTAREA&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ReturnZ:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="returnZ" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT checked="checked" name="returnZ" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ReturnM:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="returnM" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT checked="checked" name="returnM" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;Geodatabase Version Name:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="gdbVersion" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Return Distinct Values:&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="returnDistinctValues" type="radio" value="" /&gt; True&amp;nbsp; &lt;INPUT checked="checked" name="returnDistinctValues" type="radio" value="" /&gt; False&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Format:&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" colspan="2"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;&lt;P&gt;&amp;nbsp; &lt;EM&gt;# records: 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FLD_ZONE: &lt;/EM&gt; AE&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Polygon:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[3139873.98177, 1.020943624801E7] , [3139909.01713, 1.020943599571E7] , [3139909.00729, 1.020943203083E7] more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FLD_ZONE: &lt;/EM&gt; X&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Polygon:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[3140460.33887, 1.020952607624E7] , [3140460.60888, 1.020953236494E7] , [3140460.62069, 1.020953407163E7] more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FLD_ZONE: &lt;/EM&gt; AE&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Polygon:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[3147925.79506, 1.021805567762E7] , [3147952.21922, 1.021697055315E7] , [3147887.52578, 1.021696978806E7] more...&lt;/P&gt;&lt;P&gt;[3147887.77775, 1.021961688021E7] , [3147838.331, 1.021957684682E7] , [3147667.71159, 1.02195631792E7] more...&lt;/P&gt;&lt;P&gt;[3140234.74549, 1.022370575458E7] , [3140233.96891, 1.022369097705E7] , [3140309.99369, 1.022350997642E7] more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FLD_ZONE: &lt;/EM&gt; AE&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Polygon:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[3141672.32791, 1.02105661237E7] , [3141668.32202, 1.021056608794E7] , [3141668.29577, 1.02105540732E7] more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #303030;"&gt;&lt;STRONG&gt;The second screenshot below is of what happens when I change the Geometry Type to Polygon and use the dame Input Geometry, I get the Invalid or missing input parameters&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;/H2&gt;&lt;DIV style="color: #ff6666;"&gt;&lt;FORM name="sdform"&gt;&lt;H2&gt;&lt;/H2&gt;&lt;H2&gt;&lt;/H2&gt;&lt;P class="rbody"&gt;&lt;/P&gt;&lt;DIV style="color: #ff6666;"&gt; Invalid or missing input parameters.&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE class="formTable"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Where:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="where" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Text:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="text" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Object IDs:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="objectIds" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Time:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="time" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Input Geometry:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;TEXTAREA cols="55" name="geometry" rows="5"&gt;3141494.4837799999, 10210904.9416, 3141653.99658,10210458.248260001, 3141672.6825700002,10210411.773290001, 3141673.5565800001,10210409.598750001, 3139938.0423400002,10209644.59766, 3139622.1886399998,10209509.99065, 3139561.4069400001,10209485.35421, 3139103.21428,10210640.368629999, 3139023.60421,10210839.482410001, 3139083.6838099998,10210822.509020001, 3139471.08232,10210956.32962, 3140148.4559599999,10210627.96479, 3140200.8761300002,10210650.42275, 3140457.22273,10210608.13871, 3140749.2382200002,10210598.89168, 3140859.1740299999,10210620.211850001, 3141340.4414400002,10210858.245820001, 3141494.4837799999,10210904.9416 &lt;/TEXTAREA&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Geometry Type:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;Polygon&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Input Spatial Reference:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="inSR" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Spatial Relationship:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Relation:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="relationParam" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Out Fields:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="outFields" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Return Geometry:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT checked="checked" name="returnGeometry" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT name="returnGeometry" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;False &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Max Allowable Offset:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="maxAllowableOffset" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Geometry Precision:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="geometryPrecision" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Output Spatial Reference:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="outSR" size="75" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Return IDs Only:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT name="returnIdsOnly" type="radio" value="" /&gt;&lt;SPAN style="color: #303030;"&gt; True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT checked="checked" name="returnIdsOnly" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;False &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Return Count Only:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT name="returnCountOnly" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT checked="checked" name="returnCountOnly" type="radio" value="" /&gt;&lt;SPAN style="color: #303030;"&gt; False &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Order By Fields:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="orderByFields" size="50" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Group By Fields (For Statistics):&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="groupByFieldsForStatistics" size="50" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Output Statistics:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TEXTAREA cols="55" name="outStatistics" rows="5"&gt;&lt;/TEXTAREA&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;ReturnZ:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT name="returnZ" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT checked="checked" name="returnZ" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;False &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;ReturnM:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT name="returnM" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT checked="checked" name="returnM" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;False&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Geodatabase Version Name:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;INPUT name="gdbVersion" type="text" value="" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Return Distinct Values:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt; &lt;INPUT name="returnDistinctValues" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;True&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;INPUT checked="checked" name="returnDistinctValues" type="radio" value="" /&gt; &lt;SPAN style="color: #303030;"&gt;False &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #303030;"&gt;Format:&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/FORM&gt;&lt;/DIV&gt;&lt;DIV style="color: #ff6666;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650560#M3159</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-12T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650561#M3160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why polygon doesn't work, but envelope should only have 4 points. xmin, ymin and xmax, ymax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how many FEMA areas you have, you could try to Point in Polygon them (the developer could run the query themselves and ignore the rest if it isn't working right.) Many ways to solve the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this formula:&lt;/P&gt;&lt;P&gt;//+ Jonas Raoni Soares Silva&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//@ &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfromhell.com/math/is-point-in-poly" rel="nofollow" target="_blank"&gt;http://jsfromhell.com/math/is-point-in-poly&lt;/A&gt;&lt;SPAN&gt; [rev. #0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;function isPointInPoly(poly, pt){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(var c = false, i = -1, l = poly.length, j = l - 1; ++i &amp;lt; l; j = i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((poly&lt;I&gt;.y &amp;lt;= pt.y &amp;amp;&amp;amp; pt.y &amp;lt; poly&lt;J&gt;.y) || (poly&lt;J&gt;.y &amp;lt;= pt.y &amp;amp;&amp;amp; pt.y &amp;lt; poly&lt;I&gt;.y))&lt;/I&gt;&lt;/J&gt;&lt;/J&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; (pt.x &amp;lt; (poly&lt;J&gt;.x - poly&lt;I&gt;.x) * (pt.y - poly&lt;I&gt;.y) / (poly&lt;J&gt;.y - poly&lt;I&gt;.y) + poly&lt;I&gt;.x)&lt;/I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; (c = !c);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return c;&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My poly is in a file and looks like this:&lt;/P&gt;&lt;P&gt;var poly=[{x:35.1631035593,y:-106.659880001},&lt;/P&gt;&lt;P&gt;{x:35.1631035458,y:-106.659879999},&lt;/P&gt;&lt;P&gt;{x:35.1631035503,y:-106.659880015},&lt;/P&gt;&lt;P&gt;{x:35.1602168416,y:-106.679432832},&lt;/P&gt;&lt;P&gt;{x:35.1601067583,y:-106.679508129},&lt;/P&gt;&lt;P&gt;{x:35.1600635441,y:-106.679513221},&lt;/P&gt;&lt;P&gt;{x:35.1599856053,y:-106.679510715},&lt;/P&gt;&lt;P&gt;{x:35.1590417964,y:-106.680071918},&lt;/P&gt;&lt;P&gt;{x:35.1581326754,y:-106.680813656},&lt;/P&gt;&lt;P&gt;{x:35.1581325045,y:-106.681021692},&lt;/P&gt;&lt;P&gt;{x:35.1581325837,y:-106.681175784},&lt;/P&gt;&lt;P&gt;{x:35.1581326772,y:-106.681349715},&lt;/P&gt;&lt;P&gt;{x:35.1581324901,y:-106.681449898}]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650561#M3160</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-12T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650562#M3161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best I can figure it is&amp;nbsp; xy is not parsed correctly so that the corresponding vertex/xy I am providing in the Input Geometry: does not recognize it as a polygon hence I get the Invalid or missing input parameters.&amp;nbsp; Since the Envelope is only taking the xmin, ymin and xmax, ymax of probably the first four points it returns results but not all the data that the actual polygon covers.&amp;nbsp; This has been really frustrating to say the least.&amp;nbsp; The point in polygon could work but I need to use the polygon outline of the parcel to get a valid return and my trigger for this is an address point (single) XY that is associated with the parcel polygon that I then need to intersect the fema polygon to return all values.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 16:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650562#M3161</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-12T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650563#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really need to use the rest api manually?&lt;/P&gt;&lt;P&gt;what is the developer using to build this application? If they use the ESRI JavaScript API, could they just use the Query() method? It takes a geometry as a spatial filter and handles all the details for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this example, it creates a buffer then uses the geometry to grab all census blocks in the buffer. you would get a parcel and select all fema zones in it. &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/query_buffer.html" title="https://developers.arcgis.com/javascript/jssamples/query_buffer.html"&gt;Select with Feature Layer | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650563#M3162</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-12T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650564#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paul, our developer is using C# but I am going to share the JavaScript sample with him to see if he can figure something out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650564#M3163</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-12T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650565#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If he is using C# it should require &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ESRI.ArcGIS.Geodatabase&lt;/LI&gt;&lt;LI&gt;ESRI.ArcGIS.Geometry&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is for 9.3 but should be able to find for 10.x too.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm" title="http://resources.esri.com/help/9.3/arcgisengine/dotnet/7b4b8987-a3f0-4954-980f-720e61965449.htm"&gt;How to execute spatial queries&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650565#M3164</guid>
      <dc:creator>PaulCrickard1</dc:creator>
      <dc:date>2014-09-12T17:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS REST Services Directory Query Function</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650566#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Paul, this should be very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-rest-services-directory-query-function/m-p/650566#M3165</guid>
      <dc:creator>GeorgeStrebel</dc:creator>
      <dc:date>2014-09-12T17:51:51Z</dc:date>
    </item>
  </channel>
</rss>

