<?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 100.0.0 version QueryFeaturesAsync problem in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/100-0-0-version-queryfeaturesasync-problem/m-p/706107#M8893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I'm trying to query a feature service and encountered this weird problem (bug?).&lt;BR /&gt;I created a ServiceFeatureTable object using my feature service as the source.&lt;/P&gt;&lt;P&gt;When querying the service using the QueryFeaturesAsync with a point or a simple polygon the query works great,&lt;BR /&gt;but when I try querying with a polygon I created using the GeometryEngine.BufferGeodesic function the query&lt;BR /&gt;fails with this exception:&lt;BR /&gt;"System.Net.Http.HttpRequestException occurred&lt;BR /&gt;Message: A first chance exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll&lt;BR /&gt;Additional information: Response status code does not indicate success: 404 (Not Found)."&lt;/P&gt;&lt;P&gt;This polygon is a circle, created by buffering a map point by 1000 meters, it has 1 part and 74 points.&lt;BR /&gt;By watching the network traffic with Fiddler I realized the query if preformed using the GET method and the reason for the exception is that it exceeds the GET method &lt;BR /&gt;length limitation.&lt;BR /&gt;This is the request URL created for the query -&lt;BR /&gt;"GET /arcgis/rest/services/StationsAndPolygons/MapServer/0/query?f=json&amp;amp;geometry={"rings":[[[34.885552625303909,32.103815339520231], &lt;BR /&gt;[34.886451121163176,32.10378284867901],[34.887343141442116,32.103685610320348],[34.8882222572717,32.103524325250085], &lt;BR /&gt;[34.889082132867379,32.103300155859856],[34.889916571228525,32.103014717742475],[34.890719558833311,32.102670068038762], &lt;BR /&gt;[34.891485309005837,32.102268690599843],[34.892208303641837,32.101813478072422],[34.892883332991389,32.101307711036789], &lt;BR /&gt;[34.893505533211282,32.100755034348062],[34.89407042141606,32.100159430852202],[34.894573927974925,32.099525192666555], &lt;BR /&gt;[34.895012425821989,32.098856890232554],[34.895382756568843,32.098159339364294],[34.895682253232096,32.097437566530928], &lt;BR /&gt;[34.895908759412833,32.096696772623602],[34.896060644790836,32.095942295468511],[34.896136816823308,32.095179571356525], &lt;BR /&gt;[34.896136728564962,32.094414095866966],[34.896060382554822,32.093651384268028],[34.89590833074319,32.09289693177903], &lt;BR /&gt;[34.895681670460881,32.092156173981266],[34.895382036461321,32.091434447662124],[34.895011589094338,32.090736952374591], &lt;BR /&gt;[34.89457299869828,32.090068712988895],[34.894069426324002,32.089434543505348],[34.893504500930824,32.088839012388938], &lt;BR /&gt;[34.892882293219344,32.088286409674787],[34.892207286290557,32.087780716080729],[34.891484343342661,32.087325574349137], &lt;BR /&gt;[34.890718672638613,32.086924263023583],[34.889915789996522,32.086579672848856],[34.889081479072686,32.086294285963525], &lt;BR /&gt;[34.888221749722796,32.086070158034545],[34.887342794740277,32.085908903461977],[34.88645094528237,32.085811683760085], &lt;BR /&gt;[34.885552625303909,32.085779199198015],[34.884654305325441,32.085811683760085],[34.88376245586754,32.085908903461977], &lt;BR /&gt;[34.882883500885015,32.086070158034545],[34.882023771535131,32.086294285963525],[34.881189460611296,32.086579672848856], &lt;BR /&gt;[34.880386577969198,32.086924263023583],[34.879620907265156,32.087325574349137],[34.878897964317261,32.087780716080729], &lt;BR /&gt;[34.878222957388473,32.088286409674787],[34.877600749676994,32.088839012388938],[34.877035824283809,32.089434543505348], &lt;BR /&gt;[34.876532251909538,32.090068712988895],[34.876093661513472,32.090736952374591],[34.875723214146497,32.091434447662124], &lt;BR /&gt;[34.875423580146929,32.092156173981266],[34.875196919864621,32.09289693177903],[34.875044868052996,32.093651384268036], &lt;BR /&gt;[34.874968522042856,32.094414095866973],[34.874968433784503,32.095179571356525],[34.875044605816974,32.095942295468511], &lt;BR /&gt;[34.875196491194984,32.096696772623602],[34.875422997375715,32.097437566530928],[34.875722494038975,32.098159339364294], &lt;BR /&gt;[34.876092824785829,32.098856890232554],[34.876531322632886,32.099525192666555],[34.877034829191757,32.100159430852202], &lt;BR /&gt;[34.877599717396535,32.100755034348062],[34.878221917616422,32.101307711036789],[34.878896946965973,32.101813478072422], &lt;BR /&gt;[34.87961994160198,32.102268690599843],[34.880385691774507,32.102670068038762],[34.881188679379285,32.103014717742475], &lt;BR /&gt;[34.882023117740438,32.103300155859856],[34.882882993336118,32.103524325250085],[34.883762109165694,32.103685610320348], &lt;BR /&gt;[34.884654129444634,32.10378284867901],[34.885552625303909,32.103815339520231]]]} &lt;BR /&gt;&amp;amp;geometryType=esriGeometryPolygon&amp;amp;inSR=4326&amp;amp;maxAllowableOffset=0.000000&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;returnCountOnly=false&amp;amp;returnDistinctValues=false&amp;amp; &lt;BR /&gt;returnExtentOnly=false&amp;amp;returnGeometry=true&amp;amp;returnIdsOnly=false&amp;amp;returnM=false&amp;amp;returnZ=true&amp;amp;spatialRel=esriSpatialRelIntersects HTTP/1.1"&lt;BR /&gt;I've recreated this error using the "query" page of the feature service using the geometry's json and the GET method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="317612" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/317612_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the POST method the query works fine.&lt;/P&gt;&lt;P&gt;My conclusion is that the QueryFeaturesAsync implementation is using the GET method while it should be using the POST method.&lt;BR /&gt;So, is my conclusion correct? is it really a bug or am i missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 09:58:27 GMT</pubDate>
    <dc:creator>NirShafrir</dc:creator>
    <dc:date>2017-02-08T09:58:27Z</dc:date>
    <item>
      <title>100.0.0 version QueryFeaturesAsync problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/100-0-0-version-queryfeaturesasync-problem/m-p/706107#M8893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I'm trying to query a feature service and encountered this weird problem (bug?).&lt;BR /&gt;I created a ServiceFeatureTable object using my feature service as the source.&lt;/P&gt;&lt;P&gt;When querying the service using the QueryFeaturesAsync with a point or a simple polygon the query works great,&lt;BR /&gt;but when I try querying with a polygon I created using the GeometryEngine.BufferGeodesic function the query&lt;BR /&gt;fails with this exception:&lt;BR /&gt;"System.Net.Http.HttpRequestException occurred&lt;BR /&gt;Message: A first chance exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll&lt;BR /&gt;Additional information: Response status code does not indicate success: 404 (Not Found)."&lt;/P&gt;&lt;P&gt;This polygon is a circle, created by buffering a map point by 1000 meters, it has 1 part and 74 points.&lt;BR /&gt;By watching the network traffic with Fiddler I realized the query if preformed using the GET method and the reason for the exception is that it exceeds the GET method &lt;BR /&gt;length limitation.&lt;BR /&gt;This is the request URL created for the query -&lt;BR /&gt;"GET /arcgis/rest/services/StationsAndPolygons/MapServer/0/query?f=json&amp;amp;geometry={"rings":[[[34.885552625303909,32.103815339520231], &lt;BR /&gt;[34.886451121163176,32.10378284867901],[34.887343141442116,32.103685610320348],[34.8882222572717,32.103524325250085], &lt;BR /&gt;[34.889082132867379,32.103300155859856],[34.889916571228525,32.103014717742475],[34.890719558833311,32.102670068038762], &lt;BR /&gt;[34.891485309005837,32.102268690599843],[34.892208303641837,32.101813478072422],[34.892883332991389,32.101307711036789], &lt;BR /&gt;[34.893505533211282,32.100755034348062],[34.89407042141606,32.100159430852202],[34.894573927974925,32.099525192666555], &lt;BR /&gt;[34.895012425821989,32.098856890232554],[34.895382756568843,32.098159339364294],[34.895682253232096,32.097437566530928], &lt;BR /&gt;[34.895908759412833,32.096696772623602],[34.896060644790836,32.095942295468511],[34.896136816823308,32.095179571356525], &lt;BR /&gt;[34.896136728564962,32.094414095866966],[34.896060382554822,32.093651384268028],[34.89590833074319,32.09289693177903], &lt;BR /&gt;[34.895681670460881,32.092156173981266],[34.895382036461321,32.091434447662124],[34.895011589094338,32.090736952374591], &lt;BR /&gt;[34.89457299869828,32.090068712988895],[34.894069426324002,32.089434543505348],[34.893504500930824,32.088839012388938], &lt;BR /&gt;[34.892882293219344,32.088286409674787],[34.892207286290557,32.087780716080729],[34.891484343342661,32.087325574349137], &lt;BR /&gt;[34.890718672638613,32.086924263023583],[34.889915789996522,32.086579672848856],[34.889081479072686,32.086294285963525], &lt;BR /&gt;[34.888221749722796,32.086070158034545],[34.887342794740277,32.085908903461977],[34.88645094528237,32.085811683760085], &lt;BR /&gt;[34.885552625303909,32.085779199198015],[34.884654305325441,32.085811683760085],[34.88376245586754,32.085908903461977], &lt;BR /&gt;[34.882883500885015,32.086070158034545],[34.882023771535131,32.086294285963525],[34.881189460611296,32.086579672848856], &lt;BR /&gt;[34.880386577969198,32.086924263023583],[34.879620907265156,32.087325574349137],[34.878897964317261,32.087780716080729], &lt;BR /&gt;[34.878222957388473,32.088286409674787],[34.877600749676994,32.088839012388938],[34.877035824283809,32.089434543505348], &lt;BR /&gt;[34.876532251909538,32.090068712988895],[34.876093661513472,32.090736952374591],[34.875723214146497,32.091434447662124], &lt;BR /&gt;[34.875423580146929,32.092156173981266],[34.875196919864621,32.09289693177903],[34.875044868052996,32.093651384268036], &lt;BR /&gt;[34.874968522042856,32.094414095866973],[34.874968433784503,32.095179571356525],[34.875044605816974,32.095942295468511], &lt;BR /&gt;[34.875196491194984,32.096696772623602],[34.875422997375715,32.097437566530928],[34.875722494038975,32.098159339364294], &lt;BR /&gt;[34.876092824785829,32.098856890232554],[34.876531322632886,32.099525192666555],[34.877034829191757,32.100159430852202], &lt;BR /&gt;[34.877599717396535,32.100755034348062],[34.878221917616422,32.101307711036789],[34.878896946965973,32.101813478072422], &lt;BR /&gt;[34.87961994160198,32.102268690599843],[34.880385691774507,32.102670068038762],[34.881188679379285,32.103014717742475], &lt;BR /&gt;[34.882023117740438,32.103300155859856],[34.882882993336118,32.103524325250085],[34.883762109165694,32.103685610320348], &lt;BR /&gt;[34.884654129444634,32.10378284867901],[34.885552625303909,32.103815339520231]]]} &lt;BR /&gt;&amp;amp;geometryType=esriGeometryPolygon&amp;amp;inSR=4326&amp;amp;maxAllowableOffset=0.000000&amp;amp;outFields=*&amp;amp;outSR=4326&amp;amp;returnCountOnly=false&amp;amp;returnDistinctValues=false&amp;amp; &lt;BR /&gt;returnExtentOnly=false&amp;amp;returnGeometry=true&amp;amp;returnIdsOnly=false&amp;amp;returnM=false&amp;amp;returnZ=true&amp;amp;spatialRel=esriSpatialRelIntersects HTTP/1.1"&lt;BR /&gt;I've recreated this error using the "query" page of the feature service using the geometry's json and the GET method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="317612" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/317612_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the POST method the query works fine.&lt;/P&gt;&lt;P&gt;My conclusion is that the QueryFeaturesAsync implementation is using the GET method while it should be using the POST method.&lt;BR /&gt;So, is my conclusion correct? is it really a bug or am i missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/100-0-0-version-queryfeaturesasync-problem/m-p/706107#M8893</guid>
      <dc:creator>NirShafrir</dc:creator>
      <dc:date>2017-02-08T09:58:27Z</dc:date>
    </item>
  </channel>
</rss>

