10.2.5 ArcGis for iOS AGSQueryTask 空间查询

您好,请问有官方AGSQueryTask空间查询的例子吗?我在网上查询的资料都是属性查询,我使用OC ArcGis for iOS 10.2.5. 期待你的回答
已邀请:

goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow

赞同来自: 马克玲

AGSEnvelope* env = ...;

AGSQuery* query = [AGSQuery query];
query.geometry = env;
query.spatialRelationship = AGSSpatialRelationshipIntersects;

[queryTask executeWithQuery:query] ;

上面的是10.2.5的代码,基本上query.geomtry 需要指定的是一个AGSGeometry,点线面的geomery都行, Envelope也可以。 然后再定义空间关系spatialRelationship基本就可以作判断了,是相交,包含等等
这是相关的API文档:AGSQuery geometry 10.2.5
 
这个是github的连接,虽然是100.0版本的但是基本用法是一样的:AGSQuery geometry 10.2.5
 

要回复问题请先登录注册