Package org.geoserver.feature

Examples of org.geoserver.feature.CompositeFeatureCollection


            FeatureCollectionType featureCollection = (FeatureCollectionType) object;

            if (!featureCollection.getFeature().isEmpty()) {
                if (featureCollection.getFeature().size() > 1) {
                    //wrap in a single
                    return new CompositeFeatureCollection(featureCollection.getFeature());
                }

                //just return the single
                return featureCollection.getFeature().iterator().next();
            }
View Full Code Here


            FeatureCollectionType featureCollection = (FeatureCollectionType) object;

            if (!featureCollection.getFeature().isEmpty()) {
                if (featureCollection.getFeature().size() > 1) {
                    // wrap in a single
                    return new CompositeFeatureCollection(featureCollection.getFeature());
                }

                // just return the single
                return featureCollection.getFeature().iterator().next();
            }
        } else if (GML.featureMember.equals(name)) {
            // check the WFS configuration, if encode featureMembers is selected on WFS
            // configuration page, return null;
            if (!encodeFeatureMember) {
                return null;
            }
            FeatureCollectionType featureCollection = (FeatureCollectionType) object;

            if (!featureCollection.getFeature().isEmpty()) {
                if (featureCollection.getFeature().size() > 1) {
                    // wrap in a single
                    return new CompositeFeatureCollection(featureCollection.getFeature());
                }

                // just return the single
                return featureCollection.getFeature().iterator().next();
            }
View Full Code Here

            }
           
            if (results.size() == 1) {
                records = results.get(0);
            } else if (results.size() > 1) {
                records = new CompositeFeatureCollection(results);
            }

            ElementSetType elementSet = getElementSetName(request);

            CSWRecordsResult result = new CSWRecordsResult(elementSet,
View Full Code Here

                        }
                       
                        if(results.size() == 1) {
                            records = results.get(0);
                        } else if(results.size() > 1) {
                            records = new CompositeFeatureCollection(results);
                        }
                    }
                }
            }
           
View Full Code Here

            FeatureCollectionType featureCollection = (FeatureCollectionType) object;

            if (!featureCollection.getFeature().isEmpty()) {
                if (featureCollection.getFeature().size() > 1) {
                    // wrap in a single
                    return new CompositeFeatureCollection(featureCollection.getFeature());
                }

                // just return the single
                return featureCollection.getFeature().iterator().next();
            }
        } else if (GML.featureMember.equals(name)) {
            // check the WFS configuration, if encode featureMembers is selected on WFS
            // configuration page, return null;
            if (!encodeFeatureMember) {
                return null;
            }
            FeatureCollectionType featureCollection = (FeatureCollectionType) object;

            if (!featureCollection.getFeature().isEmpty()) {
                if (featureCollection.getFeature().size() > 1) {
                    // wrap in a single
                    return new CompositeFeatureCollection(featureCollection.getFeature());
                }

                // just return the single
                return featureCollection.getFeature().iterator().next();
            }
View Full Code Here

TOP

Related Classes of org.geoserver.feature.CompositeFeatureCollection

Copyright © 2018 www.massapicom. 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.