From: Paul Ramsey Date: Wed, 7 Oct 2009 03:38:41 +0000 (+0000) Subject: Put prototypes into place X-Git-Tag: 1.5.0b1~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16379dfe1b3a8ad107eaded8dd3fad60be99bb51;p=postgis Put prototypes into place git-svn-id: http://svn.osgeo.org/postgis/trunk@4614 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 80ff11019..5bd031d31 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -73,7 +73,7 @@ static double latitude_radians_normalize(double lat) /** * Convert a longitude to the range of -180,180 */ -static double longitude_degrees_normalize(double lon) +double longitude_degrees_normalize(double lon) { if( lon == -180.0 ) return 180.0; @@ -98,7 +98,7 @@ static double longitude_degrees_normalize(double lon) /** * Convert a latitude to the range of -90,90 */ -static double latitude_degrees_normalize(double lat) +double latitude_degrees_normalize(double lat) { if( lat > 360.0 ) diff --git a/liblwgeom/lwgeodetic.h b/liblwgeom/lwgeodetic.h index 153c48687..391544c61 100644 --- a/liblwgeom/lwgeodetic.h +++ b/liblwgeom/lwgeodetic.h @@ -75,3 +75,5 @@ void geographic_point_init(double lon, double lat, GEOGRAPHIC_POINT *g); int ptarray_point_in_ring_winding(POINTARRAY *pa, POINT2D pt_to_test); int lwpoly_covers_point2d(const LWPOLY *poly, GBOX gbox, POINT2D pt_to_test); int ptarray_point_in_ring(POINTARRAY *pa, POINT2D pt_outside, POINT2D pt_to_test); +double latitude_degrees_normalize(double lat); +double longitude_degrees_normalize(double lon);