Examples of MetaDataMap


Examples of org.geoserver.catalog.MetadataMap

        for(Layer tempLayer:layers){
            if(tempLayer instanceof RasterLayer){
                String title = tempLayer.getTitle();
                LayerInfo layerInfo = catalog.getLayerByName(title);       
                if(layerInfo!=null){
                    MetadataMap metadata= layerInfo.getMetadata();
                    if(metadata.containsKey(EoLayerType.KEY)&&metadata.get(EoLayerType.KEY).equals(BAND_COVERAGE_VALUE)){  
                        layer=(RasterLayer) tempLayer;
                        break;
                    }
                }
            }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

        return GeoServerApplication.get().getCatalog().getLayer(layerId);
    }

    public void setLayer(LayerInfo layer, String layerGroupName) {
        layerId = layer.getId();
        MetadataMap metadata = layer.getMetadata();
        layerType = metadata.get(EoLayerType.KEY, EoLayerType.class);
        if(layerType == EoLayerType.BAND_COVERAGE) {
            layerSubName = "bands";
        } else if(layerType == EoLayerType.BROWSE_IMAGE) {
            layerSubName = "browse";
        } else {
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

        }
        if (service.getExceptionFormats() == null) {
            ((CSWInfoImpl) service).setExceptionFormats(new ArrayList());
        }
        if (service.getMetadata() == null) {
            ((CSWInfoImpl) service).setMetadata(new MetadataMap());
        }
        if (service.getClientProperties() == null) {
            ((CSWInfoImpl) service).setClientProperties(new HashMap());
        }
        if (service.getVersions() == null) {
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

        writer.writeNamespace("geo", GEO_NS);
        writer.setDefaultNamespace(SITEMAP_NS);

        writer.setPrefix("geo", GEO_NS);
        for (LayerInfo info : catalog.getLayers()) {
            final MetadataMap metadata = info.getMetadata();
            final Boolean indexingEnabled = metadata.get(INDEXING_ENABLED, Boolean.class);
            if (null == indexingEnabled || Boolean.FALSE.equals(indexingEnabled)) {
                continue;
            }
            final String layerName = info.getResource().getPrefixedName();

            writeUrl(writer, metadata, layerName);
        }
        for (LayerGroupInfo info : catalog.getLayerGroups()) {
            final MetadataMap metadata = info.getMetadata();
            final Boolean indexingEnabled = metadata.get(INDEXING_ENABLED, Boolean.class);
            if (null == indexingEnabled || Boolean.FALSE.equals(indexingEnabled)) {
                continue;
            }
            final String layerName = info.getName();
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

     * @return the timeout, or -1 if infinite timeout.
     */
    public double getConnectionTimeout() {
        if(connectionTimeout == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_CONNECTION_TIMEOUT;
            }
            Double timeout = md.get(KEY_CONNECTION_TIMEOUT, Double.class);
            if(timeout == null) {
                return DEFAULT_CONNECTION_TIMEOUT;
            }
            connectionTimeout = timeout;
        }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

    }

    public int getResourceExpirationTimeout() {
        if(resourceExpirationTimeout == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_RESOURCE_EXPIRATION_TIMEOUT;
            }
            Integer timeout = md.get(KEY_RESOURCE_EXPIRATION_TIMEOUT, Integer.class);
            if(timeout == null) {
                return DEFAULT_RESOURCE_EXPIRATION_TIMEOUT;
            }
            resourceExpirationTimeout = timeout;
        }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

    }

    public int getMaxSynchronousProcesses() {
        if(maxSynchronousProcesses == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_MAX_SYNCH;
            }
            Integer max = md.get(KEY_MAX_SYNCH, Integer.class);
            if(max == null) {
                return DEFAULT_MAX_SYNCH;
            }
            maxSynchronousProcesses = max;
        }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

    }

    public int getMaxAsynchronousProcesses() {
        if(maxAsynchronousProcesses == null) {
            // check the metadata map for backwards compatibility with 2.1.x series
            MetadataMap md = getMetadata();
            if(md == null) {
                return DEFAULT_MAX_ASYNCH;
            }
            Integer max = md.get(KEY_MAX_ASYNCH, Integer.class);
            if(max == null) {
                return DEFAULT_MAX_ASYNCH;
            }
            maxAsynchronousProcesses = max;
        }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

        this.onlineResource = onlineResource;
    }

    public MetadataMap getMetadata() {
        if (metadata == null) {
            metadata = new MetadataMap();
        }
        return metadata;
    }
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap

            List<AttributeTypeInfo> attributes = fti.getAttributes();
            for (AttributeTypeInfo attr : attributes) {
                ftb.add(attr.getName(), attr.getBinding());
            }
            ft = ftb.buildFeatureType();
            MetadataMap metadata = fti.getMetadata();
            if (metadata.containsKey("importschemanames")) {
                Map<Object, Object> userData = ft.getUserData();
                userData.put("schemanames", metadata.get("importschemanames"));
            }
        }
        return read(ft, file);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.