简体   繁体   中英

How to compute the bounding box of the given set of coordinates on the map

I have a set (2 or more) of coordinates with a given Latitude and Longitude. How to compute the Upper Left Corner and Lower Down Corner of a bounding box on the map in Java

You could cheat and use Rectangle2D.Double . You can Point2D objects to it. This give you the upper limit (x+width/y+height) and lower limit (x/y)

When all you have is a hammer, all your problems look like nails - sorry if this is quite what your looking for, it's just what came to mind

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM