Package org.geotools.data.property

Examples of org.geotools.data.property.PropertyDataStore


    public void setUp() throws Exception {
        // check if we can run the tests
        Assume.assumeTrue(Ogr2OgrTestUtil.isOgrAvailable());
       
        // the data source we'll use for the tests
        dataStore = new PropertyDataStore(new File("./src/test/java/org/geoserver/wfs/response"));

        // the output format (and let's add a few output formats to play with
        ogr = new Ogr2OgrOutputFormat(new GeoServerImpl());
        ogr.addFormat(new OgrFormat("KML", "OGR-KML", ".kml", true, "application/vnd.google-earth.kml"));
        ogr.addFormat(new OgrFormat("KML", "OGR-KML-ZIP", ".kml", false, "application/vnd.google-earth.kml"));
View Full Code Here


        final String fileName = MockData.BUILDINGS.getLocalPart() + ".properties";
        URL properties = MockData.class.getResource(fileName);
        IOUtils.copy(properties.openStream(), new File(data, fileName));

        PropertyDataStore pds = new PropertyDataStore(data);
        rts = new RetypingDataStore(pds) {
            @Override
            protected String transformFeatureTypeName(String originalName) {
                if (originalName.equals(MockData.BUILDINGS.getLocalPart()))
                    return RENAMED;
View Full Code Here

        ftb.add("dateTimeProperty", Date.class); // timestamp -> date
        ftb.add("newProperty", String.class); // new property
        ftb.setName(RENAMED); // rename type
        primitive = ftb.buildFeatureType();
       
        PropertyDataStore pds = new PropertyDataStore(data);
        rts = new RetypingDataStore(pds) {
         
          @Override
          protected SimpleFeatureType transformFeatureType(
              SimpleFeatureType original) throws IOException {
View Full Code Here

        data.mkdir();

        copyTestData(BUILDINGS, data);
        copyTestData(BRIDGES, data);

        store = new PropertyDataStore(data);
    }
View Full Code Here

       
        try {
            expect(ds.getDataStore(null)).andAnswer((IAnswer)new IAnswer<DataAccess>() {
                @Override
                public DataAccess answer() throws Throwable {
                    return new PropertyDataStore(propDir, ns.getURI());
                }
            }).anyTimes();
        } catch (IOException e) {
        }
   
View Full Code Here

        ftb.add("dateTimeProperty", Date.class); // timestamp -> date
        ftb.add("newProperty", String.class); // new property
        ftb.setName(RENAMED); // rename type
        primitive = ftb.buildFeatureType();
       
        PropertyDataStore pds = new PropertyDataStore(data);
        rts = new RetypingDataStore(pds) {
         
          @Override
          protected SimpleFeatureType transformFeatureType(
              SimpleFeatureType original) throws IOException {
View Full Code Here

    }

    @Override
    protected void setUp() throws Exception {
        // the data source we'll use for the tests
        dataStore = new PropertyDataStore(new File("./src/test/java/org/geoserver/wfs/response"));

        // the output format (and let's add a few output formats to play with
        ogr = new Ogr2OgrOutputFormat(new GeoServerImpl());
        ogr.addFormat(new OgrFormat("KML", "OGR-KML", ".kml", true, "application/vnd.google-earth.kml"));
        ogr.addFormat(new OgrFormat("KML", "OGR-KML-ZIP", ".kml", false, "application/vnd.google-earth.kml"));
View Full Code Here

        final String fileName = MockData.BUILDINGS.getLocalPart() + ".properties";
        URL properties = MockData.class.getResource(fileName);
        IOUtils.copy(properties.openStream(), new File(data, fileName));

        PropertyDataStore pds = new PropertyDataStore(data);
        rts = new RetypingDataStore(pds) {
            @Override
            protected String transformFeatureTypeName(String originalName) {
                if (originalName.equals(MockData.BUILDINGS.getLocalPart()))
                    return RENAMED;
View Full Code Here

TOP

Related Classes of org.geotools.data.property.PropertyDataStore

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.