Runtime Content生成中layerdefinition不起效

通过Create Runtime Content生成的离线geodatabase时,MXD级别设置的QueryDefinition不起效
已邀请:

张赛

赞同来自:

【解决办法】:
根据美国工程师的回复,这是软件设计的问题。但是用户可以在featurelayer的层面上,通过设置DefinitionExpression进行图层属性的过滤。 

具体回复如下: 
Yes, it is by design that definition queries are not honored when creating runtime content from ArcMap. I have linked this case to an existing enhancement request that has already been logged regarding adding this information to our documentation. 
ENH-000083077 Documentation Enhancement Request: consider adding documentation saying that definition queries are not honored when creating Runtime Content from ArcMap. 
The workaround is to use FeatureLayer.setDefinitionExpression(String expression): https://developers.arcgis.com/ ... ssion(java.lang.String)
关于对FeatureLayer设置DefinitionExpression的具体方法,请参见下面的链接:
https://developers.arcgis.com/ ... ssion(java.lang.String)

要回复问题请先登录注册