Examples of LayerDescription


Examples of org.geotools.data.ows.LayerDescription

        /* (non-Javadoc)
         * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element, org.geotools.xml.schema.ElementValue[], org.xml.sax.Attributes, java.util.Map)
         */
        public Object getValue( Element element, ElementValue[] value, Attributes attrs, Map hints ) throws SAXException, OperationNotSupportedException {

            LayerDescription layerDesc = new LayerDescription();
            String[] queries = new String[value.length];
           
            for (int i = 0; i < value.length; i++) {
                queries[i] = (String) value[i].getValue();
            }
           
            layerDesc.setQueries(queries);
           
            String name = attrs.getValue("name");
            layerDesc.setName(name);
           
            String owsType = attrs.getValue("owsType");
            layerDesc.setOwsType(owsType);
           
            try {
                URL wfs = new URL(attrs.getValue("wfs"));
                layerDesc.setWfs(wfs);
            } catch (MalformedURLException e) {
            }
           
            try {
                URL owsURL = new URL(attrs.getValue("owsURL"));
                layerDesc.setOwsURL(owsURL);
            } catch (MalformedURLException e) {
            }
           
            return layerDesc;
        }
View Full Code Here

Examples of org.geotools.data.ows.LayerDescription

                // attributes
                if (LOGGER.isLoggable(Level.WARNING))
                    LOGGER.warning("Non vector nor raster layer, LayerDescription will not contain these attributes");
            }

            final LayerDescription layerDesc = new LayerDescription();
            layerDesc.setName(layer.getName());
            layerDesc.setOwsType(owsType);
            layerDesc.setOwsURL(owsURL);

            // populate
            layerDescriptions.add(layerDesc);
        }
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.