Displaying 2 results from an estimated 2 matches for "original_y".
Did you mean:
original_x
2006 Oct 07
1
random point in a circle centred in a geographical position
Dear List members
I am trying to find a way to generate a random point in a circle centred in a geographical location.
So far I have used the following formula (see code below):
random_x = original_x + radius*cos(angle)
random_y = original_y + radius*sin(angle)
where radius is a random number between 0 and the radius of the circle and
angle is between 0 and 360 degrees
The code bellow works fine however some people argue that this method will produce uneven locations? I really do not understand why.
Another option will be to use the...
2006 Jan 01
11
Migration db_schema_import always fails.
I have not been able to get DB migrations to work at all in Rails 1.0
for me. On multiple platforms I continually get the same errors. It
took me awhile to figure out some initial things, such as Migrations
don''t seem to support Enum column types, and doesn''t really support
Foreign key relationships (the constraints at least). After changing
my DB schema to jive more with the