[Chameleon-dev] [Bug 1492] New: ExpressionBuilder: generates
invalid XML for spatial filters
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Thu Jun 15 04:08:40 EDT 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1492
Summary: ExpressionBuilder: generates invalid XML for spatial
filters
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: bartvde at xs4all.nl
For spatial filters the ExpressionBuilder widget generates invalid XML:
<ogc:Filter><ogc:And><BBOX><PropertyName>geometry</PropertyName><gml:Box
srsName=''><coordinates>-330326.666667,297647
620326.666667,868039</coordinates></gml:Box></BBOX>
<ogc:PropertyIsEqualTo><ogc:PropertyName>DIENSTCODE</ogc:PropertyName><ogc:Literal>RWS
ON</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter>
When I run this through Xerces I get:
H:\appl\xerces-c-windows_2000-msvc_60\bin>stdinparse -v=always -n -s < context_
sld.xml
Error at (file stdin, line 95, char 28): Unknown element 'BBOX'
Error at (file stdin, line 95, char 98): Unknown element 'coordinates'
Error at (file stdin, line 95, char 164): Element 'coordinates' is not valid for
content model: '((coord|coordinates),)'
Error at (file stdin, line 95, char 309): Element 'BBOX' is not valid for conten
t model: '((comparisonOps|spatialOps)|logicOps)'
This should be instead (proper namespaces need to be added):
<ogc:Filter><ogc:And><ogc:BBOX><ogc:PropertyName>geometry</ogc:PropertyName><gml:Box
srsName=''><gml:coordinates>-330326.666667,297647
620326.666667,868039</gml:coordinates></gml:Box></ogc:BBOX>
<ogc:PropertyIsEqualTo><ogc:PropertyName>DIENSTCODE</ogc:PropertyName><ogc:Literal>RWS
ON</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter>
The problem is in buildRectFilter etc. in ExpressionBuilder.widget.php.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list