[Portugal] MapServer 6 + OpenLayers 2.11 WFS error

Marco Afonso mafonso333 gmail.com
Terça-Feira, 12 de Junho de 2012 - 13:46:18 PDT


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/0107f892/attachment.html>
-------------- próxima parte ----------
A non-text attachment was scrubbed...
Name: demo_mapserver_wfs.xml
Type: text/xml
Size: 7807 bytes
Desc: não disponível
URL: <http://lists.osgeo.org/pipermail/portugal/attachments/20120612/0107f892/attachment.xml>


More information about the Portugal mailing list