log non-4326 point when loading geojson

Oliver Tonnhofer 2015-03-10 15:57:17 +01:00
parent a566cdd7c5
commit 2aa45895e1
1 changed files with 2 additions and 2 deletions

View File

@ -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