Package net.opengis.wfs

Examples of net.opengis.wfs.FeatureCollectionType


    assertEquals(1, synchronizer.getNumRounds());
  }
 
  @Test
  public void test_Client1_with_Server1_Updated() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0));
    FeatureCollectionType server = make(f("F1", 1));
   
    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_Server1_DifferentKey() throws IOException, ParseException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F1", 0));
    FeatureCollectionType server = make(f("F2", 1));
   
    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_Server1_Same() 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(f("F1", 0));
View Full Code Here

        }
        throw new IllegalStateException("Mapping of input SHA1's has changed unable to setup test conditions: " + old);
      }
    };
   
    FeatureCollectionType client = make(f("F0", -1), f("F1", 0));
    FeatureCollectionType server;
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE) {
      @Override
      protected HashAndFeatureValue makeHashAndFeatureValue(Feature f) {
        HashAndFeatureValue hashFeature = super.makeHashAndFeatureValue(f);
View Full Code Here

    };
   
//    GeoserverClientSynchronizer.TRACE_POST = System.out;
//    FeatureCollectionSha1Sync.TRACE_RESPONSE = GeoserverClientSynchronizer.TRACE_POST;

    FeatureCollectionType client = make(f("F0", -1), f("F1", 0));
    FeatureCollectionType server = make(f("F0", -1));
 
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE) {
      @Override
      protected HashAndFeatureValue makeHashAndFeatureValue(Feature f) {
        HashAndFeatureValue hashFeature = super.makeHashAndFeatureValue(f);
View Full Code Here

    verify(roundListener).sha1Collision();
  }

  @Test
  public void testDeleteOneFeature() throws ParseException, IOException, SAXException, ParserConfigurationException {
    FeatureCollectionType client = make(f("F0", -1), f("F1", 0), f("F2", 1), f("F2.1", 22), f("F3", 2), f("F4", 3));
    FeatureCollectionType server = make(f("F0", -1), 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);
   
View Full Code Here

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

    @Override
    public void write(FeatureCollectionType results, GetFeatureInfoRequest fInfoReq,
            OutputStream out) throws ServiceException, IOException {

        // the 'response' object we'll pass to our OutputFormat
        FeatureCollectionType features = WfsFactory.eINSTANCE.createFeatureCollectionType();

        // the 'request' object we'll pass to our OutputFormat
        GetFeatureType gfreq = WfsFactory.eINSTANCE.createGetFeatureType();
        gfreq.setBaseUrl(fInfoReq.getBaseUrl());

        for (Iterator i = results.getFeature().iterator(); i.hasNext();) {
            FeatureCollection fc = (FeatureCollection) i.next();
            features.getFeature().add(fc);

            QueryType qt = WfsFactory.eINSTANCE.createQueryType();
            String crs = GML2EncodingUtils.epsgCode(fc.getSchema().getCoordinateReferenceSystem());
            if (crs != null) {
                final String srsName = "EPSG:" + crs;
View Full Code Here

  }
 
  @Test
  public void test_Client0_with_Server5K() throws IOException, SAXException, ParserConfigurationException, ParseException {
    int N = 5000;
    FeatureCollectionType client = make();   
    FeatureCollectionType server = make(makeManyFeatures(N));
   
    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(4, synchronizer.getNumRounds());
  }
 
  @Test
  public void test_Client0_with_Server10K() throws IOException, SAXException, ParserConfigurationException, ParseException {
    FeatureCollectionType client = make();   
    FeatureCollectionType server = make(makeManyFeatures(10000));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
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.