Just wanted to share a small bug that we found the other day when doing some work with the ArcGIS Server Flex api (v2.0).
I am working on a proof on concept app where I need to return a very large number of points. Possibly 500,000+ points. I dont need to actually display them (the selected points), just capture some attributes of the points.
Its very cool that Esri has caught on to doing things this way, as I know I have been doing it for years, starting in the early days of ArcIMS. ArcIMS and to some (lesser) degree, ArcGIS Server, aren't very efficient with querying/parsing large result sets, and thats totally understandable. What we have always done is to just grab the absolute minimum of fields when we send a query - usually OBJECTID or other unique identifier. Then we take those results and send the full query using the objectid list. Yes, its another trip to the server, but it is almost always faster and far more flexible/powerful.
Anyway, so again, I needed to select a really large number of points spatially on the map. Obviously we can't think about displaying a huge number of points like that on the map, and luckily we dont need to in this case. But, in the case that you do, I would highly recommend you check out Mansour Raad's blog post on point clustering. Fantastic work.
So, it would seem that using a querytask and executeForIds (new in 2.0) would be my best bet. Instead of returning attributes of your selected features, this method simply returns an array of objectids that you can then use to do whatever you like. So, executing a query directly in the browser based REST services explorer with "Return IDs only" (the equivalent executeForIds in Flex) set to true, the operation works exactly as expected. However, if I use Flex, it doesnt work as I hoped. It takes forever, and will eventually fail. Looking at the query request using firebug, I noticed that the url doesn't include returnGeometry = false, even though I set it explicitly to false. Strange huh? So, yeah, its attempting to grab the geometry for all 600k points - and that's obviously causing quite a strain and eventually causes it to fail. Well, it turns out to be a bug, but luckily, there is a very easy workaround.
Simply hardcode a returnGeometry=false into your querytask url.
var queryTask:QueryTask = new QueryTask;
queryTask.url = 'http://server/ArcGIS/rest/services/servicename/MapServer/0?returnGeometry=false';
var query:Query = new Query();
query.spatialRelationship = spatialRel.selectedItem.data;
query.geometry = selectedGeom;
query.returnGeometry = false;
queryTask.executeForIds(query, new AsyncResponder(onResult, onFault));
I had no idea that type of workaround could work, it indeed it does.
Jason Harris



Comments
Das ist echt wunderbar fuer mich!
viagra acheter
generique viagra en ligne
viagra pas cher pharmacie
australian online casinoslots machine games aussie pokies
nike mercurial vapor 2012
Mesalles confirmed that City have offered 25million euros and says his client may yet sign for the Barclays Premier League club.
"There are only about six or seven clubs out there who could afford Samuel, but Manchester City is one and they are a serious club."
"We have had two meetings with the club and they have told us both times that Samuel is not in their plans for next season," he said.
He said: "Laporta has come out several times and said that Samuel is demanding huge quantities of money, but that is absolutely false.
nike mercurial vapor
Copa Adidas 2012
ergdgply684we
Despite the financial aspects of the block, but made bo company still believe that ibrahimovic will one day be the premier league. With last night's blockbuster goal, ibrahimovic in before the end of the premier league odds only 2/1. And he won the 2014 World Cup tally the odds also dropped to 50/1. Made bo company Alex Donohue said: "we want to see ibrahimovic can lighten the premier league."
Mancini covet ibrahimovic already for a long time, but a high salary hinder
According to sports post understanding, in 2011 ibrahimovic from Barcelona before moving to milan, roberto mancini wanted to sign him, but milan in a season on loan period, have the preemptive right zlatan ibrahimovic.
In the Paris saint germain, it is said that Qatar boss for ibrahimovic open the salary as high as 11.5 million pounds. Ibrahimovic salary after eto 'o - he is not bad money and large money AnZhi team took annual salary of $16 million. But ibrahimovic salary has enough to become the main impediment to pursue his roberto mancini the. Such salary, plus about the 拢 50 million, spent on a 30 players, even have the uae consortium support Manchester city, but also it is difficult to bear.
Thing is the most desired striker roberto mancini. But the problem is, 31 Swedish star salary high, even the Manchester city are can't afford to.
Zlatan ibrahimovic has and his salary phase matching personality. His autobiography is considered to be "individualism peak". Reason is obvious, autobiography name is called "me, zlatan".
According to sports post understanding, in 2011 ibrahimovic from Barcelona before moving to milan, roberto mancini wanted to sign him, but milan in a season on loan period, have the preemptive right zlatan ibrahimovic.
Despite the financial aspects of the block, but made bo company still believe that ibrahimovic will one day be the premier league. With last night's blockbuster goal, ibrahimovic in before the end of the premier league odds only 2/1. And he won the 2014 World Cup tally the odds also dropped to 50/1. Made bo company Alex Donohue said:mercurial 2012 "we want to see ibrahimovic can lighten the premier league."
In the past five years, ibrahimovic has been the best in the world one of five players.
Thing is the most desired striker roberto mancini. But the problem is, 31 Swedish star salary high, even the Manchester city are can't afford to.
erhdfvd2wfwwr
C Ronaldo and his girlfriend Irina wedding, not scheduled be held this summer, the two feelings does not take place and even the rumors of the situation changed, and more and more. According to the Corriere dello Sport reported that, C now has a new suitor, she is a Portuguese beauty Paula - 鎷夊反闆疯揪鏂? three roles of both actors, models and filmmakers.C Luo and then exposed the NikeNike Mercurial Olympic Mercurial CR7 scandal Qingtiao Portugal supermodel
C Ronaldo and his girlfriend Irina wedding, not scheduled be held this summer, the two feelings does Nike Mercurial 9 not take place and even the rumors of the situation changed, and more and more. According to the Corriere dello Sport reported that, C now has a new suitor, she is a Portuguese beauty Paula - 鎷夊反闆疯揪鏂? three roles of both actors, models and filmmakers.
erhdfvd2wfwwr
.
viagra preise
cialis generico
viagra precio
acheter cialis
vente viagra
cialis generico
viagra acquistare
achat viagra
viagra
viagra en ligne
bestellen viagra
cialis comprar
viagra precio
cialis prix
acheter viagra
comprare cialis
viagra generico
achat viagra
acheter viagra
viagra en ligne
lebron 10 shoe
"I've held preliminary talks with Marseille about extending my stay here. They have asked me whether I would stay beyond the loan period."
"If anyone can pull the players together, a manager of Redknapp's calibre is capable of that. They are in with a good chance now with Harry there."
Joey Barton says he thinks QPR will be relegated this season and is hoping to extend his spell at Marseille rather than return to West London next term.
"He has always done well with players and always got players on board. He is a really good man-manager.
Allen Iverson Shoes
Kevin Durant Shoes
bviviyhs18tuyrr