![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
8.5, 9.0-M0 |
Assignee:
|
Unassigned |
Components:
|
geometry |
Created:
|
15/Jan/13 4:20 PM
|
Description:
|
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".
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));
|
Environment:
|
Java 6.x, CentOS 6.2
|
Project:
|
GeoTools
|
Priority:
|
Major
|
Reporter:
|
h dam
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ 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_122512
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel