Re: [R-sig-Geo] Determining a coordinate given another coordinate, a great circle distance, and an angle

2009-10-08 Thread Harry Kim
Hey Tom! It's great to hear from you :). I did think about using a UTM projection but the region of interest (Turkey) is too big. It requires 6 UTM zones to cover it and if the point is around the boundary i thought that it would create some problems. I wasn't aware of other distance/area

Re: [R-sig-Geo] Determining a coordinate given another coordinate, a great circle distance, and an angle

2009-10-08 Thread Harry Kim
Hi Robert, Thank you so much! I just tested the code and it works beautifully. This is exactly what I wanted to do. I had a feeling that it could be calculated analytically but I kept messing up my calculations. Thanks again! Harry On Wed, Oct 7, 2009 at 10:47 AM, Robert J. Hijmans

Re: [R-sig-Geo] Determining a coordinate given another coordinate, a great circle distance, and an angle

2009-10-07 Thread Tomislav Hengl
Hi Harry, The key issue is that you need to select the (Euclidean) coordinate system. For example, to represent the whole world, there are many possiblities (http://www.radicalcartography.net/?projectionref). If you are working with the great circle distance, make sure that the geographic

Re: [R-sig-Geo] Determining a coordinate given another coordinate, a great circle distance, and an angle

2009-10-07 Thread Robert J. Hijmans
Harry, I think you are after something like the function below (I did not test it much). Robert # based on code at http://www.movable-type.co.uk/scripts/latlong.html # © 2002-2009 Chris Veness # license: LPGL; without any warranty express or implied # R version by R Hijmans # calculate

[R-sig-Geo] Determining a coordinate given another coordinate, a great circle distance, and an angle

2009-10-06 Thread Harry Kim
Dear R-sig-geoers, I am stuck with a problem and i was hoping if you could help me. Suppose i am given a coordinate in lat/long (say 25 lat 35 long) and a great circle distance (say 10km). Also assume that i am given an angle with respect to latitude (an angle from the x-axis say 30