congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
GetFeatureInfo.getQueryLayers
Code IndexAdd Tabnine to your IDE (free)

How to use
getQueryLayers
method
in
org.deegree.protocol.wms.ops.GetFeatureInfo

Best Java code snippets using org.deegree.protocol.wms.ops.GetFeatureInfo.getQueryLayers (Showing top 6 results out of 315)

origin: deegree/deegree3

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;
}
origin: deegree/deegree3

params.put( "version", wmsVersion.toString() );
params.put( "service", "WMS" );
String csvLayerNames = join( ",", gfi.getQueryLayers() );
params.put( "layers", csvLayerNames );
params.put( "query_layers", csvLayerNames );
origin: deegree/deegree3

for ( LayerRef n : gfi.getQueryLayers() ) {
  LayerQuery query = queryIter.next();
  for ( org.deegree.layer.Layer l : Themes.getAllLayers( themeMap.get( n.getName() ) ) ) {
origin: deegree/deegree3

private void checkGetFeatureInfo( Version version, org.deegree.protocol.wms.ops.GetFeatureInfo gfi )
            throws OWSException {
  if ( gfi.getInfoFormat() != null && !gfi.getInfoFormat().equals( "" )
     && !featureInfoManager.getSupportedFormats().contains( gfi.getInfoFormat() ) ) {
    throw new OWSException( get( "WMS.INVALID_INFO_FORMAT", gfi.getInfoFormat() ), OWSException.INVALID_FORMAT );
  }
  for ( LayerRef lr : gfi.getQueryLayers() ) {
    if ( !service.hasTheme( lr.getName() ) ) {
      throw new OWSException( "The layer with name " + lr.getName() + " is not defined.", "LayerNotDefined",
                  "layers" );
    }
  }
  for ( StyleRef sr : gfi.getStyles() ) {
    // TODO check style availability
  }
  try {
    if ( gfi.getCoordinateSystem() == null ) {
      // this can happen if some AUTO SRS id was invalid
      controllers.get( version ).throwSRSException( "automatic" );
    }
    ICRS crs = gfi.getCoordinateSystem();
    if ( crs instanceof CRSRef ) {
      ( (CRSRef) crs ).getReferencedObject();
    }
  } catch ( ReferenceResolvingException e ) {
    // only throw an exception if a truly invalid srs is found
    // this makes it possible to request srs that are not advertised, which may be useful
    controllers.get( version ).throwSRSException( gfi.getCoordinateSystem().getAlias() );
  }
}
origin: deegree/deegree3

/**
 * Performs a <code>GetFeatureInfo</code> request and returns the response as a {@link FeatureCollection}.
 * 
 * @param request
 *            request parameter, must not be <code>null</code>
 * @param hardParams
 *            raw parameters for augmenting overriding KVPs, must not be <code>null</code>
 * @return response parsed as feature collection, never <code>null</code>
 * @throws IOException
 * @throws OWSExceptionReport
 * @throws XMLStreamException
 */
public FeatureCollection doGetFeatureInfo( GetFeatureInfo request, Map<String, String> hardParams )
            throws IOException, OWSExceptionReport, XMLStreamException {
  Map<String, String> params = buildGetFeatureInfoParamMap( request, hardParams );
  overrideHardParams( params, hardParams );
  OwsHttpResponse response = null;
  try {
    URL url = getGetUrl( GetFeatureInfo.name() );
    response = httpClient.doGet( url, params, null );
    response.assertHttpStatus200();
    XMLStreamReader reader = response.getAsXMLStream();
    String csvLayerNames = join( ",", request.getQueryLayers() );
    return FeatureInfoParser.parseAsFeatureCollection( reader, csvLayerNames );
  } finally {
    closeQuietly( response );
  }
}
origin: deegree/deegree3

ICRS crs = fi.getCoordinateSystem();
boolean geometries = fi.returnGeometries();
List<String> queryLayers = map( fi.getQueryLayers(), CollectionUtils.<LayerRef> getToStringMapper() );
org.deegree.protocol.wms.opsGetFeatureInfogetQueryLayers

Popular methods of GetFeatureInfo

  • <init>
  • getCoordinateSystem
  • getEnvelope
  • getFeatureCount
  • getHeight
  • getWidth
  • getX
  • getY
  • cleanUpLayers
  • getDimensions
  • getFilters
  • getInfoFormat
  • getFilters,
  • getInfoFormat,
  • getParameterMap,
  • getStyles,
  • handleCommon,
  • handleSLD,
  • parse111,
  • parse130,
  • returnGeometries

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now