Package org.geotools.data.property

Examples of org.geotools.data.property.PropertyDataStore


    @Override
    protected void setUp() throws Exception {
        // setup data
        File property = new File(TestData.getResource(this, "point.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        pointFS = ds.getFeatureSource("point");
        lineFS = ds.getFeatureSource("line");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
       
        // System.setProperty("org.geotools.test.interactive", "true");
    }
View Full Code Here


        }
        assertEquals(AxisOrder.NORTH_EAST, CRS.getAxisOrder(CRS.decode("urn:ogc:def:crs:EPSG::4326")));
       
        // setup data
        File property = new File(TestData.getResource(this, "square.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        squareFS = ds.getFeatureSource("square");
        pointFS = ds.getFeatureSource("point");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);

        // prepare the renderer
        renderer = new StreamingRenderer();
        content = new MapContent();
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        // setup data
        File property = new File(TestData.getResource(this, "point.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        pointFS = ds.getFeatureSource("point");
        lineFS = ds.getFeatureSource("line");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);

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

    SimpleFeatureSource fs;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "bigsquare.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("bigsquare");
    }
View Full Code Here

    }

    @Test
    public void testCurvePolygons() throws Exception {
        File property = new File(TestData.getResource(this, "curvepolygons.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        SimpleFeatureSource fs = ds.getFeatureSource("curvepolygons");
        ReferencedEnvelope bounds = fs.getBounds();
        bounds.expandBy(1, 1);

        Style style = RendererBaseTest.loadStyle(this, "fillSolid.sld");
View Full Code Here

    }

    @Test
    public void testCurveLines() throws Exception {
        File property = new File(TestData.getResource(this, "curvelines.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        SimpleFeatureSource fs = ds.getFeatureSource("curvelines");
        ReferencedEnvelope bounds = fs.getBounds();
        bounds.expandBy(1, 1);

        Style style = RendererBaseTest.loadStyle(this, "lineGray.sld");
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        // setup data
        File property = new File(TestData.getResource(this, "cities.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("cities");
        bounds = fs.getBounds();
        bounds.expandBy(10);
       
        renderer = new StreamingRenderer();
       
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        // setup data
        File property = new File(TestData.getResource(this, "diaglines.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("diaglines");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
       
        renderer = new StreamingRenderer();
        Map rendererParams = new HashMap();
        LabelCacheImpl labelCache = new LabelCacheImpl();
View Full Code Here

    ReferencedEnvelope bbounds;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "line.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        fs = ds.getFeatureSource("line");
        bounds = fs.getBounds();
        bounds.expandBy(3, 3);
       
        bfs = ds.getFeatureSource("buildings");
        bbounds = bfs.getBounds();
        bbounds.expandBy(3, 3);
       
        // System.setProperty("org.geotools.test.interactive", "true");
View Full Code Here

    ReferencedEnvelope rightTileBounds;

    @Before
    public void setUp() throws Exception {
        File property = new File(TestData.getResource(this, "tilerect.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        polyfs = ds.getFeatureSource("tilerect");
        property = new File(TestData.getResource(this, "tilelines.properties").toURI());
        ds = new PropertyDataStore(property.getParentFile());
        linefs = ds.getFeatureSource("tilelines");

        leftTileBounds = new ReferencedEnvelope(0, 10, 0, 10, polyfs.getBounds()
                .getCoordinateReferenceSystem());
        rightTileBounds = new ReferencedEnvelope(10, 20, 0, 10, polyfs.getBounds()
                .getCoordinateReferenceSystem());
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.