From: Simone G. <sim...@ge...> - 2013-01-14 08:48:51
|
I would suggest opening a JIRA with an isolated test case attached. Regards, Simone Giannecchini == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Ing. Simone Giannecchini @simogeo Founder/Director GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 333 8128928 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- On Fri, Jan 11, 2013 at 10:32 PM, hd...@gm... <hd...@gm...> wrote: > Hi, > > I got a java class cast exception when I tried to parse a fes:filter > > Parsing failed for TimePeriod: java.lang.ClassCastException: > org.geotools.temporal.object.DefaultPosition cannot be cast to > org.opengis.temporal.Instant > > By changing the "TimePeriod" to "timePeriod", the parsing is successful. > >From a gml schema perspective, TimePeriod is the correct element, not > "timePeriod". What's happening? > > Thanks, > ...-H > > xml snippet: > <fes:Filter> > ... > <gml:validTime> > <gml:TimePeriod gml:id="time-id-1"> > <gml:beginPosition>2012-11-13T15:06:59</gml:beginPosition> > <gml:endPosition>2012-11-13T15:07:00</gml:endPosition> > </gml:TimePeriod> > </gml:validTime> > > code snippet: > filterString contains the xml > > filterConfiguration = new org.geotools.filter.v2_0.FESConfiguration(); > parser = new Parser(filterConfiguration); > filter = (Filter) parser.parse(new StringReader(filterString)); > > > > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Parsing-failed-for-TimePeriod-java-lang-ClassCastExeption-Is-this-a-bug-tp5027026.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |