0

I need a way to generate internal bounding boxes (e.g. 1x1km squares) starting from a bigger geographic bounding box.

For example, starting from London bounding box, I want to get all the 1x1km bounding boxes within that geographic area.

Formats:

  • a geographic bounding box is represented by 2 points, the bottom left point and the upper right point that delimit the geographic area;
  • a point is represented by a [lat, lng] pair.

Is there a Java library implementing that feature or even just an algorithm? I also tried Java JTS, but it seems useless for that purpose.

Thanks in advance.

4

1 回答 1

0

你的要求是矛盾的:

要么你有一个纬度,经度网格,其中所有单元格都具有相同的纵向跨度和横向跨度。或者您有一个基于米的网格,其中所有单元格都有基于米的坐标,使用坐标变换。例如 UTM。

两者同时是不可能的,尤其是对于经度坐标分量。

最简单的方法是使用纬度、经度单位。
你必须自己实现它。

于 2016-03-22T19:27:00.480 回答