Package org.neo4j.gis.spatial.indexprovider

Examples of org.neo4j.gis.spatial.indexprovider.LayerNodeIndex


          Map<String, Object> params = new HashMap<>();

          params.put(LayerNodeIndex.POINT_PARAMETER, coords.toArray());
          params.put(LayerNodeIndex.DISTANCE_IN_KM_PARAMETER, dist);

          LayerNodeIndex spatialIndex = this.getSpatialIndex();
          if (spatialIndex != null) {

            synchronized (spatialIndex) {

              hits = spatialIndex.query(LayerNodeIndex.WITHIN_DISTANCE_QUERY, params);
            }
          }
        }

        // instantiate spatial search results without paging,
View Full Code Here


      spatialConfig.put(LayerNodeIndex.LAT_PROPERTY_KEY, Location.latitude.dbName());
      spatialConfig.put(LayerNodeIndex.LON_PROPERTY_KEY, Location.longitude.dbName());
      spatialConfig.put(SpatialIndexProvider.GEOMETRY_TYPE, LayerNodeIndex.POINT_PARAMETER);

      layerIndex = new LayerNodeIndex("layerIndex", graphDb, spatialConfig);
      nodeIndices.put(NodeIndex.layer, layerIndex);

      logger.log(Level.FINE, "Layer index ready.");
      logger.log(Level.FINE, "Initializing node factory...");
View Full Code Here

    final double[] cityCentre = {-6.259117,53.347234};
      
    public SpatialService(GraphDatabaseService db)
    {
        this.db=db;
        stopSpatialIndex = new LayerNodeIndex( "stopSpatialIndex", db, new HashMap<String, String>() );       
    }
View Full Code Here

            routes = XMLReader.read();
            hubLayer1 = db.index().forNodes( "hubLayer1" );
            hubLayer2 = db.index().forNodes( "hubLayer2" );
            hubTransferLayer1 = db.index().forNodes( "hubTransferLayer1" );
            hubTransferLayer2 = db.index().forNodes( "hubTransferLayer2" );
            hubTransferLayer2SpatialIndex = new LayerNodeIndex( "hubTransferLayerSpatialIndex", db, new HashMap<String, String>() );
            stopLayer = db.index().forNodes( "stopLayer" );
            stopSpatialIndex = new LayerNodeIndex( "stopSpatialIndex", db, new HashMap<String, String>() );
            addStops();          
            addHubs();
            addWalkingConnections();
  
View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.indexprovider.LayerNodeIndex

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.