[Portugal] MapServer 6 + OpenLayers 2.11 WFS error
Marco Afonso
mafonso333 gmail.com
Terça-Feira, 12 de Junho de 2012 - 14:54:19 PDT
Já funciona!
Basta olhar para o XML... na versão 1.1.0 falta o parâmetro "PropertyName"
no filtro. Criei o WFS com a opção geometryName, assim:
OpenLayers.Protocol.WFS.fromWMSLayer(layer, {geometryName: "the_geom"})
e já não devolve excepção :)
No dia 12 de Junho de 2012 21:46, Marco Afonso <mafonso333 gmail.com>escreveu:
> Boa noite,
>
> Obrigado pela dica Duarte.
>
> Em anexo o GetCapabilities do WFS. Os warnings emitidos não devem afetar o
> problema...
>
> *Este é o pedido WFS 1.0.0 do OpenLayers (funciona):*
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.0.0" 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="feature:layer1">
> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
> <ogc:BBOX>
> <ogc:PropertyName>the_geom</ogc:PropertyName>
> <gml:Box xmlns:gml="http://www.opengis.net/gml"
> srsName="EPSG:900913">
> <gml:coordinates decimal="." cs="," ts="
> ">-908768.18639262,4528699.1266543
> -884308.33734476,4553158.9757021</gml:coordinates>
> </gml:Box>
> </ogc:BBOX>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> *Este é o pedido WFS 1.1.0 (não funciona):*
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.1.0" 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="feature:layer1" srsName="EPSG:900913">
> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
> <ogc:BBOX>
> <gml:Envelope xmlns:gml="http://www.opengis.net/gml"
> srsName="EPSG:900913">
> <gml:lowerCorner>-971140.80146464
> 4500570.3002492</gml:lowerCorner>
> <gml:upperCorner>-946680.95241679
> 4525030.1492971</gml:upperCorner>
> </gml:Envelope>
> </ogc:BBOX>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> Coloquei aqui na lista porque pensei que pudessem confirmar este
> problema...
>
> Marco
>
>
> 2012/6/12 duartecarreira <dncarreira gmail.com>
>
>> Podes obter o capsdoc e verificar se não há errors ou warnings emitidos
>> pelo
>> mapserver:
>>
>> <url>?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities
>>
>> boa sorte,
>> duarte
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/MapServer-6-OpenLayers-2-11-WFS-error-tp4980386p4980700.html
>> Sent from the OSGeo Portuguese Local Chapter mailing list archive at
>> Nabble.com.
>> _______________________________________________
>> Portugal mailing list
>> Portugal lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/portugal
>>
>
>
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.osgeo.org/pipermail/portugal/attachments/20120612/198b7c2c/attachment-0001.html>
More information about the Portugal
mailing list