Query Service

766
1
05-21-2012 09:32 AM
GhadaAssabry
New Contributor
Hi .. I wanna write a where clause to tell for example "where x = ' -10604000  ' " on this online service

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0/...

Any Suggestions??
0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor
That is, I believe, only possible, if the geometry is stored in the database's native spatial format (e.g. SQL Server's Geometry/Geography, or Oracle's SDO etc.). In that case, you need to send a sql query that conforms to the underlying database's syntax (not quite sure whether all databases follow the same syntax or different).

The workaround that would work regardless of underlying database is to pass in a search geometry to find all points that intersects or is contained within the search geometry.
0 Kudos