Beispiel #1
0
  private List<LayerQuery> prepareGetFeatures(org.deegree.protocol.wms.ops.GetFeatureInfo gfi) {
    List<LayerQuery> queries = new ArrayList<LayerQuery>();

    Iterator<LayerRef> layerItr = gfi.getQueryLayers().iterator();
    Iterator<StyleRef> styleItr = gfi.getStyles().iterator();
    List<OperatorFilter> filters = gfi.getFilters();
    Iterator<OperatorFilter> filterItr = filters == null ? null : filters.iterator();
    while (layerItr.hasNext()) {
      LayerRef lr = layerItr.next();
      StyleRef sr = styleItr.next();
      OperatorFilter f = filterItr == null ? null : filterItr.next();
      final int layerRadius = defaultLayerOptions.getFeatureInfoRadius();
      LayerQuery query =
          new LayerQuery(
              gfi.getEnvelope(),
              gfi.getWidth(),
              gfi.getHeight(),
              gfi.getX(),
              gfi.getY(),
              gfi.getFeatureCount(),
              f,
              sr,
              gfi.getParameterMap(),
              gfi.getDimensions(),
              new MapOptionsMaps(),
              gfi.getEnvelope(),
              layerRadius);
      queries.add(query);
    }
    return queries;
  }
Beispiel #2
0
 /** @return the global max features setting */
 public int getGlobalMaxFeatures() {
   return defaultLayerOptions.getMaxFeatures();
 }
Beispiel #3
0
 /** @return the default feature info radius */
 public int getGlobalFeatureInfoRadius() {
   return defaultLayerOptions.getFeatureInfoRadius();
 }