Package org.geotools.caching.spatialindex

Examples of org.geotools.caching.spatialindex.Storage


        return new TestSuite(DiskStorageTest.class);
    }

    @Override
    Storage createStorage() {
        Storage storage = DiskStorage.createInstance();

        return storage;
    }
View Full Code Here


        return new TestSuite(BufferedDiskStorageTest.class);
    }

    @Override
    Storage createStorage() {
        Storage storage = BufferedDiskStorage.createInstance();
        return storage;
    }
View Full Code Here

    protected GridSpatialIndex() {
    }

    public static SpatialIndex createInstance(Properties pset) {
        Storage storage = StorageFactory.getInstance().createStorage(pset);
       
        int gridsize = Integer.parseInt(pset.getProperty(GRID_SIZE_PROPERTY));
        int gridcapacity = Integer.parseInt(pset.getProperty(GRID_CAPACITY_PROPERTY));
        double minx = Double.parseDouble(pset.getProperty(ROOT_MBR_MINX_PROPERTY));
        double miny = Double.parseDouble(pset.getProperty(ROOT_MBR_MINY_PROPERTY));
View Full Code Here

        return new TestSuite(DiskStorageGridTest.class);
    }

    @Override
    protected AbstractSpatialIndex createIndex() {
        Storage storage = BufferedDiskStorage.createInstance();
        //        Storage storage = DiskStorage.createInstance();
        index = new GridSpatialIndex(new Region(universe), 100, storage, 2000);

        return index;
    }
View Full Code Here

    }

    @Override
    protected AbstractFeatureCache createInstance(int capacity)
        throws FeatureCacheException, IOException {
        Storage storage = DiskStorage.createInstance();
        this.cache = new GridFeatureCache(ds.getFeatureSource(dataset.getSchema().getName()),
                100, capacity, storage);

        return this.cache;
    }
View Full Code Here

TOP

Related Classes of org.geotools.caching.spatialindex.Storage

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.