Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-07-02 Thread Niels Charlier
> > I've cc'ed Niels, the author of the change that's resulting in the > exception you're seeing. > Niels, wondering if the following test: > > if (! (collection instanceof SimpleFeatureCollection)) { > //put wrapper around it with layer name > Name name = n

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-23 Thread Andrea Aime
On Sat, Jun 23, 2012 at 1:40 PM, Niels Charlier wrote: > >> I've cc'ed Niels, the author of the change that's resulting in the >> exception you're seeing. >> Niels, wondering if the following test: >> >> if (! (collection instanceof SimpleFeatureCollection)) { >>//put wrapper

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-21 Thread Andrea Aime
On Thu, Jun 21, 2012 at 11:28 AM, Rahkonen Jukka wrote: > ** > Hi, > > Could it have something to do with that Oracle can store whatever sort of > geometries into the same SDO_GEOMETRY field if is not especially denied by > setting a constraint when the spatial index is created? Perhaps some part

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-21 Thread Rahkonen Jukka
Hi, Could it have something to do with that Oracle can store whatever sort of geometries into the same SDO_GEOMETRY field if is not especially denied by setting a constraint when the spatial index is created? Perhaps some part of the system is not sure that there will be polygons and that make

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-21 Thread Andrea Aime
On Thu, Jun 21, 2012 at 9:43 AM, Gavin wrote: > Thanks Andrea > > The data is coming from a Oracle table and as stated previous if I do > the request as any other format but Xml the request works fine > pulls back a polygon and a few attributes > > http://geology.data.vic.gov.au/tilecache

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-21 Thread Gavin
Thanks Andrea The data is coming from a Oracle table and as stated previous if I do the request as any other format but Xml the request works fine pulls back a polygon and a few attributes http://geology.data.vic.gov.au/tilecache/seamless.html On 21 June 2012 17:35, Andrea Aime wrote:

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-21 Thread Andrea Aime
On Wed, Jun 20, 2012 at 7:43 AM, Gavin wrote: > this is the error from the geoserver log > > 2012-06-20 15:39:52,386 ERROR [geoserver.ows] - > java.lang.ClassCastException: > org.geoserver.wms.featureinfo.FeatureCollectionDecorator cannot be cast to > org.geotools.data.simple.SimpleFeatureCollect

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-20 Thread Rahkonen Jukka
Hi, At least gml info format is returning also the geometries of the features found with GetFeatureInfo as gml. Clients can utilise that for example by flashing the queried feature. -Jukka Rahkonen- Gavin wrote: Thanks for that I shall have a look at the sql

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-20 Thread Rahkonen Jukka
Hi, Best thing you can do is to catch the geometry which is returned by your query. For me the error says that the returning feature collection is something that FeatureCollectionDecorator cannot turn into a simple feature collection. I would guess that for example feature collection containin

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-19 Thread Gavin
this is the error from the geoserver log 2012-06-20 15:39:52,386 ERROR [geoserver.ows] - java.lang.ClassCastException: org.geoserver.wms.featureinfo.FeatureCollectionDecorator cannot be cast to org.geotools.data.simple.SimpleFeatureCollection at org.geoserver.wms.featureinfo.GML2FeatureInf

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-19 Thread Gavin
Hi Sorry Thought I had included the geoserver version information at the bottom of the original email Gavin Build Information - Version 2.2-SNAPSHOT - Subversion Revision 17075 - Build Date 14-May-2012 19:13 - GeoTools Version 8-SNAPSHOT (rev 38723 The full request is unitPicker

Re: [Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-18 Thread Andrea Aime
On Tue, Jun 19, 2012 at 1:13 AM, Gavin wrote: > Hi > > When I do a WMSGetFeatureInfo request from open layers to geoserver > using > unitPicker.infoFormat = 'application/vnd.ogc.gml'; > > Geoserver returns a > java.lang.ClassCastException: > org.geoserver.wms.featureinfo.FeatureCollectionD

[Geoserver-users] WMSGetFeatureInfo error from Geoserver

2012-06-18 Thread Gavin
Hi When I do a WMSGetFeatureInfo request from open layers to geoserver using unitPicker.infoFormat = 'application/vnd.ogc.gml'; Geoserver returns a java.lang.ClassCastException: org.geoserver.wms.featureinfo.FeatureCollectionDecorator cannot be cast to org.geotools.data.simple.SimpleFeatur