Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to divide a map into square grids and retrieve latitude/longitude information from there? [closed]

I have a map of a specific area and I need to determine whether a given location -with lat-lon coordinates- falls into any grid that covers this map.

I decided to divide the map of the area I was given into 1 km x 1 km square grids using Google Earth -enabling the square grids using CTRL+L and zooming to the appropriate scale so that the grid lines are 1000 meters away from each other- and extract the entire data as KML, in order to get the latitude and longitude values for the corners of every single grid in my map and do a lookup from there -to see if the given lon/lat falls into any square grid and if it does, which grid etc.- but I don't know if this can be done -if Google earth allows me to extract its own square grid coordinates in KML format-.

Can someone provide any information about whether this is possible, and if possible how it can be done?

like image 486
sm90901 Avatar asked Aug 20 '12 20:08

sm90901


1 Answers

Consider for example the area that is between latitude 89N and latitude 90N (the north pole). The earth's circumference at latitude 90N is 0, hence, this the total area is circle-shaped.

It is not possible to divide any part of a sphere or an ellipsoid surface into non-overlapping, adjusting rectangles.

like image 100
Lior Kogan Avatar answered Sep 28 '22 09:09

Lior Kogan