Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am an new in map drawing.I want to generate data set.I have a county boundar lat long list by using it I generate the country borader using OpenGL.

Counry borader data set is like this

lat           long
33.666        71.44
33.888        72.41
33.999        73.40
......
......

I want to devide country map into suqare(4 points at fixed equal distance) and get 8 Lat Long using county boundar lat long list at different zoom level.

I want the data set like in this form

Zoom Level 1
Square_zoom1_Name1     58.4771570     35.1724140     58.4771570     34.4823095  59.3908626     34.4823095     59.3908626     35.1724140

Square_zoom1_Name2      59.3908626     35.1724140     59.390626      34.4823095  60.3045682     34.4823095     60.3045682     35.1724140

.....

.....


Zoom Level 2
Square_zoom2_Name1     58.4771570     35.1724140     58.4771570     34.4823095  59.3908626     34.4823095     59.3908626     35.1724140

Square_zoom2_Name2      59.3908626     35.1724140     59.390626      34.4823095  60.3045682     34.4823095     60.3045682     35.1724140

.....

.....


How I can generate this kind of data set?

What I have tried:

Is there online tool or website or any code snippit for generating this kind of data set?
Posted
Updated 24-Nov-22 3:00am
v2

1 solution

As I suggested in your previous question on this subject at Download map at different zoom levels image fragment(suqare) for a scpecific country in image format (jpg) with lat long?[^], check the API documentation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900