WFS Query with spatial operator Equals and a line geometry does not work
against SDE (version 9.1)
--------------------------------------------------------------------------------------------------
Key: GEOT-1421
URL: http://jira.codehaus.org/browse/GEOT-1421
Project: GeoTools
Issue Type: Bug
Components: data arcsde
Environment: SDE 9.1
Reporter: Aleda Freeman
Assignee: Gabriel Roldán
Priority: Minor
WFS GetFeature requests using Equals spatial operator work for polygon and
point but not line.
sample request:
<wfs:GetFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://giswebservices.massgis.state.ma.us/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.0.0">
<wfs:Query typeName="massgis:GISDATA.MBTA_ARC"
xmlns:massgis="http://massgis.state.ma.us/featuretype">
<ogc:Filter>
<ogc:Equals>
<ogc:PropertyName>massgis:SHAPE</ogc:PropertyName>
<gml:LineString>
<gml:coordinates
xmlns:gml="http://www.opengis.net/gml" decimal="."
cs="," ts="
">241957.85064451615,907419.050789023
241877.03064451565,907218.2507890236
241803.78064451483,907018.7207890213
241780.410644516,906940.4207890263
241763.3606445147,906835.6007890203
241755.16064451565,906740.250789023
241754.52064451526,906661.9507890221
241758.3106445158,906614.590789023
241765.26064451566,906550.810789022
241776.63064451606,906459.8807890197
241789.8906445151,906348.7507890204
241810.09064451634,906183.940789025
241827.14064451636,906056.3907890224
241842.93064451643,905923.1507890234
241869.45064451706,905666.150789025
241870.08064451613,905566.3807890242
241864.40064451747,905525.9707890209
241856.19064451611,905499.4507890227
241834.72064451608,905435.6707890246
241790.52064451695,905340.3207890217
241570.14064451563,904886.9407890243
241473.53064451547,904685.510789023
241440.06064451498,904627.4207890229
241402.81064451562,904564.9107890235
241352.290644516,904499.2307890235
241303.67064451656,904444.9307890235
241210.85064451722,904370.420789023
241100.34064451564,904306.6407890235
240884.3906445161,904203.7207890223
240732.84064451512,904138.0507890229
240628.0206445165,904091.9507890232
240453.11064451566,904012.3907890215
240363.44064451632,903970.710789021
240305.9806445163,903938.5107890214
240261.78064451672,903904.4107890227
240220.10064451626,903863.370789022
240168.32064451725,903810.9607890232
239990.66064451635,903623.440789023
239920.17064451624,903555.2207890211
239824.82064451635,903470.6007890234
239792.61064451598,903451.6607890229
239743.36064451688,903429.5607890198
239685.27064451575,903420.0907890238
239645.49064451575,903418.1907890233
239531.82064451586,903420.7207890241
239469.94064451617,903419.4607890234
239421.9506445157,903412.5107890218
239387.22064451582,903399.8807890217
239295.03064451594,903354.4207890232
239230.62064451646,903320.9507890206
239164.32064451586,903286.8507890261
239131.49064451628,903266.6507890235
239063.6906445151,903194.1907890255
238943.12064451567,903059.3707890215
238825.550644516,902929.370789023
238762.18064451544,902849.8707890233
238685.1106445147,902750.9707890223
238629.18064451692,902684.1207890229
238572.37064451596,902615.4407890214
238571.690644516,902614.6907890214
238553.09064451593,902590.4207890233
238528.3306445165,902567.0807890238
238512.0706445162,902556.1207890215
238489.43064451564,902542.6807890208</gml:coordinates>
</gml:LineString>
</ogc:Equals>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
response:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:massgis="http://massgis.state.ma.us/featuretype"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://massgis.state.ma.us/featuretype
http://giswebservices.massgis.state.ma.us/geoserver/wfs/DescribeFeatureType?typeName=massgis:GISDATA.MBTA_ARC
http://www.opengis.net/wfs
http://giswebservices.massgis.state.ma.us/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy>
<gml:null>unknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>
This request sends back a geometry that was gotten from GeoServer originally:
<wfs:GetFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://giswebservices.massgis.state.ma.us/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.0.0">
<wfs:Query typeName="massgis:GISDATA.MBTA_ARC"
xmlns:massgis="http://massgis.state.ma.us/featuretype">
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>LINE</ogc:PropertyName>
<ogc:Literal>BLUE</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel