Examples of centre()


Examples of org.neo4j.gis.spatial.rtree.Envelope.centre()

                assertNotNull(record);
            }
            saveLayerAsImage(layer, 700, 70);

            Envelope bbox = layer.getIndex().getBoundingBox();
            double[] centre = bbox.centre();

            List<GeoPipeFlow> results = GeoPipeline
                .startNearestNeighborLatLonSearch(layer, new Coordinate(centre[0] + 0.1, centre[1]), 10.0)
                .sort("OrthodromicDistance").toList();
View Full Code Here

Examples of org.neo4j.gis.spatial.rtree.Envelope.centre()

    saveLayerAsImage(layerA, 700, 70);
    saveLayerAsImage(layerB, 700, 70);
    Envelope bboxA = layerA.getIndex().getBoundingBox();
    Envelope bboxB = layerB.getIndex().getBoundingBox();
    double[] centreA = bboxA.centre();
    double[] centreB = bboxB.centre();

    List<SpatialDatabaseRecord> resultsA;
    List<SpatialDatabaseRecord> resultsB;
    try (Transaction tx = db.beginTx()) {
      resultsA = GeoPipeline.startNearestNeighborLatLonSearch(layerA,
View Full Code Here

Examples of org.neo4j.gis.spatial.rtree.Envelope.centre()

                assertNotNull(record);
            }
            saveLayerAsImage(layer, 300, 300);

            Envelope bbox = layer.getIndex().getBoundingBox();
            double[] centre = bbox.centre();

            List<SpatialDatabaseRecord> results = GeoPipeline
                .startNearestNeighborLatLonSearch(layer, new Coordinate(centre[0], centre[1]), 10.0)
                .toSpatialDatabaseRecordList();
            saveResultsAsImage(results, "temporary-results-layer-" + layer.getName(), 150, 150);
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.