From a1b679b776260d49e9218c766f92347aee5962ed Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 12 Oct 2012 08:27:09 +0000 Subject: [PATCH] Fix ptarray_area_sphere signature (#2040) Since I was a it I also removed a "set but not used" warning. git-svn-id: http://svn.osgeo.org/postgis/trunk@10413 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeodetic.c | 2 -- liblwgeom/lwgeodetic.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 8f4d78355..ebf06c1cb 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -2134,8 +2134,6 @@ double lwgeom_area_sphere(const LWGEOM *lwgeom, const SPHEROID *spheroid) { int type; double radius2 = spheroid->radius * spheroid->radius; - GBOX gbox; - gbox.flags = 0; assert(lwgeom); diff --git a/liblwgeom/lwgeodetic.h b/liblwgeom/lwgeodetic.h index b7f43e4e1..ce57df2c4 100644 --- a/liblwgeom/lwgeodetic.h +++ b/liblwgeom/lwgeodetic.h @@ -92,7 +92,7 @@ void geographic_point_init(double lon, double lat, GEOGRAPHIC_POINT *g); int ptarray_point_in_ring_winding(const POINTARRAY *pa, const POINT2D *pt_to_test); int lwpoly_covers_point2d(const LWPOLY *poly, const POINT2D *pt_to_test); int ptarray_point_in_ring(const POINTARRAY *pa, const POINT2D *pt_outside, const POINT2D *pt_to_test); -double ptarray_area_sphere(const POINTARRAY *pa, const POINT2D *pt_outside); +double ptarray_area_sphere(const POINTARRAY *pa); double latitude_degrees_normalize(double lat); double longitude_degrees_normalize(double lon); double ptarray_length_spheroid(const POINTARRAY *pa, const SPHEROID *s); -- 2.50.1