]> granicus.if.org Git - postgis/commitdiff
Fix ptarray_area_sphere signature (#2040)
authorSandro Santilli <strk@keybit.net>
Fri, 12 Oct 2012 08:27:09 +0000 (08:27 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 12 Oct 2012 08:27:09 +0000 (08:27 +0000)
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
liblwgeom/lwgeodetic.h

index 8f4d78355056ddbfbbeb1face0f17635d375e55a..ebf06c1cbd4b5cff92167f3b72405a22cb901560 100644 (file)
@@ -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);
 
index b7f43e4e1eb4e637123d81169b31483c9fe8e203..ce57df2c439a76a6fa9ee1e38e8351edfee0e5ac 100644 (file)
@@ -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);