On Mon, Nov 15, 2010 at 11:10 AM, Daniele Romagnoli <[email protected]> wrote: > Hi guys, > I have a question for you: > > why the ReferencedEnvelope.getArea method is returning > Double.POSITIVE_INFINITY and the "super.getArea();" is commented out? > (on trunk, gt-api, org.geotools.geometry.jts). > > However, the weird thing is that if I create a ReferencedEnvelope and I call > the getArea method, I get the proper area (I tested it both on eclipse and > as a standalone junit test invoked through Maven). > > Can you please provide me more info on this?
Hmmm... nobody answering... oh well, to me this looks like a bug since parts of the code treat the referenced envelope as a plain Envelope. I somehow see the reasoning with crippling that method, area in what unit of measure for example? But a ReferencedEnvelope in the end is just an Envelope, so cartesian area should still be the semantics imho Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
