简体   繁体   中英

Writing Nested WHERE clause in ArcGIS Rest API Feature Service

I'm attempting to query a feature service using a nested WHERE clause. I'm trying to return the record with the highest OBJECTID count, but I'm not sure how to really adapt this to the REST query. On a feature class i would expect the WHERE clause to look something like;

SELECT MAX("OBJECTID") FROM (feature class name)

How would one go about adapting this expression to the REST query form for the WHERE clause? Thanks.

您可以设置输出统计信息值以返回此值(将where子句留空)。

[{"statisticType":"max","onStatisticField":"OBJECTID", "outStatisticFieldName":"maxobjectid"}]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM