(uid uint64, pred string, point []float64)
| 140 | } |
| 141 | |
| 142 | func addGeoPointToCluster(uid uint64, pred string, point []float64) error { |
| 143 | triple := fmt.Sprintf( |
| 144 | `<%d> <%s> "{'type':'Point', 'coordinates':[%v, %v]}"^^<geo:geojson> .`, |
| 145 | uid, pred, point[0], point[1]) |
| 146 | return addTriplesToCluster(triple) |
| 147 | } |
| 148 | |
| 149 | func addGeoPolygonToCluster(uid uint64, pred string, polygon [][][]float64) error { |
| 150 | coordinates := "[" |
no test coverage detected