<?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 Query.geometry problem ('geometry' parameter is invalid) in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-geometry-problem-geometry-parameter-is/m-p/309924#M7368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an odd problem with adding a geometry to a query. The geometry I am trying to add to this query is a little complex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I add a bunch of graphics to a map. As I am adding them to the map, I push their geometry to an array so that I can buffer each of the graphics I just added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, I buffer all of the graphics I have added to the map and use bufferParameters.unionResults=true so that my bufferResults come back as a single polygon (which is also a multipart polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Third, I take the result of my buffer (which is a single multipart polygon) and use this as the geometry to another query. So pretty much, I want get features that are within the bufferzone of other graphics spread over the map. (For example, Hospitals within 1000 feet of schools).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working exactly how I want it to with lower buffer zones and a relatively low amount of graphics I'm buffering around. If I buffer 1000 feet around 500 schools, I get my results exactly how I would expect. However, if I add in more graphics to the mix and a higher buffer, I get some problems. For example, if I buffer 1000 feet around schools AND daycare facilities, I get results as expected, but if I buffer 2000 feet around schools AND daycare facilities, I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'geometry' parameter is invalid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error when I try to plug in the buffer zones as the geometry for the query, so I am actually getting the buffer zones to work and they even show up on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually found a sweet spot for the query geometry that is 1820 feet for multipart polygon. If I set it to 1820 its fine, if I set it to 1821 then I get the "'geometry' parameter is invalid" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas here? I was thinking perhaps I was getting more results back than my service allowed with the higher geometry, but this isn't the case. The total number I can get back is less than what I have my max set to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 15:44:11 GMT</pubDate>
    <dc:creator>CoreySchafer</dc:creator>
    <dc:date>2011-08-16T15:44:11Z</dc:date>
    <item>
      <title>Query.geometry problem ('geometry' parameter is invalid)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-geometry-problem-geometry-parameter-is/m-p/309924#M7368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an odd problem with adding a geometry to a query. The geometry I am trying to add to this query is a little complex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I add a bunch of graphics to a map. As I am adding them to the map, I push their geometry to an array so that I can buffer each of the graphics I just added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, I buffer all of the graphics I have added to the map and use bufferParameters.unionResults=true so that my bufferResults come back as a single polygon (which is also a multipart polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Third, I take the result of my buffer (which is a single multipart polygon) and use this as the geometry to another query. So pretty much, I want get features that are within the bufferzone of other graphics spread over the map. (For example, Hospitals within 1000 feet of schools).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working exactly how I want it to with lower buffer zones and a relatively low amount of graphics I'm buffering around. If I buffer 1000 feet around 500 schools, I get my results exactly how I would expect. However, if I add in more graphics to the mix and a higher buffer, I get some problems. For example, if I buffer 1000 feet around schools AND daycare facilities, I get results as expected, but if I buffer 2000 feet around schools AND daycare facilities, I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'geometry' parameter is invalid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error when I try to plug in the buffer zones as the geometry for the query, so I am actually getting the buffer zones to work and they even show up on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually found a sweet spot for the query geometry that is 1820 feet for multipart polygon. If I set it to 1820 its fine, if I set it to 1821 then I get the "'geometry' parameter is invalid" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas here? I was thinking perhaps I was getting more results back than my service allowed with the higher geometry, but this isn't the case. The total number I can get back is less than what I have my max set to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-geometry-problem-geometry-parameter-is/m-p/309924#M7368</guid>
      <dc:creator>CoreySchafer</dc:creator>
      <dc:date>2011-08-16T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Query.geometry problem ('geometry' parameter is invalid)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-geometry-problem-geometry-parameter-is/m-p/309925#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you try validating the geometry returned from buffer for 1821 features using &lt;/SPAN&gt;&lt;A href="http://jsonlint.com"&gt;http://jsonlint.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 16:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/query-geometry-problem-geometry-parameter-is/m-p/309925#M7369</guid>
      <dc:creator>MehulChoksey</dc:creator>
      <dc:date>2011-08-16T16:37:56Z</dc:date>
    </item>
  </channel>
</rss>

