org.deegree.feature.persistence.query.Query.getPrefilterBBoxEnvelope()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(79)

本文整理了Java中org.deegree.feature.persistence.query.Query.getPrefilterBBoxEnvelope方法的一些代码示例,展示了Query.getPrefilterBBoxEnvelope的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getPrefilterBBoxEnvelope方法的具体详情如下:
包路径:org.deegree.feature.persistence.query.Query
类名称:Query
方法名:getPrefilterBBoxEnvelope

Query.getPrefilterBBoxEnvelope介绍

[英]Tries to extract an Envelope from the query Filter that can be used as a pre-filtering step to narrow the result set.

The returned Envelope is determined by the following strategy:

  • If the filter is an OperatorFilter, it is attempted to extract an BBOX constraint from it.
  • If no BBOX constraint can be extracted from the filter (not presented or nested in Or or Not expressions, null is returned.
    [中]尝试从查询筛选器中提取信封,该信封可用作预筛选步骤,以缩小结果集。
    返回的信封由以下策略决定:
    *如果筛选器是OperatorFilter,则会尝试从中提取BBOX约束。
    *如果无法从筛选器中提取BBOX约束(未在OrNot表达式中显示或嵌套),则返回null

代码示例

代码示例来源:origin: deegree/deegree3

Envelope bbox = q.getPrefilterBBoxEnvelope();
if ( bbox == null ) {
  bbox = calcEnvelope( ftName );

代码示例来源:origin: deegree/deegree3

Envelope env = queries[0].getPrefilterBBoxEnvelope();
if ( getSchema().getBlobMapping() != null && queries[0].getFilter() == null
   && queries[0].getSortProperties().length == 0 ) {
  wmsStyleQuery = true;
  for ( int i = 1; i < queries.length; i++ ) {
    Envelope queryBBox = queries[i].getPrefilterBBoxEnvelope();
    if ( queryBBox != env && queries[i].getFilter() != null && queries[i].getSortProperties() != null ) {
      wmsStyleQuery = false;

代码示例来源:origin: deegree/deegree3

Envelope bbox = getTransformedEnvelope( query.getPrefilterBBoxEnvelope() );

代码示例来源:origin: deegree/deegree3

if ( query.getPrefilterBBoxEnvelope() != null && ftEnv != null && storageCRS != null ) {
  Envelope prefilterBox = query.getPrefilterBBoxEnvelope();
  if ( prefilterBox.getCoordinateSystem() != null
     && !prefilterBox.getCoordinateSystem().equals( storageCRS ) ) {

相关文章