-
Notifications
You must be signed in to change notification settings - Fork 32
Provide method on FeatureService to get ALL the features #35
Comments
@mpriour Does the 10.1+ need to be ordered by objectId? Couldn't the steps for 10.1+ just be:
Or is there some reason for ordering which I've missed? |
@nixta If the "all" query for 10.1+ is not ordered by objectId, then you might also have to do an Since you're trying to get ALL the features, then the order shouldn't really matter |
@mpriour I think I see what you're saying, but that means that you will pass the Subsequent calls merely send a list of the next |
@nixta An ALL query won't have any attributes or geometry. If you need those then that it is just paging ( #36 ) and I would agree with you about the In an all query we want all of the records in the feature service, no filtering. It may be spiltting hairs and it may not actually matter, but it seems to me that |
Oh! Sorry! We'd been talking in #33 about getting ALL the features that match a query and I followed the reference from that thread to this. I'm clearly being a GitHub Rookie. Can I just confirm then: we'd want a method to get ALL records matching a (chainable) query on a FeatureService and a separate method to get ALL records from the entire FeatureService? |
Yes! We definitely want BOTH of those |
For pre 10.1 servers this is always a minimum 2 step process
objectIds
query to get total number of featuresMin: 2 , Max: (Ceiling TotalResults/maxRecordCount) + 1
For 10.1+ servers this can be a single step for small datasets, but is likely also a multistep process
exceedTransferLimit
then you're doneexceedTransferLimit
, client-side "paging" queries to get the rest of the featuresMin: 1, Max: (Ceiling TotalResults/maxRecordCount) + 1
see: #33 (comment)
The text was updated successfully, but these errors were encountered: