【发布时间】:2015-03-16 21:06:09
【问题描述】:
我的应用程序使用点查询根据用户的当前位置查找商店。
public class Store extends AbstractNode {
@Indexed(indexType = IndexType.POINT, indexName = "ErrandLocation")
private String wkt;
public void setLocation(float lat, float lon) {
this.wkt = String.format("POINT( %.2f %.2f )",lat,lon);
}
}
关于保存商店 shop.setLocation (12, 12); 我使用 neo4j 浏览器检查我的节点,wkt 值更改为 POINT(56.34 -2.80)。
我不明白为什么值会从 POINT (12.00, 12.00) 变为此值。
【问题讨论】:
标签: neo4j cypher spring-data spring-data-neo4j neo4j-spatial