Package org.geoserver.wfs.request

Examples of org.geoserver.wfs.request.FeatureCollectionResponse$WFS11


            GetFeatureKvpRequestReader reader = (GetFeatureKvpRequestReader) context
                    .getBean("getFeatureKvpReader");
            gft = (GetFeatureType) kvpParse(ref.getHref(), reader);
        }

        FeatureCollectionResponse featureCollectionType = wfs.getFeature(gft);
        // this will also deal with axis order issues
        return ((ComplexPPIO) ppio).decode(featureCollectionType.getAdaptee());
    }
View Full Code Here


        FeatureCollectionSha1Sync.parseAttributes("")));
  }
 
  @Test
  public void testSimpleFeature() throws ParseException, IOException {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");
   
    m_sha1Sync.setCollection(featureCollectionResponse);
    Sha1SyncJson json = m_sha1Sync.computeZero();
   
    assertEquals("78dc226e7d37ab5c800d8922857452bebea3709b", json.h.get(0).s);
View Full Code Here

    assertEquals("78dc226e7d37ab5c800d8922857452bebea3709b", json.h.get(0).s);
  }
 
  @Test
  public void testSimpleFeatureAll() throws ParseException, IOException {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");
   
    m_sha1Sync.parseAttributesToInclude("-all");
    m_sha1Sync.setCollection(featureCollectionResponse);
    Sha1SyncJson json = m_sha1Sync.computeZero();
   
View Full Code Here

  }
 
  @Test
  public void testSimpleFeatureAllOneDiff() throws ParseException, IOException {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("UT");
   
    m_sha1Sync.parseAttributesToInclude("-all");
    m_sha1Sync.setCollection(featureCollectionResponse);
    Sha1SyncJson json = m_sha1Sync.computeZero();
View Full Code Here

  }
 
  @Test
    public void testCompute_Level0() throws Exception {
    FeatureCollectionType server = make(f("F1", 0), f("F2", 1), f("F3", 2), f("F4", 3));
    FeatureCollectionResponse rserver = FeatureCollectionResponse.adapt(server);
    m_sha1Sync.setCollection(rserver);

    m_sha1Sync.parseSha1SyncJson("{l:0,h:[{p:'',s:'deadbeef'}]}"); // no matches
    Sha1SyncJson sync = m_sha1Sync.compute();
   
View Full Code Here

    }
   
  @Test
    public void testComput_Level0_Match() throws Exception {
    FeatureCollectionType server = make(f("F1", 0), f("F2", 1), f("F3", 2), f("F4", 3));
    FeatureCollectionResponse rserver = FeatureCollectionResponse.adapt(server);
    m_sha1Sync.setCollection(rserver);

    m_sha1Sync.parseSha1SyncJson("{l:0,h:[{p:'',s:'949ff963844796006fdfcab0a003b2d48f708771'}]}"); // no matches
    Sha1SyncJson sync = m_sha1Sync.compute();
   
View Full Code Here

        assertEquals(1L, sync.max());
    }
   
  @Test
    public void testComput_Level1() throws Exception {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");
    m_sha1Sync.setCollection(featureCollectionResponse);

    Sha1SyncJson client = new Sha1SyncJson().level(1).hashes(
        new Sha1SyncPositionHash().position("56").summary("deadbeef"),
        new Sha1SyncPositionHash().position("ed").summary("deadbeef")
View Full Code Here

        assertEquals(1L, sync.max());
    }
   
  @Test
    public void testComput_Level1_Partial() throws Exception {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");
    m_sha1Sync.setCollection(featureCollectionResponse);
   
    Sha1SyncJson client = new Sha1SyncJson().level(1).hashes(
        new Sha1SyncPositionHash().position("ed").summary("deadbeef")
    );
View Full Code Here

        assertEquals(1L, sync.max());
    }
   
  @Test
    public void testComput_Level1_Partial_Extra() throws Exception {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");
    m_sha1Sync.setCollection(featureCollectionResponse);
    Sha1SyncJson client = new Sha1SyncJson().level(1).hashes(
        new Sha1SyncPositionHash().position("ed").summary("deadbeef"),
        new Sha1SyncPositionHash().position("ff").summary("deadbeef")
    );
View Full Code Here

        assertEquals(1L, sync.max());
    }
   
  @Test
    public void testComput_Level1_Empty() throws Exception {
    FeatureCollectionResponse featureCollectionResponse = buildSomeFeatures("US");

    // An empty client should produce 256 empty hashes
    List<Sha1SyncPositionHash> h = new ArrayList<Sha1SyncPositionHash>();
    for (int i = 0; i < 256; i++) {
      h.add(new Sha1SyncPositionHash().position(String.format("%02x", i)));
View Full Code Here

TOP

Related Classes of org.geoserver.wfs.request.FeatureCollectionResponse$WFS11

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.