From: Sandro Santilli Date: Fri, 12 Oct 2012 08:27:09 +0000 (+0000) Subject: Fix ptarray_area_sphere signature (#2040) X-Git-Tag: 2.1.0beta2~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1b679b776260d49e9218c766f92347aee5962ed;p=postgis 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 --- 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);