<?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: geometry parameter is invalid for QUERY but ok for BUFFER?! in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141027#M663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rahul: Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 19:30:39 GMT</pubDate>
    <dc:creator>WillBranch</dc:creator>
    <dc:date>2010-10-04T19:30:39Z</dc:date>
    <item>
      <title>geometry parameter is invalid for QUERY but ok for BUFFER?!</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141024#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a C# library wrapper for REST services (GeometryServer/buffer...).&amp;nbsp; Using this library I can buffer points, lines and polygons and get valid json responses.&amp;nbsp; I have gotten it to where I can pass in properly formatted geometries in json via POST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However.&amp;nbsp; When it comes to passing in non-simple geometries to the QUERY service I keep getting a "geometry parameter is invalid" response...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a geometry being passed into my server to be buffered, and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://216.237.216.18/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries={%22geometryType%22:%22esriGeometryPolygon%22,%22geometries%22:[{%22rings%22:[[[403334.828,1604313.472],[400334.828,1609313.472],[405334.828,1602313.472],[403334.828,1604313.472]]]}],%22spatialReference%22:{%22wkid%22:2236}}&amp;amp;inSR=2236&amp;amp;outSR=2236&amp;amp;bufferSR=2236&amp;amp;distances=1000&amp;amp;unit=9002&amp;amp;unionResults=false"&gt;http://216.237.216.18/ArcGIS/rest/services/Geometry/GeometryServer/buffer?...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the same geometry being passed into the same server to query a parcel layer, and it does not work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://216.237.216.18/ArcGIS/rest/services/leesburg/MapServer/3/query?text=&amp;amp;geometry={%22geometryType%22:%22esriGeometryPolygon%22,%22geometries%22:[{%22rings%22:[[[403334.828,1604313.472],[400334.828,1609313.472],[405334.828,1602313.472],[403334.828,1604313.472]]]}],%22spatialReference%22:{%22wkid%22:2236}}&amp;amp;geometryType=esriGeometryPolygon&amp;amp;inSR=2236&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;where=&amp;amp;returnGeometry=true&amp;amp;outSR=2236&amp;amp;outFields=*&amp;amp;f=html"&gt;http://216.237.216.18/ArcGIS/rest/services/leesburg/MapServer/3/query?...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have the same problems on a ver 10 server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on what is wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 19:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141024#M660</guid>
      <dc:creator>WillBranch</dc:creator>
      <dc:date>2010-09-28T19:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: geometry parameter is invalid for QUERY but ok for BUFFER?!</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141025#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No ideas on what could be the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 14:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141025#M661</guid>
      <dc:creator>WillBranch</dc:creator>
      <dc:date>2010-10-04T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: geometry parameter is invalid for QUERY but ok for BUFFER?!</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141026#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Geometry service's buffer operation, takes in an array of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;geometries&lt;/SPAN&gt;&lt;SPAN&gt;. Refer to the REST API documentation at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/buffer.html"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/buffer.html&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Map Service query operation takes in a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt; object (as you can only specify one filter geometry at a time) and NOT an array of geometries (used for the Geometry service's buffer operation). For information on the Map Server's query operation look at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/query.html"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/query.html&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to use the Silverlight API, which has C# bindings for ArcGIS server's REST API, as much of this work has already been done for you. Its got a very rich client API, that you can use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 17:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141026#M662</guid>
      <dc:creator>RahulRavikumar</dc:creator>
      <dc:date>2010-10-04T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: geometry parameter is invalid for QUERY but ok for BUFFER?!</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141027#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rahul: Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 19:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geometry-parameter-is-invalid-for-query-but-ok-for/m-p/141027#M663</guid>
      <dc:creator>WillBranch</dc:creator>
      <dc:date>2010-10-04T19:30:39Z</dc:date>
    </item>
  </channel>
</rss>

