[mapserver-users] WFS GetFeature 1.0.0 vs 1.1.0

Martin Kofahl martin.kofahl at gmail.com
Thu Feb 20 05:50:18 PST 2014


Hi Dejan,
I cannot reproduce this error, so far. I tried 6.4.1 and the current master
and did filter on numeric and text columns. Can you provide a shortened
mapfile to reproduce this case?

Martin

2014-02-19 10:38 GMT+01:00 Dejan Gambin <dejan.gambin at coin.hr>:

> Sure, here you are:
>
> 1.0.0 (working) request:
>
> WFS post request: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"
> service="WFS" version="1.0.0" maxFeatures="100" xsi:schemaLocation="
> http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
> typeName="ms:katastar_vodnjan_poligon" xmlns:ms="
> http://gis.kermas-istra.com"><ogc:Filter xmlns:ogc="
> http://www.opengis.net/ogc"><ogc:PropertyIsLike wildCard="*"
> singleChar="."
> escape="!"><ogc:PropertyName>NUMBER</ogc:PropertyName><ogc:Literal>19/1</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></wfs:Query></wfs:GetFeature>
>
> 1.1.0 (non-working) request:
>
> WFS post request: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"
> service="WFS" version="1.1.0" maxFeatures="100" xsi:schemaLocation="
> http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
> typeName="ms:katastar_vodnjan_poligon" srsName="EPSG:900913" xmlns:ms="
> http://gis.kermas-istra.com"><ogc:Filter xmlns:ogc="
> http://www.opengis.net/ogc"><ogc:PropertyIsLike wildCard="*"
> singleChar="."
> escapeChar="!"><ogc:PropertyName>NUMBER</ogc:PropertyName><ogc:Literal>19/1</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></wfs:Query></wfs:GetFeature>
>
> thanks, dejan
>
> On 19. vel. 2014., at 08:57, Martin Kofahl wrote:
>
> Hi Dejan,
> can you please post the get or post request made by openlayers for both,
> version 1.1.0 and 1.0.0?
>
> Martin
>
>
> 2014-02-18 11:37 GMT+01:00 Dejan Gambin <dejan.gambin at coin.hr>:
>
>> Hi,
>>
>> I have been using MapServer 6.0.3 for a while. My client application
>> worked well with WFS 1.1.0 protocol. Here is the part of the code:
>>
>> var protocol = new OpenLayers.Protocol.WFS({
>>                     version: "1.0.0",
>>                     url:  self.options.config.wfs_url +
>> "SERVICE=WFS&srsName=EPSG:900913",
>>                     srsName:"EPSG:900913",
>>                     featureNS: self.options.config.wfs_ns,
>>                     geometryName: "msGeometry",
>>                     featurePrefix: "ms",
>>                     featureType: some_layer,
>>                     defaultFilter: new OpenLayers.Filter.Comparison({
>>                         type: OpenLayers.Filter.Comparison.LIKE,
>>                         property: some_property
>>                         value: some_value
>>                     })
>>                 })
>>
>> Recently I went to MapServer 6.4.1 and I started to get "no results" when
>> using this code to search by attributes. I changed version 1.1.0 to 1.0.0
>> and everything works fine now.
>>
>> Does anyone know what is the reason for this and should I stay on 1.0.0?
>>
>> Notes - when doing spatial query it works ok even with 1.1.0.
>>
>> Thanks!
>>
>> dejan
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140220/0ccebad6/attachment.htm>


More information about the MapServer-users mailing list