Tabnine Logo
GetFeatureInfo.getInfoFormat
Code IndexAdd Tabnine to your IDE (free)

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

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

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

List<String> queryLayers = map( fi.getQueryLayers(), CollectionUtils.<LayerRef> getToStringMapper() );
RenderingInfo info = new RenderingInfo( fi.getInfoFormat(), fi.getWidth(), fi.getHeight(), false, null,
                    fi.getEnvelope(), 0.28, map );
String format = fi.getInfoFormat();
info.setFormat( format );
info.setFeatureCount( fi.getFeatureCount() );
org.deegree.protocol.wms.opsGetFeatureInfogetInfoFormat

Popular methods of GetFeatureInfo

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

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JComboBox (javax.swing)
  • JTable (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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