Package net.opengis.wfs

Examples of net.opengis.wfs.FeatureCollectionType


    }

    @SuppressWarnings({ "unchecked", "rawtypes" })
    private FeatureCollectionType buildResults(List<FeatureCollection> results) {

        FeatureCollectionType result = WfsFactory.eINSTANCE.createFeatureCollectionType();
        result.setTimeStamp(Calendar.getInstance());
        result.getFeature().addAll(results);

        return result;
    }
View Full Code Here


       
        b.add(new GeometryFactory().createPoint(new Coordinate(1,1)));
        b.add("one");
        features.add(b.buildFeature("fid.1"));
       
        FeatureCollectionType fc = WfsFactory.eINSTANCE.createFeatureCollectionType();
        fc.getFeature().add(features);
       
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        adapter.write(FeatureCollectionResponse.adapt(fc), out);
       
        assertEquals("fid.0;fid.1;", new String(out.toByteArray()));
View Full Code Here

  @Test
  public void test_Client0_with_Server3() throws IOException, SAXException, ParserConfigurationException, ParseException {
//    GeoserverClientSynchronizer.TRACE_POST = new PrintStream(new FileOutputStream("run.log"));
//    FeatureCollectionSha1Sync.TRACE_RESPONSE = GeoserverClientSynchronizer.TRACE_POST;
   
    FeatureCollectionType client = make();   
    FeatureCollectionType server = make(f("F1", 0), f("F2", 1), f("F3", 2));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(2, synchronizer.getNumRounds());
  }
 
  @Test
  public void testSameSets_3() throws IOException, SAXException, ParserConfigurationException, ParseException {
    FeatureCollectionType client = make(f("F1", 0), f("F2", 1), f("F3", 2));
    FeatureCollectionType server = make(f("F1", 0), f("F2", 1), f("F3", 2));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(1, synchronizer.getNumRounds());
  }
 
  @Test
  public void testUpdateOneFeature() throws ParseException, IOException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0), f("F2", 1), f("F3", 2));   
    FeatureCollectionType server = make(f("F1", 0), f("F2", 3), f("F3", 2));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(2, synchronizer.getNumRounds());
  }

  @Test
  public void testCreateOneFeature() throws ParseException, IOException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0), f("F2", 1), f("F3", 2));   
    FeatureCollectionType server = make(f("F1", 0), f("F2", 1), f("F3", 2), f("F4", 3));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(2, synchronizer.getNumRounds());
  }

  @Test
  public void test_Client3_with_Server0() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0), f("F2", 1), f("F3", 2));
    FeatureCollectionType server = make();
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(1, synchronizer.getNumRounds());
  }
 
  @Test
  public void test_Client0_with_Server0() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make();
    FeatureCollectionType server = make();
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(1, synchronizer.getNumRounds());
  }
 
  @Test
  public void test_Client0_with_Server1() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make();
    FeatureCollectionType server = make(f("F1", 0));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
View Full Code Here

    assertEquals(2, synchronizer.getNumRounds());
  }
 
  @Test
  public void test_Client1_with_Server0() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0));
    FeatureCollectionType server;
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    server = make();
View Full Code Here

TOP

Related Classes of net.opengis.wfs.FeatureCollectionType

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.