getIntersectingIds

fun getIntersectingIds(minLongitude: Double, minLatitude: Double, maxLongitude: Double, maxLatitude: Double): Set<String>

Identify which countries may intersect with the given bounding box. In other words, any point within the given bounding box can only be in any of the returned countries (or none).

So, from the technical point of view, it just returns which countries are in the same cell(s) of the raster as the bounding box.

The given bounding box may wrap around the 180th longitude, i.e minLongitude = 170 and maxLongitude = -170.

Return

the ids of the countries the given bounding box may intersects with, not in any particular order

Parameters

minLongitude

minimum longitude of geo position (-180...180)

minLatitude

minimum latitude of geo position (-90...90)

maxLongitude

maximum longitude of geo position (-180...180)

maxLatitude

maximum latitude of geo position (-90...90)

Throws

if any parameter is not finite (NaN or Infinite), minLatitude is greater than maxLatitude or any latitude is not between -90.0 and +90.0