【发布时间】:2016-05-12 00:02:30
【问题描述】:
我尝试先加载地点,然后加载事件并链接到地点。 但是我没有链接,因为 neo4j 搞砸了我的纬度/经度精度。
例如,我的纬度是 -75.0715026855469,但在 :GeoCoordinates 中变为 -75.07150269,我找不到匹配项,因为 -75.0715026855469 不等于 -75.07150269
知道如何解决这个问题吗?
提前致谢。
使用定期提交 从“file:/place.csv”作为行加载带有标题的 CSV 创建(g :GeoCoordinates {latitude: row.Latitude, longitude: row.Longitude, postalCode: row.zip})
使用定期提交 从“file:/event.csv”作为行加载带有标题的 CSV 匹配(g :GeoCoordinates {latitude: row.Latitude, longitude: row.Longitude, postalCode: row.zip}) 创建 (e :Event {name: row.Title, startDate: row.Date, endDate: row.DateOnly })-[r:location]->(g)
【问题讨论】: