From joerg.thomsen at wheregroup.com Thu Feb 6 07:51:12 2025 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=C3=B6rg_Thomsen_=28WhereGroup=29?=) Date: Thu, 6 Feb 2025 16:51:12 +0100 Subject: [MapServer-users] WFS-Client time gap Message-ID: Hello, I'm trying to use a wfs as datasource with this simply layer: LAYER NAME "AX_Wohnbauflaeche" TYPE POLYGON EXTENT 632397 5452678 663188 5477752 CONNECTIONTYPE OGR CONNECTION "WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi??NAMESPACES=xmlns(adv,http://www.adv-online.de/namespaces/adv/gid/7.1)&NAMESPACE=xmlns(adv,http://www.adv-online.de/namespaces/adv/gid/7.1)&" DATA "adv:AX_Wohnbauflaeche" PROCESSING "CLOSE_CONNECTION=DEFER" DEBUG 5 METADATA ows_title 'AX_Wohnbauflaeche' END PROJECTION "init=epsg:25832" END CLASS NAME "wohnfl?chen" STYLE COLOR 255 0 0 END END END It takes about 3 Minutes to get the WMS-Image and there is time gap of 140 sec(!) between the connection to the wfs und getting the data by mapserver. I don't know where to look further to solve this issue, any ideas anyone? Loading the WFS into QGIS works fine. here's the mapserver-log: > [Thu Feb 6 16:12:35 2025].368191 msOGRFileOpen(WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?)... > [Thu Feb 6 16:12:35 2025].368214 GDALOpenEx(WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?) > [Thu Feb 6 16:12:35 2025].675318 msConnPoolRegister(AX_Wohnbauflaeche,WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?,0x557a9fac0b80) > [Thu Feb 6 16:12:36 2025].483355 msOGRFileWhichShapes: Setting spatial filter to 639740.503472222 5458590.60069444 656889.079861111 5471734.94097222 > [Thu Feb 6 16:14:56 2025].440708 msOGRFileNextShape: Returning shape=65597, tile=0 > [Thu Feb 6 16:14:56 2025].440961 msOGRFileNextShape: Returning shape=65600, tile=0 > [Thu Feb 6 16:14:56 2025].441024 msOGRFileNextShape: Returning shape=65601, tile=0 J?rg -- Viele Gr??e, J?rg Thomsen --------------------------------------------- Schon gewusst? In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software und berichten aus unseren Projekten https://wheregroup.com/blog/ --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 From sethg at geographika.co.uk Thu Feb 6 09:40:36 2025 From: sethg at geographika.co.uk (Seth G) Date: Thu, 06 Feb 2025 18:40:36 +0100 Subject: [MapServer-users] WFS-Client time gap In-Reply-To: References: Message-ID: <8396a42d-865b-4fd8-8941-3f36ed857843@app.fastmail.com> Hi J?rg, Maybe each feature is triggering a new cURL request? You could try adding more logging details using: CONFIG "CPL_DEBUG" "ON" CONFIG "CPL_CURL_VERBOSE" "ON" CONFIG "CPL_TIMESTAMP" "ON" Is it any faster if you use the WFS client? https://mapserver.org/ogc/wfs_client.html Seth -- web:https://geographika.net & https://mapserverstudio.net mastodon: @geographika at mastodon.social On Thu, Feb 6, 2025, at 4:51 PM, J?rg Thomsen (WhereGroup) via MapServer-users wrote: > Hello, > > I'm trying to use a wfs as datasource with this simply layer: > > LAYER > NAME "AX_Wohnbauflaeche" > TYPE POLYGON > EXTENT 632397 5452678 663188 5477752 > CONNECTIONTYPE OGR > > CONNECTION > "WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi??NAMESPACES=xmlns(adv,http://www.adv-online.de/namespaces/adv/gid/7.1)&NAMESPACE=xmlns(adv,http://www.adv-online.de/namespaces/adv/gid/7.1)&" > > DATA "adv:AX_Wohnbauflaeche" > PROCESSING "CLOSE_CONNECTION=DEFER" > > DEBUG 5 > > METADATA > ows_title 'AX_Wohnbauflaeche' > END > > PROJECTION > "init=epsg:25832" > END > > CLASS > NAME "wohnfl?chen" > STYLE > COLOR 255 0 0 > END > END > END > > > It takes about 3 Minutes to get the WMS-Image and there is time gap of > 140 sec(!) between the connection to the wfs und getting the data by > mapserver. I don't know where to look further to solve this issue, any > ideas anyone? > Loading the WFS into QGIS works fine. > > here's the mapserver-log: > >> [Thu Feb 6 16:12:35 2025].368191 msOGRFileOpen(WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?)... >> [Thu Feb 6 16:12:35 2025].368214 GDALOpenEx(WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?) >> [Thu Feb 6 16:12:35 2025].675318 msConnPoolRegister(AX_Wohnbauflaeche,WFS:https://geoservices.bayern.de/wfs/v1/ogc_atkis_basisdlm.cgi?,0x557a9fac0b80) >> [Thu Feb 6 16:12:36 2025].483355 msOGRFileWhichShapes: Setting spatial filter to 639740.503472222 5458590.60069444 656889.079861111 5471734.94097222 >> [Thu Feb 6 16:14:56 2025].440708 msOGRFileNextShape: Returning shape=65597, tile=0 >> [Thu Feb 6 16:14:56 2025].440961 msOGRFileNextShape: Returning shape=65600, tile=0 >> [Thu Feb 6 16:14:56 2025].441024 msOGRFileNextShape: Returning shape=65601, tile=0 > > J?rg > > > -- > Viele Gr??e, > J?rg Thomsen > > > --------------------------------------------- > Schon gewusst? > In unserem Blog geben wir Tipps & Tricks zu Open-Source-GIS-Software > und berichten aus unseren Projekten > > https://wheregroup.com/blog/ > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > _______________________________________________ > MapServer-users mailing list > MapServer-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users