fix #70, 1.5.2

This commit is contained in:
Josh Baker 2016-10-20 17:47:15 -07:00
parent 4414ae7424
commit a38228cba0
5 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [1.5.2] - 2016-10-20
### Fixed
- #70: Invalid results for INTERSECTS query
## [1.5.1] - 2016-10-19
### Fixed
- #67: Call the EXPIRE command hangs the server

View File

@ -1,6 +1,6 @@
FROM alpine:3.4
ENV TILE38_VERSION 1.5.1
ENV TILE38_VERSION 1.5.2
ENV TILE38_DOWNLOAD_URL https://github.com/tidwall/tile38/releases/download/$TILE38_VERSION/tile38-$TILE38_VERSION-linux-amd64.tar.gz
RUN addgroup -S tile38 && adduser -S -G tile38 tile38

View File

@ -5,7 +5,7 @@
</p>
<p align="center">
<a href="https://travis-ci.org/tidwall/tile38"><img src="https://travis-ci.org/tidwall/tile38.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/tidwall/tile38/releases"><img src="https://img.shields.io/badge/version-1.5.0-green.svg" alt="Version"></a>
<a href="https://github.com/tidwall/tile38/releases"><img src="https://img.shields.io/badge/version-1.5.2-green.svg" alt="Version"></a>
</p>
Tile38 is an open source (MIT licensed), in-memory geolocation data store, spatial index, and realtime geofence. It supports a variety of object types including lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON.

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
VERSION="1.5.1"
VERSION="1.5.2"
PROTECTED_MODE="no"
# Hardcode some values to the core package

View File

@ -423,7 +423,7 @@ func (c *Collection) Within(cursor uint64, sparse uint8, obj geojson.Object, min
}
// Intersects returns all object that are intersect an object or bounding box. Set obj to nil in order to use the bounding box.
func (c *Collection) Intersects(cursor uint64, sparse uint8, obj geojson.Object, minLat, minLon, maxLat, maxLon, maxZ, minZ float64, iterator func(id string, obj geojson.Object, fields []float64) bool) (ncursor uint64) {
func (c *Collection) Intersects(cursor uint64, sparse uint8, obj geojson.Object, minLat, minLon, maxLat, maxLon, minZ, maxZ float64, iterator func(id string, obj geojson.Object, fields []float64) bool) (ncursor uint64) {
var bbox geojson.BBox
if obj != nil {
bbox = obj.CalculatedBBox()