From 2aa45895e16bc220ca0dbe90fa8b490604236c45 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Tue, 10 Mar 2015 15:57:17 +0100 Subject: [PATCH] log non-4326 point when loading geojson --- geom/geojson/geojson.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geom/geojson/geojson.go b/geom/geojson/geojson.go index d90d735..cefdc98 100644 --- a/geom/geojson/geojson.go +++ b/geom/geojson/geojson.go @@ -44,8 +44,8 @@ func newPointFromCoords(coords []interface{}) (Point, error) { return p, errors.New("invalid lat") } - if p.Long >= 180.0 || p.Long <= -180.0 || p.Lat >= 90.0 || p.Lat <= -90.0 { - log.Warn("coordinates outside of world boundary. non-4326?") + if p.Long > 180.0 || p.Long < -180.0 || p.Lat > 90.0 || p.Lat < -90.0 { + log.Warn("coordinates outside of world boundary. non-4326?: ", p) } return p, nil