I am designing an application in which I have to tell whether an item like fb video or instagram photo lies inside a region or originated from particular region for example Melbourne.
So till now, when I want to find bounding box for some country for example: Australia, Melbourne.
- I just go to this website http://boundingbox.klokantech.com/ .
- Draw a rectangle encompassing Melbourne.
- To know its GeoJson : [[[144.5937418,-38.4338593],[145.5125288,-38.4338593],[145.5125288,-37.5112737],[144.5937418,-37.5112737],[144.5937418,-38.4338593]]]
But, after reading great circle it says:
- The short distance is curved, so bounding box should look like as shown on this website: https://www.jasondavies.com/maps/bounds/
Now, I am really confused, till now I thought bounding box is a rectangle and hence if I know diagonally opposite point I can draw it and any point inside it, will belong to the region rectangle encompasses. But, with curved boundary the point can exist inside or outside.
- So, in below image you can see, I will always be sure that point y, z will be in melbourne.
- But, with curved bounding box, it may not cover whole melbourne and hence I am never sure whether point lies inside melbourne or not.