Hi Steve, Thanks for this - it's a good catch. That method was a quick hack for FOSS4G. Perhaps a better long term solution would be to have a method in the map layer itself so that lets you check what sort of feature source it has. What do you think ?
Andrea, what do you think about a MapLayer method, perhaps returning an enum to indicate the vector features vs grid coverage vs grid coverage reader ? Michael 2009/11/22 Stefan Alfons Krüger (JIRA) <[email protected]>: > MapLayerUtils.isGridLayer not good? > ----------------------------------- > > Key: GEOT-2845 > URL: http://jira.codehaus.org/browse/GEOT-2845 > Project: GeoTools > Issue Type: Bug > Components: ext mappane > Affects Versions: 2.6.0 > Reporter: Stefan Alfons Krüger > Assignee: Michael Bedward > Priority: Minor > Fix For: 2.6.1 > Attachments: otherGridClasses.patch > > Hi Michael > > The utility method isGridLayer checks whether the Binding classname contains: > private static final String GRID_PACKAGE = "org.geotools.coverage.grid"; > > In my application the runtime class of an ASCII grid is > "org.opengis.coverage.grid.GridCoverage" > > the patch for 2.6.x is attached adds check for "org.opengis.coverage.grid.*" > also. > > Greetz, > Steve > > > > > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://jira.codehaus.org/secure/Administrators.jspa > - > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
