Package org.geotools.data.memory

Examples of org.geotools.data.memory.MemoryDataStore.addFeature()


                new Object[] { gf.createPoint(new Coordinate(5, 4)),
                        "A long label\r\nwith windows\r\nnewlines" }, null);
       
        MemoryDataStore data = new MemoryDataStore();
        data.addFeature(f1);
        data.addFeature(f2);
        data.addFeature(f3);
        SimpleFeatureSource fs = data.getFeatureSource("funnyLabels");
       
        // build the request objects and feed the output format
        GetFeatureType gft = WfsFactory.eINSTANCE.createGetFeatureType();
View Full Code Here


                        "A long label\r\nwith windows\r\nnewlines" }, null);
       
        MemoryDataStore data = new MemoryDataStore();
        data.addFeature(f1);
        data.addFeature(f2);
        data.addFeature(f3);
        SimpleFeatureSource fs = data.getFeatureSource("funnyLabels");
       
        // build the request objects and feed the output format
        GetFeatureType gft = WfsFactory.eINSTANCE.createGetFeatureType();
        Operation op = new Operation("GetFeature", getServiceDescriptor10(), null, new Object[] {gft});
View Full Code Here

        MemoryDataStore data = new MemoryDataStore();
       
        data.createSchema(m_samples.getFlagType());
       
        data.addFeature(f1);
        data.addFeature(f2);
        FeatureSource<SimpleFeatureType, SimpleFeature> fs = data.getFeatureSource(m_samples.getFlagType().getName());
       
       
       
View Full Code Here

        MemoryDataStore data = new MemoryDataStore();
       
        data.createSchema(m_samples.getFlagType());
       
        data.addFeature(f1);
        data.addFeature(f2);
        FeatureSource<SimpleFeatureType, SimpleFeature> fs = data.getFeatureSource(m_samples.getFlagType().getName());
       
       
       
       
View Full Code Here

  private FeatureCollectionType make(Feature... features) throws IOException {
        MemoryDataStore data = new MemoryDataStore();
        data.createSchema(m_samples.getFlagType());

        for (Feature f : features) {
          data.addFeature((SimpleFeature) f);
        }
        FeatureSource<SimpleFeatureType, SimpleFeature> fs = data.getFeatureSource(m_samples.getFlagType().getName());
       
        FeatureCollectionType fct = WfsFactory.eINSTANCE.createFeatureCollectionType();
    addFeatureToCollection(fct, fs);
View Full Code Here

  public static FeatureCollectionType make(Feature... features) throws IOException {
        MemoryDataStore data = new MemoryDataStore();
        data.createSchema(SAMPLES.getFlagType());

        for (Feature f : features) {
          data.addFeature((SimpleFeature) f);
        }
        FeatureSource<SimpleFeatureType, SimpleFeature> fs = data.getFeatureSource(SAMPLES.getFlagType().getName());
       
        FeatureCollectionType fct = WfsFactory.eINSTANCE.createFeatureCollectionType();
    addFeatureToCollection(fct, fs);
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.