Package org.gdbms.engine.data

Examples of org.gdbms.engine.data.SpatialDataSource.buildIndex()


  private void testIndexedEdition(String dsName, Value geom) throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource(dsName);

    d.beginTrans();
    d.buildIndex();
    long originalRowCount = d.getRowCount();
    d.deleteRow(0);
    assertTrue(d.getRowCount() == originalRowCount);
    try {
      d.insertEmptyRowAt(1);
View Full Code Here


    d.beginTrans();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
  }

  public void testEditedSpatialDataSourceFullExtentObject() throws Exception {
View Full Code Here

    d.beginTrans();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();

    d.beginTrans();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.commitTrans();
  }

  public void testEditedSpatialDataSourceFullExtentDB() throws Exception {
View Full Code Here

    d.start();
    testEditedSpatialDataSourceFullExtent(d);
    d.stop();

    d.start();
    d.buildIndex();
    testEditedSpatialDataSourceFullExtent(d);
    d.stop();
  }
}
View Full Code Here

        SpatialDataSource sds = (SpatialDataSource) ds.getDataSource(
                "shppoligonos", DataSourceFactory.UNDOABLE);

        sds.beginTrans();
        if (indexed) {
            sds.buildIndex();
        }
        GeneralPathX cgp = new GeneralPathX();
        cgp.moveTo(0, 0);
        cgp.lineTo(10, 10);
        cgp.lineTo(0, 10);
View Full Code Here

      bounds[i] = geometries[i].getBounds2D();
    }
    SpatialDataSource d = (SpatialDataSource) ds.getDataSource(dsName);

    d.beginTrans();
    d.buildIndex();
    int sfi = d.getSpatialFieldIndex();
    long rc = d.getRowCount();
    Value[] row = d.getRow(0);

    for (int i = 0; i < geometries.length; i++) {
View Full Code Here

    public void testSpatialObjectfailedCommit() throws Exception {
        SpatialDataSource ds = (SpatialDataSource)
            dsf.getDataSource("spatialObject");
        ds.beginTrans();
        ds.buildIndex();
        ds.deleteRow(2);
        ds.setFieldValue(0, 1, ValueFactory.createValue("nuevo"));
        ds.insertFilledRow(new Value[]{
                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
View Full Code Here

    public void testSpatialFilefailedOnWrite() throws Exception {
        SpatialDataSource ds = (SpatialDataSource)
            dsf.getDataSource("spatialWriteFile");
        ds.beginTrans();
        ds.buildIndex();
        ds.deleteRow(2);
        ds.setFieldValue(0, 1, ValueFactory.createValue("nuevo"));
        ds.insertFilledRow(new Value[]{
                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
View Full Code Here

    public void testSpatialFilefailedOnClose() throws Exception {
        SpatialDataSource ds = (SpatialDataSource)
            dsf.getDataSource("spatialCloseFile");
        ds.beginTrans();
        ds.buildIndex();
        ds.deleteRow(2);
        ds.setFieldValue(0, 1, ValueFactory.createValue("nuevo"));
        ds.insertFilledRow(new Value[]{
                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
View Full Code Here

    public void testSpatialFilefailedCopy() throws Exception {
        SpatialDataSource ds = (SpatialDataSource)
            dsf.getDataSource("spatialCopyFile");
        ds.beginTrans();
        ds.buildIndex();
        ds.deleteRow(2);
        ds.setFieldValue(0, 1, ValueFactory.createValue("nuevo"));
        ds.insertFilledRow(new Value[]{
                GeometryFactory.createPoint2D(100, 100),
                ValueFactory.createValue("perfect")
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.