Tabnine Logo
Description.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.deegree.commons.ows.metadata.Description
constructor

Best Java code snippets using org.deegree.commons.ows.metadata.Description.<init> (Showing top 7 results out of 315)

origin: deegree/deegree3

private Theme buildAutoTheme( Map<String, LayerStore> stores ) {
  Description desc = new Description( null, Collections.singletonList( new LanguageString( "root", null ) ),
                    null, null );
  LayerMetadata md = new LayerMetadata( null, desc, new SpatialMetadata( null, Collections.<ICRS> emptyList() ) );
  List<Theme> themes = new ArrayList<Theme>();
  for ( Entry<String, LayerStore> e : stores.entrySet() ) {
    themes.add( buildAutoTheme( e.getKey(), e.getValue() ) );
  }
  return new StandardTheme( md, themes, new ArrayList<Layer>(), metadata );
}
origin: deegree/deegree3

private Theme buildAutoTheme( String id, LayerStore store ) {
  Description desc = new Description( id, singletonList( new LanguageString( id, null ) ), null, null );
  LayerMetadata md = new LayerMetadata( null, desc, new SpatialMetadata( null, Collections.<ICRS> emptyList() ) );
  List<Theme> themes = new ArrayList<Theme>();
  for ( Layer l : store.getAll() ) {
    themes.add( buildAutoTheme( l ) );
  }
  return new StandardTheme( md, themes, new ArrayList<Layer>(), metadata );
}
origin: deegree/deegree3

static LayerMetadata buildMetadataForAutoMode( FeatureStore store, FeatureType ft, String name ) {
  List<ICRS> crs = new ArrayList<ICRS>();
  Envelope envelope = null;
  try {
    envelope = store.getEnvelope( ft.getName() );
  } catch ( Throwable e ) {
    LOG.debug( "Could not get envelope from feature store: {}", e.getLocalizedMessage() );
    LOG.trace( "Stack trace:", e );
  }
  if ( envelope != null ) {
    crs.add( envelope.getCoordinateSystem() );
  }
  SpatialMetadata smd = new SpatialMetadata( envelope, crs );
  Description desc = new Description( name, Collections.singletonList( new LanguageString( name, null ) ), null,
                    null );
  LayerMetadata md = new LayerMetadata( name, desc, smd );
  md.getFeatureTypes().add( ft );
  return md;
}
origin: deegree/deegree3

return new Description( null, titles, abstracts, keywords );
origin: deegree/deegree3

public static Description fromJaxb( List<LanguageStringType> titles, List<LanguageStringType> abstracts,
                  List<KeywordsType> keywords ) {
  Description desc = new Description( null, null, null, null );
  if ( titles != null ) {
    desc.setTitles( map( titles, LANG_LANG_MAPPER ) );
  }
  if ( abstracts != null ) {
    desc.setAbstracts( map( abstracts, LANG_LANG_MAPPER ) );
  }
  if ( keywords != null ) {
    desc.setKeywords( map( keywords, KW_MAPPER ) );
  }
  return desc;
}
origin: deegree/deegree3

LayerStore createFromAutoLayers( AutoLayers cfg ) {
  String cid = cfg.getCoverageStoreId();
  String sid = cfg.getStyleStoreId();
  Coverage cov = workspace.getResource( CoverageProvider.class, cid );
  StyleStore sstore = null;
  if ( sid != null ) {
    sstore = workspace.getResource( StyleStoreProvider.class, sid );
  }
  SpatialMetadata smd = new SpatialMetadata( cov.getEnvelope(),
                        Collections.singletonList( cov.getCoordinateSystem() ) );
  Description desc = new Description( cid, Collections.singletonList( new LanguageString( cid, null ) ), null,
                    null );
  LayerMetadata md = new LayerMetadata( cid, desc, smd );
  md.getFeatureTypes().add( buildFeatureType() );
  if ( sstore != null ) {
    for ( Style s : sstore.getAll( cid ) ) {
      md.getStyles().put( s.getName(), s );
    }
  }
  Layer l = new CoverageLayer( md, cov instanceof AbstractRaster ? (AbstractRaster) cov : null,
                 cov instanceof MultiResolutionRaster ? (MultiResolutionRaster) cov : null );
  return new SingleLayerStore( l, metadata );
}
origin: deegree/deegree3

Description desc = new Description( null, null, null, null );
desc.setTitles( singletonList( new LanguageString( title, null ) ) );
if ( abstract_ != null ) {
org.deegree.commons.ows.metadataDescription<init>

Javadoc

Creates a new Description instance.

Popular methods of Description

  • getAbstracts
  • getKeywords
  • getTitles
  • setAbstracts
  • setKeywords
  • setTitles
  • getAbstract
    Returns the abstract in the specified language.
  • getName
    Returns the name of the object.
  • getTitle
    Returns the title in the specified language.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Top plugins for WebStorm
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