Is there a way to split the map into square grids and get latitude / longitude information from there?

I have a map of a certain area, and I need to determine whether a given location with the coordinates of the slider gets into any grid that covers this map.

I decided to split the map of the area that I got into square meshes measuring 1 km x 1 km using Google Earth to create square meshes using CTRL + L and scale to the appropriate scale so that the grid lines are 1000 meters apart - and extract all the data as KML, to get the latitude and longitude values ​​for the angles of each individual grid on my map and search from there to see if the given bosom / lat fits into any square grid, and if so, which grid, etc. etc., but I don’t know if this can be done - if the Earth Google allows me to extract my own square grid coordinates in KML format.

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

+5
source share
2 answers

Consider, for example, the region that lies between latitude 89N and latitude 90N (north pole). The circumference of the earth at a latitude of 90N is 0, therefore, the total area is circular.

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

+1
source

Not quite sure if this is what you are asking, but you can get the latitude and longitude of the current view of the globe.

var view = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);
view.getLatitude();
view.getLongitude();

Here's more information about the current view and camera: https://developers.google.com/earth/documentation/camera_control

0
source

All Articles