Package org.geotools.data.wfs.v1_1_0

Examples of org.geotools.data.wfs.v1_1_0.DefaultWFSStrategy


            NoSuchAuthorityCodeException, FactoryException {
        final InputStream dataStream = TestData.openStream(this,
                CUBEWERX_GOVUNITCE.DATA);
        TestHttpResponse httpResponse = new TestHttpResponse(
                "text/xml; subtype=gml/3.1.1", "UTF-8", dataStream);
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(CUBEWERX_GOVUNITCE.CAPABILITIES, mockHttp);
   
        // override the describe feature type url so it loads from the test resource
        URL describeUrl = TestData.getResource(this, CUBEWERX_GOVUNITCE.SCHEMA);
        wfs.setDescribeFeatureTypeURLOverride(describeUrl);
View Full Code Here


            FactoryException {
        final InputStream dataStream = TestData.openStream(this,
                CUBEWERX_GOVUNITCE.DATA);
        TestHttpResponse httpResponse = new TestHttpResponse(
                "text/xml; subtype=gml/3.1.1", "UTF-8", dataStream);
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(CUBEWERX_GOVUNITCE.CAPABILITIES, mockHttp);
   
        // override the describe feature type url so it loads from the test resource
        URL describeUrl = TestData.getResource(this, CUBEWERX_GOVUNITCE.SCHEMA);
        wfs.setDescribeFeatureTypeURLOverride(describeUrl);
View Full Code Here

            NoSuchAuthorityCodeException, FactoryException {
        final InputStream dataStream = TestData.openStream(this,
                CUBEWERX_GOVUNITCE.DATA);
        TestHttpResponse httpResponse = new TestHttpResponse(
                "text/xml; subtype=gml/3.1.1", "UTF-8", dataStream);
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(CUBEWERX_GOVUNITCE.CAPABILITIES, mockHttp);
   
        // override the describe feature type url so it loads from the test resource
        URL describeUrl = TestData.getResource(this, CUBEWERX_GOVUNITCE.SCHEMA);
        wfs.setDescribeFeatureTypeURLOverride(describeUrl);
View Full Code Here

    @Test
    public void tesGetFeatureReader() throws IOException {
        final InputStream dataStream = TestData.openStream(this, CUBEWERX_GOVUNITCE.DATA);
        TestHttpResponse httpResponse = new TestHttpResponse("text/xml; subtype=gml/3.1.1",
                "UTF-8", dataStream);
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(CUBEWERX_GOVUNITCE.CAPABILITIES, mockHttp);

        // override the describe feature type url so it loads from the test resource
        URL describeUrl = TestData.getResource(this, CUBEWERX_GOVUNITCE.SCHEMA);
        wfs.setDescribeFeatureTypeURLOverride(describeUrl);
View Full Code Here

            assertTrue(true);
        }

        HTTPResponse httpResponse = new TestHttpResponse("text/xml; subtype=gml/3.1.1", null,
                "mock-content");
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);

        createTestProtocol(GEOS_ARCHSITES.CAPABILITIES, mockHttp);

        WFSResponse wfsResponse;
View Full Code Here

        final TestHttpResponse httpResponse;
        final String defaultWfs11OutputFormat = "text/xml; subtype=gml/3.1.1";
        httpResponse = new TestHttpResponse(defaultWfs11OutputFormat, "UTF-16", responseContent);

        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);

        createTestProtocol(GEOS_ARCHSITES.CAPABILITIES, mockHttp, new GeoServerStrategy());

        Query query = new Query(GEOS_ARCHSITES.FEATURETYPENAME);
        GetFeature getFeature = new GetFeatureQueryAdapter(query, defaultWfs11OutputFormat,
View Full Code Here

        final TestHttpResponse httpResponse;
        final String defaultWfs11OutputFormat = "text/xml; subtype=gml/3.1.1";
        httpResponse = new TestHttpResponse(defaultWfs11OutputFormat, "UTF-16", responseContent);

        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);

        createTestProtocol(GEOS_ARCHSITES.CAPABILITIES, mockHttp, new GeoServerStrategy());

        Query query = new Query(GEOS_ARCHSITES.FEATURETYPENAME);
        GetFeature getFeature = new GetFeatureQueryAdapter(query, defaultWfs11OutputFormat,
View Full Code Here

        final TestHttpResponse httpResponse;
        final String defaultWfs11OutputFormat = "text/xml; subtype=gml/3.1.1";
        httpResponse = new TestHttpResponse(defaultWfs11OutputFormat, "UTF-16", responseContent);

        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(GEOS_ARCHSITES.CAPABILITIES, mockHttp, new GeoServerStrategy());

        Query query = new Query(GEOS_ARCHSITES.FEATURETYPENAME);
        query.setMaxFeatures(1000);
        query.setPropertyNames(new String[] { "cat", "the_geom" });
View Full Code Here

        final TestHttpResponse httpResponse;
        final String defaultWfs11OutputFormat = "text/xml; subtype=gml/3.1.1";
        httpResponse = new TestHttpResponse(defaultWfs11OutputFormat, "UTF-16", responseContent);

        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol(GEOS_ARCHSITES.CAPABILITIES, mockHttp, new GeoServerStrategy());

        Query query = new Query(GEOS_ARCHSITES.FEATURETYPENAME);
        GetFeature getFeature = new GetFeatureQueryAdapter(query, defaultWfs11OutputFormat,
                "EPSG:4326", ResultType.RESULTS);
View Full Code Here

    @Test
    public void testGetFeatureWithNorthEastAxisOrderOutputEPSG4326() throws Exception {
     
      final InputStream dataStream = TestData.openStream(this, "axisorder/GetFeatureById4326.xml");
        TestHttpResponse httpResponse = new TestHttpResponse("text/xml; subtype=gml/3.1.1",
                "UTF-8", dataStream);
        TestHttpProtocol mockHttp = new TestHttpProtocol(httpResponse);
        createTestProtocol("axisorder/GetCapabilities.xml", mockHttp);

        // override the describe feature type url so it loads from the test resource
View Full Code Here

TOP

Related Classes of org.geotools.data.wfs.v1_1_0.DefaultWFSStrategy

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.