Examples of PropertyDataStore


Examples of org.geotools.data.property.PropertyDataStore

        // grab the style
        Style style = RendererBaseTest.loadStyle(this, invert ? "attributeRename.sld"
                : "attributeRenameNoInvert.sld");
        // grab the data
        File property = new File(TestData.getResource(this, "point.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        FeatureSource fs = ds.getFeatureSource("point");

        // prepare a feature layer with a query and the rendering tx
        FeatureLayer layer = new FeatureLayer(fs, style);
        layer.setQuery(new Query(null, CQL.toFilter("id > 5")));
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    public void testTransformReproject() throws Exception {
        // grab the style
        Style style = RendererBaseTest.loadStyle(this, "reproject-rt.sld");
        // grab the data
        File property = new File(TestData.getResource(this, "point.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        FeatureSource fs = ds.getFeatureSource("point");

        // prepare a feature layer with a query and the rendering tx
        FeatureLayer layer = new FeatureLayer(fs, style);
       
        // prepare a bbox in UTM-32N
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

  @Test
  public void testRasterOpacity() throws Exception {
    // a polygon layer
        File property = new File(TestData.getResource(this, "buildings.properties").toURI());
        PropertyDataStore ds = new PropertyDataStore(property.getParentFile());
        SimpleFeatureSource fs = ds.getFeatureSource("buildings");
        ReferencedEnvelope bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);

        StyleBuilder sb = new StyleBuilder();
        Style pst = sb.createStyle(sb.createPolygonSymbolizer(null, sb.createFill(Color.GRAY, 0.5)));
       
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    @Before
    public 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");
        fs_multiline = ds.getFeatureSource("diaglines_multiline");
        bounds = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
       
        renderer = new StreamingRenderer();
        Map rendererParams = new HashMap();
        LabelCacheImpl labelCache = new LabelCacheImpl();
View Full Code Here

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);
       
        // load font
        Font f = Font.createFont(Font.TRUETYPE_FONT, TestData.getResource(this, "recreate.ttf").openStream());
        FontCache.getDefaultInstance().registerFont(f);
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

   
    private SimpleFeatureSource fsPolylines;

    @Before
    public void setUp() throws Exception {
        PropertyDataStore store = new PropertyDataStore(TestData.file(this, ""));
        fsPolylines = store.getFeatureSource("polyline");
    }
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    DataStore bugs;
   
    @Before
    public void setup() throws IOException {
        File file = TestData.file(this, null );
        bugs = new PropertyDataStore( file );
    }
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    private final GeometryFactory geometryFactory = new GeometryFactory();

    @Before
    public void setup() throws IOException {
        File file = TestData.file(this, null);
        featureSource = new PropertyDataStore(file);
    }
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    private static final double COLORADOAREA = 269837.0d;

    @Before
    public void setup() throws IOException {
        File file = TestData.file(this, null);
        data = new PropertyDataStore(file);
        zonesCollection = data.getFeatureSource("zones").getFeatures();
        featuresCollection = data.getFeatureSource("features").getFeatures();
        polylineCollection = data.getFeatureSource("polyline").getFeatures();
        multipointCollection = data.getFeatureSource("multipoint").getFeatures();
        process = new IntersectionFeatureCollection();
View Full Code Here

Examples of org.geotools.data.property.PropertyDataStore

    private SimpleFeatureSource fsCollinear;
    private SimpleFeatureSource fsMultilines;

    @Before
    public void setUp() throws Exception {
        PropertyDataStore store = new PropertyDataStore(TestData.file(this, ""));
        fsMeters = store.getFeatureSource("squaresMeters");
        fsDegrees = store.getFeatureSource("squaresDegrees");
        fsLines = store.getFeatureSource("lines");
        fsMultilines = store.getFeatureSource("multilines");
        fsCollinear = store.getFeatureSource("collinear");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.