Package org.neo4j.gis.spatial.SpatialTopologyUtils

Examples of org.neo4j.gis.spatial.SpatialTopologyUtils.PointResult


        results.add(result.getKey(), fieldsNames, new Object[] { result.getValue().getGeomNode().getId(),
            "Snapped point to layer " + layerName + ": " + result.getValue().getGeometry().toString(),
            (long) (1000000 * result.getDistance()) });
      }
      if (edgeResults.size() > 0) {
        PointResult closest = edgeResults.get(0);
        Point closestPoint = closest.getKey();

        SpatialDatabaseRecord wayRecord = closest.getValue();
        OSMDataset.Way way = ((OSMDataset) osmLayer.getDataset()).getWayFrom(wayRecord.getGeomNode());
        OSMDataset.WayPoint wayPoint = way.getPointAt(closestPoint.getCoordinate());
      }
    }

View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.SpatialTopologyUtils.PointResult

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.