Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf25e203

Browse files
author
Markus Nullmeier
committed
gnomonic projection: make tests pass even with slightly imprecisely implemented transcendental functions
1 parenta25e89d commitf25e203

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎gnomo.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ Datum gnomonic_proj(PG_FUNCTION_ARGS)
3535
g->x=cos_lat*sin_delta /cos_dist;
3636
g->y= (cos_lat_t*sin_lat-sin_lat_t*cos_lat__cos_delta) /cos_dist;
3737

38+
if (p->lng==t->lng&&p->lat==t->lat)
39+
{
40+
g->x=0;
41+
g->y=0;
42+
}
3843
PG_RETURN_POINTER(g);
3944
}
4045

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp