ThinkGeo.com    |     Documentation    |     Premium Support

WFSFeatureSource.GetBoundingBox question

Hi,


I am curious if during the GetBoundingBox request you are loading the entire dataset of a layer? I have done some experimentation and it seems the reported bounding box by the WFS is always the same even if limited to maxresults=1. This can dramatically cut back this functions overall time which would be very helpful to me as I must load each layer and check it's bounding box every time i make a request to zoom to the full extents of my map.  Also, in addition to maxresults=1, if you append 'propertyName=' with a column name that does not exist (perhaps even "ColumnDoesNotExist"), only mandatory attributes are passed which can potentially save more time and make the process almost instantaneous.


 


Please experiment with this on your servers of choice and verify that the boundedBy elements contents to not change no matter what results are returned and see if this can be incorporated. I would like to hit my GeoCache for a search and can not do so without getting the full bounding box first and if this requires loading the entire dataset from the WFS then I have effectively eliminated the purpose of trying to hit the cache to save time.


Thanks.



Nelson, 
  
 Thanks for your post and sharing! 
  
 What your said is correct, we have enhanced it and it will be available in next release. 
  
 Thanks! 
  
 Yale 


Great Yale, Thanks. 
  
 I grabbed the latest build but I had some other weird behaviors as a result but as far as the GetBoundingBox it initially looks like it shaved a good amount of time from the request. Thanks again.

Nelson, 
  
 Thanks for letting us know this! 
  
 While there are a couple of changes in latest build compare to previous build, so probably you need to change some of your codes. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale