From 13d192f255cd71a277270fdda1d9bfcce78edf84 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 8 Jun 2010 20:01:40 +0000 Subject: [PATCH] add area method for polygon geometries, and avoid compiler warnings about intializations with -03 --- include/mapnik/geometry.hpp | 44 ++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/include/mapnik/geometry.hpp b/include/mapnik/geometry.hpp index c12f59cde..d4089e38c 100644 --- a/include/mapnik/geometry.hpp +++ b/include/mapnik/geometry.hpp @@ -53,7 +53,8 @@ public: box2d envelope() const { box2d result; - double x,y; + double x(0); + double y(0); rewind(0); for (unsigned i=0;i envelope() const { - box2d result; - double x,y; + box2d result; + double x(0); + double y(0); rewind(0); for (unsigned i=0;i