renderGeoDistance renders the distance value for SpatiaLite (in meters)
(ctx Context, geo *qcode.GeoExp)
| 579 | |
| 580 | // renderGeoDistance renders the distance value for SpatiaLite (in meters) |
| 581 | func (d *SQLiteDialect) renderGeoDistance(ctx Context, geo *qcode.GeoExp) { |
| 582 | distance := geo.Unit.ToMeters(geo.Distance) |
| 583 | ctx.WriteString(fmt.Sprintf(`%f`, distance)) |
| 584 | } |
| 585 | |
| 586 | func (d *SQLiteDialect) BindVar(i int) string { |
| 587 | return "?" |
no test coverage detected