[mapserver-users] Fwd: WFS query on WFS layer is very slow

Stéphane Brunner stephane.brunner at camptocamp.com
Mon May 31 07:32:43 PDT 2021


Hello,

I have a layer configured like this:

LAYER
    NAME "borne_hydrante"
    GROUP "borne_hydrante_gr"
    TYPE POINT
    TEMPLATE "ttt"
    CONNECTIONTYPE WFS
    CONNECTION "https://bdbh.eca-vaud.ch/ows?"
    METADATA
        "wfs_title" "borne_hydrante"
        "wfs_typename" "ms:borne_hydrante"
        "ows_title" "ms:borne_hydrante"
        "wms_title" "borne_hydrante"
        "wfs_srs" "EPSG:2056"
        "wfs_enable_request" "*"
        "ows_geom_type" "point"
        "ows_geometries" "geom"
        "wms_srs" "EPSG:2056"
        "wms_server_version"  "1.1.1"
        "wfs_version" "1.0.0"
        "wms_format" "image/png"
        "wms_name" "ms:borne_hydrante"
        "gml_featureid" "id"
        "gml_types" "auto"
        "gml_include_items" "all"
    END
    DUMP FALSE
    PROJECTION
      "init=epsg:2056"
    END
    CLASS
        NAME "borne hydrante ECA"
        STYLE
           SYMBOL "circle"
           SIZE 12
           OUTLINECOLOR 0 210 0
           COLOR 255 255 255
        END
        STYLE
           SYMBOL "circle"
           SIZE 6
           OUTLINECOLOR 0 210 0
           COLOR 0 210 0
        END
    END
END

It's working well on WMS but on WFS it's relay slow:
Example of WFS query

<GetFeature xmlns="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" outputFormat="GML3" maxFeatures="20" 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"><Query
typeName="feature:com_lim" srsName="EPSG:2056" xmlns:feature="
http://mapserver.gis.umn.edu/mapserver"><Filter xmlns="
http://www.opengis.net/ogc"><BBOX><PropertyName>geom</PropertyName><Envelope
xmlns="http://www.opengis.net/gml" srsName="EPSG:2056"><lowerCorner>2560925
1131734.9999999998</lowerCorner><upperCorner>2560940
1131749.9999999998</upperCorner></Envelope></BBOX></Filter></Query></GetFeature>

When I have a look on the logs I see that the query is done 3 times...
 logs
<https://drive.google.com/file/d/1jbkz20J64g-CE9sETG0fB4Vp04anMJdi/view?usp=drive_web>

Is there a configuration That I can do to have better performances?

Sincerely,
Stéphane Brunner
-- 

*Stéphane Brunner*
Geospatial Solutions
Software Developer

*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

camptocamp.com
mapfish.org


-- 

*Stéphane Brunner*
Geospatial Solutions
Software Developer

*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

camptocamp.com
mapfish.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210531/97eaf403/attachment.htm>


More information about the MapServer-users mailing list