Package org.neo4j.gis.spatial.rtree

Examples of org.neo4j.gis.spatial.rtree.NullListener


        }
        this.commitInterval = commitInterval;
    this.database = database;
    this.spatialDatabase = new SpatialDatabaseService(database);
   
    if (monitor == null) monitor = new NullListener();
    this.monitor = monitor;
  }
View Full Code Here


      commitInterval = Integer.parseInt(args[3]);
    }
   
    GraphDatabaseService database = new GraphDatabaseFactory().newEmbeddedDatabase(neoPath);
    try {
          ShapefileImporter importer = new ShapefileImporter(database, new NullListener(), commitInterval);
          importer.importFile(shpPath, layerName);
      } finally {
      database.shutdown();
    }
  }
View Full Code Here

      return null;
    }
  }

  protected void clear() {
    index.clear(new NullListener());
  }
View Full Code Here

        Layer layer = spatialService.getLayer( "test" );
        assertNull( layer );
        layer = spatialService.createWKBLayer( "test" );
        assertNotNull( layer );
        assertTrue( "Should be a default layer", layer instanceof DefaultLayer );
        spatialService.deleteLayer( layer.getName(), new NullListener() );
        assertNull( spatialService.getLayer( layer.getName() ) );
    }
View Full Code Here

    }

    private void loadTestShpData(String layerName, int commitInterval) throws ShapefileException, FileNotFoundException, IOException {
        String shpPath = SHP_DIR + File.separator + layerName;
        System.out.println("\n=== Loading layer " + layerName + " from " + shpPath + " ===");
        ShapefileImporter importer = new ShapefileImporter(graphDb(), new NullListener(), commitInterval, true);
        importer.importFile(shpPath, layerName, Charset.forName("UTF-8"));
    }
View Full Code Here

  private void loadTestShpData(String layerName, int commitInterval) throws ShapefileException, FileNotFoundException,
      IOException {
    String shpPath = "shp" + File.separator + layerName;
    System.out.println("\n=== Loading layer " + layerName + " from " + shpPath + " ===");
    ShapefileImporter importer = new ShapefileImporter(graphDb(), new NullListener(), commitInterval);
    importer.importFile(shpPath, layerName, Charset.forName("UTF-8"));
  }
View Full Code Here

    }

    @Override
    public void delete()
    {
        spatialDB.deleteLayer( layer.getName(), new NullListener() );;
    }
View Full Code Here

    }

    public OSMImporter( String layerName, Listener monitor, com.vividsolutions.jts.geom.Envelope filterEnvelope )
    {
        this.layerName = layerName;
        if ( monitor == null ) monitor = new NullListener();
        this.monitor = monitor;
        this.filterEnvelope = filterEnvelope;
    }
View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.rtree.NullListener

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.