I just tried and got similar error with startNearestNeighborSearch method.
I am using neo4j 2.3.0-M01 maven repo.
Cheers,
Alireza
On Friday, August 7, 2015 at 1:19:30 PM UTC+2, Alireza Rezaei Mahdiraji
wrote:
>
>
> Hi,
>
> I get the following cast exception while using
> startNearestNeighborLatLonSearch method:
>
>
>
> *Exception in thread "main" java.lang.ClassCastException: java.lang.Double
> cannot be cast to [B*my code is as follows:
>
> Layer layer = spatialDbInstance.getLayer("mylayer");
> Coordinate coord = new Coordinate(0.0d, 0.0d);
> List<Node> nodes = GeoPipeline.startNearestNeighborLatLonSearch(layer,
> coord, 1.0).toNodeList();
>
>
> Basically, I am trying to find all other points within distance one of the
> origin (i.e., (0.0., 0.0) ).
>
>
> Cheers,
> Alireza
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.