Querying REST API

2258
2
Jump to solution
03-03-2016 09:50 AM
IngridAldridge1
New Contributor III

Hello,

My web master is trying to run a query against a feature service stored in AGOL.  The link is

https://services.arcgis.com/DknzyjEEie5tEW0u/ArcGIS/rest/services/CRT_Bridges_Public/FeatureServer/0...

Despite the pagination beings set to true the result offset is not stepping beyond the points brought in initially.

The form is being filled out as follows:

WHERE = OBJECTID > 0

OUT FIELDS = *

OUTPUT SPATIAL REFERENCE = 4326

ORDER BY FIELDS = OBJECTID

FORMAT = JSON

executing a Query(GET)

Which returns the values 1-2000 with no problem.  If I change the where clause to be

WHERE = OBJECTID > 2000

The results 2001-4000 are returned.

However, if I use t he original criteria and add

RESULT OFFSET = 2000

The results returned continue to be 1-2000.

I'm hoping I am simply missing something straight forward.  Any ideas?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
TracySchloss
Frequent Contributor

Your max record count on your service is set to 2000.  You'll need to increase that number to get anything beyond the 2000th record.

View solution in original post

2 Replies
TracySchloss
Frequent Contributor

Your max record count on your service is set to 2000.  You'll need to increase that number to get anything beyond the 2000th record.

IngridAldridge1
New Contributor III

Thank you Tracy.  I knew I was missing something obvious!  We had the max record count set low to reduce the drawing time in AGOL along with scale dependencies.  I guess we're going to need to leverage that a bit more.  Thank you for the help and the prompt reply!

0 Kudos