Examples of LayerFeatureConstraints


Examples of org.geotools.styling.LayerFeatureConstraints

    public LayerFeatureConstraints build() {
        if (unset) {
            return null;
        }
        FeatureTypeConstraint[] featureTypeConstraints = null;
        LayerFeatureConstraints constraints = sf
                .createLayerFeatureConstraints(featureTypeConstraints);
        return constraints;
    }
View Full Code Here

Examples of org.geotools.styling.LayerFeatureConstraints

    }

    public void test() throws Exception {
        SLDMockData.layerFeatureConstraints(document, document);

        LayerFeatureConstraints lfc = (LayerFeatureConstraints) parse();
        assertNotNull(lfc);

        assertEquals(2, lfc.getFeatureTypeConstraints().length);
    }
View Full Code Here

Examples of org.geotools.styling.LayerFeatureConstraints

            userLayer.setRemoteOWS((RemoteOWS) node.getChildValue("RemoteOWS"));
        }

        //<xsd:element ref="sld:LayerFeatureConstraints"/>
        if (node.hasChild("LayerFeatureConstraints")) {
            LayerFeatureConstraints lfc = (LayerFeatureConstraints) node.getChildValue(
                    "LayerFeatureConstraints");
            userLayer.setLayerFeatureConstraints(lfc.getFeatureTypeConstraints());
        }

        //<xsd:element ref="sld:UserStyle" maxOccurs="unbounded"/>
        for (Iterator i = node.getChildValues("UserStyle").iterator(); i.hasNext();) {
            userLayer.addUserStyle((Style) i.next());
View Full Code Here

Examples of org.geotools.styling.LayerFeatureConstraints

        //<xsd:element ref="sld:Name"/>
        namedLayer.setName((String) node.getChildValue("Name"));

        //<xsd:element ref="sld:LayerFeatureConstraints" minOccurs="0"/>
        if (node.hasChild("LayerFeatureConstraints")) {
            LayerFeatureConstraints constraints = (LayerFeatureConstraints) node.getChildValue(
                    "LayerFeatureConstraints");
            namedLayer.setLayerFeatureConstraints(constraints.getFeatureTypeConstraints());
        }

        //<xsd:choice minOccurs="0" maxOccurs="unbounded">
        //  <xsd:element ref="sld:NamedStyle"/>
        //  <xsd:element ref="sld:UserStyle"/>
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.