Click here to get back home

Calculating Lat/Lon for an X mile grid.

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Calculating Lat/Lon for an X mile grid. crgiles 05-19-2006
Posted by crgiles on May 19, 2006, 11:01 am
Please log in for more thread options
All, I've been charged with the task of generating a grid covering
certain states where each grid is X square miles.

To do this I need to take a point x1,y1 and add X mile(s) E/W and X
mile(s) N/S. Does anyone out there have a function that will accept a
point in lat/lon, a distance in miles, and a direction (N/S/E/W) only
and return a lat/lon of the new point?

tia,

CG


Posted by Uffe Kousgaard on May 19, 2006, 12:26 pm
Please log in for more thread options
http://williams.best.vwh.net/avform.htm#LL

Watch out, since ALL parameters need to be radians - also your X miles.

tc is the true course: 0, pi/2, pi and 3*pi/2 for the 4 directions.

> All, I've been charged with the task of generating a grid covering
> certain states where each grid is X square miles.
>
> To do this I need to take a point x1,y1 and add X mile(s) E/W and X
> mile(s) N/S. Does anyone out there have a function that will accept a
> point in lat/lon, a distance in miles, and a direction (N/S/E/W) only
> and return a lat/lon of the new point?
>
> tia,
>
> CG
>



Posted by ed_w on May 23, 2006, 12:05 pm
Please log in for more thread options
What do you really want to do? It's not possible to overlay a square
grid on the surface of a sphere. Imagine trying to glue a piece of
plane graph paper onto a sphere. Somewhere it will develop creases, or
it will have to be stretched.
Many mid-western states have roads laid out on "section lines". Each
section encloses one square mile. The E-W roads run along parallels.
The N-S ones take periodic jogs. Without them, the sections would get
smaller in width as you went North.
The resulting sections are all (approximately one mile square, but
you'd need a loose definition of "grid" to describe the roads as such.
If a grid with curved sides is acceptable, lay out a square grid on
an equal area projection of the sphere (of which there are several) and
project back onto the sphere.

crgiles@gmail.com wrote:
> All, I've been charged with the task of generating a grid covering
> certain states where each grid is X square miles.
>
> To do this I need to take a point x1,y1 and add X mile(s) E/W and X
> mile(s) N/S. Does anyone out there have a function that will accept a
> point in lat/lon, a distance in miles, and a direction (N/S/E/W) only
> and return a lat/lon of the new point?
>
> tia,
>
> CG


Similar ThreadsPosted
how to generate 1-mile grid? February 20, 2004, 7:22 am
NetCDF-Grid to ArcView-Grid January 11, 2006, 6:58 am
Difference between meter grid and arc-grid March 9, 2006, 5:22 am
calculating "eye altitude"? February 10, 2008, 1:15 pm
Calculating Moon Azimuth April 30, 2006, 3:13 pm
Calculating UTMz in MapInfo September 9, 2006, 11:15 am
Calculating the intersection with a point on the earth... March 14, 2006, 3:37 am
generating lat/lon grid October 18, 2005, 2:44 am
Grid Coordinates to UTM October 14, 2005, 7:20 am
grid reprojection algorithms July 4, 2006, 6:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap