You now cast the GridElement to a PolygonElement and call getCenter() on that.
There are updated example programs here: http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/grid/ I'll also be updating the docs this evening. Beware that there may be more API changes that break backwards compatibility over the next few days. I knew that Andrea had done something in GS but I assumed it was against the stable branch (which I'm not changing). Michael On 11 May 2011 19:19, Ben Caradoc-Davies <[email protected]> wrote: > What is the replacement for GridElement.getCenter()? > (I'd guess some sort of spatial average, but is there a canonical form?) > > On 11/05/11 16:14, Michael Bedward wrote: >> >> On 11 May 2011 18:08, Ben Caradoc-Davies (JIRA)<[email protected]> wrote: >>> >>> The r37164 change just broke the GeoServer trunk build; Michael, I assume >>> you will fix it? >>> >> >> Ah, well I"m afraid you assume wrong. Sorry. >> >> The changes were committed to an unsupported module (grid) on trunk. >> As I understand it, the policy with unsupported modules, but >> especially those on trunk, is "user beware". >> >> Since I'm neither a developer or user of GS I can't really help. >> >> Michael >> > > -- > Ben Caradoc-Davies <[email protected]> > Software Engineering Team Leader > CSIRO Earth Science and Resource Engineering > Australian Resources Research Centre > ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
