Package org.geotools.data.property

Examples of org.geotools.data.property.PropertyDataStore


        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


    }

    @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();
        ogr.addFormat(new OgrFormat("KML", "OGR-KML", ".kml"));
        ogr.addFormat(new OgrFormat("CSV", "OGR-CSV", ".csv"));
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 {
        // setup data
        File property = new File(TestData.getResource(this, "square.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        squareFS = ds.getFeatureSource("square");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
       
        renderer = new StreamingRenderer();
        context = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        renderer.setContext(context);
View Full Code Here

    ReferencedEnvelope bounds;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "square.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("square");
        bfs = ds.getFeatureSource("bigsquare");
        bounds = fs.getBounds();
        bounds.expandBy(0.2, 0.2);
       
        // load font
        Font f = Font.createFont(Font.TRUETYPE_FONT, TestData.getResource(this, "recreate.ttf").openStream());
View Full Code Here

    protected void setUp() throws Exception {
        System.setProperty( GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "true" );
        CRS.reset("all");
        // setup data
        File property = new File(TestData.getResource(this, "point_test.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        point_test = ds.getFeatureSource("point_test");
        assertNotNull( "point_test data available", point_test );
       
        point_test_strict = ds.getFeatureSource("point_test_strict");
        assertNotNull( "point_test_strict data available", point_test_strict );
       
        point_test_2d = ds.getFeatureSource("point_test_2d");
        assertNotNull( "point_test_2d data available", point_test_2d );
    }
View Full Code Here

    ReferencedEnvelope bounds;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "square.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("square");
        bfs = ds.getFeatureSource("bigsquare");
        bounds = fs.getBounds();
        bounds.expandBy(0.2, 0.2);

        // load font
        Font f = Font.createFont(Font.TRUETYPE_FONT, TestData.getResource(this, "recreate.ttf")
View Full Code Here

    @Override
    protected void setUp() throws Exception {

        File property_point = new File(TestData.getResource(this, "partialPointLabel.properties").toURI());
        PropertyDataStore ds_point = new PropertyDataStore(property_point.getParentFile());
        fs_point = ds_point.getFeatureSource("partialPointLabel");

        File property_line = new File(TestData.getResource(this, "partialLineLabel.properties").toURI());
        PropertyDataStore ds_line = new PropertyDataStore(property_line.getParentFile());
        fs_line = ds_line.getFeatureSource("partialLineLabel");

        File property_area = new File(TestData.getResource(this, "partialAreaLabel.properties").toURI());
        PropertyDataStore ds_area = new PropertyDataStore(property_area.getParentFile());
        fs_area = ds_area.getFeatureSource("partialAreaLabel");

        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);

        renderer = new StreamingRenderer();
        Map rendererParams = new HashMap();
View Full Code Here

    ReferencedEnvelope bounds;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "square.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        squareFS = ds.getFeatureSource("square");
        lineFS = ds.getFeatureSource("line");
        pointFS = ds.getFeatureSource("point");
        bounds = squareFS.getBounds();
        bounds.expandBy(0.2, 0.2);

        // System.setProperty("org.geotools.test.interactive", "true");
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        // setup data
        File property = new File(TestData.getResource(this, "line.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("line");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
       
         // System.setProperty("org.geotools.test.interactive", "true");
    }
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.