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

2021-05-31 Thread Stéphane Brunner via mapserver-users
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

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;>http://mapserver.gis.umn.edu/mapserver;>http://www.opengis.net/ogc;>geomhttp://www.opengis.net/gml; srsName="EPSG:2056">2560925
1131734.982560940
1131749.98

When I have a look on the logs I see that the query is done 3 times...
 logs


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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread WhereGroup
BUT... (more as an anwser to jeff):

Mathias is right, WFS needs no style information on server-side.

The wohle class-section of the example is not necessary (useless if only
used für wfs-requests). shp2img might use it but a wfs-request doesn't
and a wms-request should not work, because the examples only configures
a wfs.

(or is it me woh is confused?)

Jörg




Am 31.05.21 um 14:40 schrieb Rahkonen Jukka (MML) via mapserver-users:
> Hi,
> 
>  
> 
> Mapserver can serve a layers through different services. STYLE is not
> for WFS but it can be used in =map or in the WMS service.
> 
>  
> 
> Similarly Geoserver can deliver GML data
> http://demo.geo-solutions.it/geoserver/topp/ows?service=WFS=1.0.0=GetFeature=topp:states=50
> 
> 
>  
> 
> or the same data as styled through WMS
> 
> http://demo.geo-solutions.it/geoserver/topp/wms?service=WMS=1.1.0=GetMap=topp:states==-124.7314220001,24.955967,-66.969849,49.371735=768=330=EPSG:4326=application/openlayers
> 
> 
>  
> 
> -Jukka Rahkonen-
> 
>  
> 
>  
> 
> *Lähettäjä:* mapserver-users  > *Puolesta *mathias
> cunault via mapserver-users
> *Lähetetty:* maanantai 31. toukokuuta 2021 13.21
> *Vastaanottaja:* mapserver-users@lists.osgeo.org
> 
> *Aihe:* [mapserver-users] Styling a WFS ? or not ?
> 
>  
> 
> Hello,
> 
> It seems that styling a WFS is nonsense according to what I found on the
> net (?). And I couldn't do it until now. But in Mapserver doc there is
> an example with a WFS and a style
> https://www.mapserver.org/ogc/wfs_server.html
> .
> 
> So I am a bit confused : is there a way to stylize a WFS layer or I
> misunderstand the doc ?
> 
> Thanks
> 
> 
> -- 
> 
> /--/
> 
> /Mathias Cunault/
> 
> /référent SIG / Admin Caviar
> Inrap Tours - 148 av. Maginot
> 37000 TOURS
> 06 32 05 98 96
> //mathias.cuna...@inrap.fr/ 
> 
> www.inrap.fr 
> abonnez-vous à la lettre d'information de l'Inrap :
> http://www.inrap.fr/newsletter.php 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


Viele Grüße,
Jörg Thomsen

-- 
 
 Aufwind durch Wissen!
 Web-Seminare und Online-Schulungen
 bei der www.foss-academy.com
 



Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11

joerg.thom...@wheregroup.com
www.wheregroup.com

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

---
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread Rahkonen Jukka (MML) via mapserver-users
Hi,

Mapserver can serve a layers through different services. STYLE is not for WFS 
but it can be used in =map or in the WMS service.

Similarly Geoserver can deliver GML data 
http://demo.geo-solutions.it/geoserver/topp/ows?service=WFS=1.0.0=GetFeature=topp:states=50

or the same data as styled through WMS

http://demo.geo-solutions.it/geoserver/topp/wms?service=WMS=1.1.0=GetMap=topp:states==-124.7314220001,24.955967,-66.969849,49.371735=768=330=EPSG:4326=application/openlayers

-Jukka Rahkonen-


Lähettäjä: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 Puolesta mathias cunault via mapserver-users
Lähetetty: maanantai 31. toukokuuta 2021 13.21
Vastaanottaja: 
mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Styling a WFS ? or not ?

Hello,
It seems that styling a WFS is nonsense according to what I found on the net 
(?). And I couldn't do it until now. But in Mapserver doc there is an example 
with a WFS and a style https://www.mapserver.org/ogc/wfs_server.html.
So I am a bit confused : is there a way to stylize a WFS layer or I 
misunderstand the doc ?
Thanks

--
--
Mathias Cunault
référent SIG / Admin Caviar
Inrap Tours - 148 av. Maginot
37000 TOURS
06 32 05 98 96
mathias.cuna...@inrap.fr
www.inrap.fr
abonnez-vous à la lettre d'information de l'Inrap : 
http://www.inrap.fr/newsletter.php
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread Jeff McKenna via mapserver-users

Hi Mathias,

Styling of WFS services happens on the client-side.  For example, see 
this WFS-client layer example, where you can set any color that you wish 
for this 'continents' layer that is served through a remote WFS service 
: https://www.mapserver.org/ogc/wfs_client.html#example-wfs-layer  You 
can copy/paste that entire layer into your own mapfile (and change the 
COLOR values) and then execute it with a shp2img command, to see what I 
mean.


Hope that helps,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-05-31 7:20 a.m., mathias cunault via mapserver-users wrote:

Hello,
It seems that styling a WFS is nonsense according to what I found on the 
net (?). And I couldn't do it until now. But in Mapserver doc there is 
an example with a WFS and a style 
https://www.mapserver.org/ogc/wfs_server.html 
.
So I am a bit confused : is there a way to stylize a WFS layer or I 
misunderstand the doc ?

Thanks

--
/--/
/Mathias Cunault/
/référent SIG / Admin Caviar
///Inrap Tours - /148 av. Maginot
37000 TOURS
06 32 05 98 96
_mathias.cuna...@inrap.fr _/
www.inrap.fr 
abonnez-vous à la lettre d'information de l'Inrap : 
http://www.inrap.fr/newsletter.php 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapscript C# and OWSRequest parameters

2021-05-31 Thread Seth G via mapserver-users
Actually as there are no URL limits with MapScript you should be able to add 
your filter as a WFS GET parameter and skip using POST requests altogether. 

https://www.mapserver.org/fr/ogc/filter_encoding.html#tests


--
web:http://geographika.co.uk
twitter: @geographika


On Mon, May 31, 2021, at 10:45 AM, Jelmer Baas wrote:
> Hi all,

>  

> Well, that route was a short one. Yes, I can call installStdinFromBuffer, but 
> actually reading something via bufferRead:

>  

> int msIO_bufferRead( void *cbData, void *data, int byteCount )

>  

> {

>   (void)cbData;

>   (void)data;

>   (void)byteCount;

>   /* not implemented yet. */

>   return 0;

> }

>  

> Unless I’m missing something, this isn’t possible, yet. I find it hard to 
> believe no-one uses MapServer to handle WFS Post requests, so I’m pretty sure 
> I’m missing something?

>  

> Regards,

> Jelmer Baas

>  

> *From:* mapserver-users  *On Behalf 
> Of *Seth G
> *Sent:* donderdag 27 mei 2021 20:35
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Mapscript C# and OWSRequest parameters

>  

> Hi Jelmer,

>  

> I think you'd have to use mapscript.msIO_installStdinFromBuffer to read data 
> in.

> See https://mapserver.org/development/rfc/ms-rfc-16.html#io-hooking although 
> I'm not sure if the approach works or was fully implemented.

> Let us know how you get on,

>  

> Seth

>  

> --

> web:http://geographika.co.uk

> twitter: @geographika

>  

>  

> On Thu, May 27, 2021, at 10:39 AM, Jelmer Baas wrote:

>> Hello,

>>  

>> For a new project, I’ve decided to pickup MapScript again to function as an 
>> internal (back-end) WFS server. I use the OWSRequest class, which works fine 
>> when I fill it with loadParamsFromURL() – in the case of Get requests.

>>  

>> I can’t seem to figure out a way to get my POST data into this object, 
>> though. It has a loadParams method, but because I’m not running as a CGI 
>> application (back-end app without a webserver), this doesn’t do anything. I 
>> also tried setting postrequest property and then calling the loadParams, 
>> setting Environment variables, etc. No error, no exception, just -1 value 
>> from NumParams.

>>  

>> Any suggestions on how to proceed?

>>  

>> Regards,

>> Jelmer Baas

>>

>>  

>> ___

>> mapserver-users mailing list

>> mapserver-users@lists.osgeo.org 

>> https://lists.osgeo.org/mailman/listinfo/mapserver-users

>>  

>  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread mathias cunault via mapserver-users
Hello,
It seems that styling a WFS is nonsense according to what I found on the
net (?). And I couldn't do it until now. But in Mapserver doc there is an
example with a WFS and a style https://www.mapserver.org/ogc/wfs_server.html
.
So I am a bit confused : is there a way to stylize a WFS layer or I
misunderstand the doc ?
Thanks

-- 
*--*
*Mathias Cunault*

*référent SIG / Admin Caviar*


*Inrap Tours - 148 av. Maginot37000 TOURS06 32 05 98
96mathias.cuna...@inrap.fr *
www.inrap.fr
abonnez-vous à la lettre d'information de l'Inrap :
http://www.inrap.fr/newsletter.php
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapscript C# and OWSRequest parameters

2021-05-31 Thread Seth G via mapserver-users
Hi Jelmer,

There is no issue using MapServer to handle WFS POST requests, but it seems as 
though this functionality was never implemented for the MapScript bindings. 

See links:

https://github.com/MapServer/MapServer/issues/1788#issuecomment-42658553

> To implement this, we would need to actually implement the msIO_bufferRead()
> function in mapio.c, and add a function to push data into this buffer
> (something roughly like msIO_getStdoutBufferString() and
> msIO_getStdoutBufferBytes() from mapscript/swiginc/msio.i but in the
> opposite direction).
> 
And also https://github.com/MapServer/MapServer/issues/2681#issue-3960720

So two options - 1) add in the functionality for msIO_bufferRead (which would 
be a nice addition to MapServer), or 2) use the other MapScript querying 
mechanisms as documented at 
https://geographika.github.io/MapServer-documentation/mapscript/querying.html

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Mon, May 31, 2021, at 10:45 AM, Jelmer Baas wrote:
> Hi all,

>  

> Well, that route was a short one. Yes, I can call installStdinFromBuffer, but 
> actually reading something via bufferRead:

>  

> int msIO_bufferRead( void *cbData, void *data, int byteCount )

>  

> {

>   (void)cbData;

>   (void)data;

>   (void)byteCount;

>   /* not implemented yet. */

>   return 0;

> }

>  

> Unless I’m missing something, this isn’t possible, yet. I find it hard to 
> believe no-one uses MapServer to handle WFS Post requests, so I’m pretty sure 
> I’m missing something?

>  

> Regards,

> Jelmer Baas

>  

> *From:* mapserver-users  *On Behalf 
> Of *Seth G
> *Sent:* donderdag 27 mei 2021 20:35
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Mapscript C# and OWSRequest parameters

>  

> Hi Jelmer,

>  

> I think you'd have to use mapscript.msIO_installStdinFromBuffer to read data 
> in.

> See https://mapserver.org/development/rfc/ms-rfc-16.html#io-hooking although 
> I'm not sure if the approach works or was fully implemented.

> Let us know how you get on,

>  

> Seth

>  

> --

> web:http://geographika.co.uk

> twitter: @geographika

>  

>  

> On Thu, May 27, 2021, at 10:39 AM, Jelmer Baas wrote:

>> Hello,

>>  

>> For a new project, I’ve decided to pickup MapScript again to function as an 
>> internal (back-end) WFS server. I use the OWSRequest class, which works fine 
>> when I fill it with loadParamsFromURL() – in the case of Get requests.

>>  

>> I can’t seem to figure out a way to get my POST data into this object, 
>> though. It has a loadParams method, but because I’m not running as a CGI 
>> application (back-end app without a webserver), this doesn’t do anything. I 
>> also tried setting postrequest property and then calling the loadParams, 
>> setting Environment variables, etc. No error, no exception, just -1 value 
>> from NumParams.

>>  

>> Any suggestions on how to proceed?

>>  

>> Regards,

>> Jelmer Baas

>>

>>  

>> ___

>> mapserver-users mailing list

>> mapserver-users@lists.osgeo.org 

>> https://lists.osgeo.org/mailman/listinfo/mapserver-users

>>  

>  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapscript C# and OWSRequest parameters

2021-05-31 Thread Jelmer Baas via mapserver-users
Hi all,

Well, that route was a short one. Yes, I can call installStdinFromBuffer, but 
actually reading something via bufferRead:

int msIO_bufferRead( void *cbData, void *data, int byteCount )

{
  (void)cbData;
  (void)data;
  (void)byteCount;
  /* not implemented yet. */
  return 0;
}

Unless I’m missing something, this isn’t possible, yet. I find it hard to 
believe no-one uses MapServer to handle WFS Post requests, so I’m pretty sure 
I’m missing something?

Regards,
Jelmer Baas

From: mapserver-users  On Behalf Of 
Seth G
Sent: donderdag 27 mei 2021 20:35
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapscript C# and OWSRequest parameters

Hi Jelmer,

I think you'd have to use mapscript.msIO_installStdinFromBuffer to read data in.
See https://mapserver.org/development/rfc/ms-rfc-16.html#io-hooking although 
I'm not sure if the approach works or was fully implemented.
Let us know how you get on,

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Thu, May 27, 2021, at 10:39 AM, Jelmer Baas wrote:

Hello,



For a new project, I’ve decided to pickup MapScript again to function as an 
internal (back-end) WFS server. I use the OWSRequest class, which works fine 
when I fill it with loadParamsFromURL() – in the case of Get requests.



I can’t seem to figure out a way to get my POST data into this object, though. 
It has a loadParams method, but because I’m not running as a CGI application 
(back-end app without a webserver), this doesn’t do anything. I also tried 
setting postrequest property and then calling the loadParams, setting 
Environment variables, etc. No error, no exception, just -1 value from 
NumParams.



Any suggestions on how to proceed?



Regards,

Jelmer Baas




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WFS Client returns data at random with very same call

2021-05-31 Thread Lars Fricke via mapserver-users
Title: SkenData Email Signat

  
  
Even,
  
  Thank you for your findings. There may be another issue. I also
  had tried to use the secondary EPSG:4326 in my mapfile but that
  didn't succeed either. 
  
  I just tried putting in the EPSG in the .xml file but I still do
  not get expected answers. Debug output is this:
  """
  WFS: GetFeature operation supports hits
  WFS: No transaction support
  GDAL: GDALOpen(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0) succeeds as WFS.
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop,info:dtk25%2Dv,info:dtk50,info:dtk100%2Dv_upd,info:basis%2Ddlm_upd,info:dgm1000,info:dgm200,info:dgm100_upd,info:dgm100,info:dgm50_upd,info:dgm50,info:dgm25_upd,info:dgm25,info:dgm10_upd,info:dgm10,info:dgm5_upd,info:dtk25_upd,info:dtk250,info:dtk100%2Dv,info:basis%2Ddlm,info:dtk1000,info:dtk25,info:dtk50%2Dv,info:dtk100,info:dtk100_upd,info:dtk50%2Dv_upd,info:dtk200,info:dop_upd,info:dtk25%2Dv_upd,info:dtk500,info:dtk50_upd,info:dgm5)
  WFS: Turn off loading of multiple layer definitions at a single
  time
  WFS:
http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop)
  WFS:
http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=info:dop
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=info:dop)
  GML: Using Expat reader
  GDAL: GDALOpen(/vsimem/tempwfs_0x14b43c0/file.gml, this=0x149c640)
  succeeds as GML.
  GDAL: GDALClose(/vsimem/tempwfs_0x14b43c0/file.gml,
  this=0x149c640)
  GDAL: GDALClose(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0)
  WFS: GetFeature operation supports hits
  WFS: No transaction support
  GDAL: GDALOpen(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0) succeeds as WFS.
  GDAL: GDALClose(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0)
  WFS: GetFeature operation supports hits
  WFS: No transaction support
  GDAL: GDALOpen(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0) succeeds as WFS.
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop,info:dtk25%2Dv,info:dtk50,info:dtk100%2Dv_upd,info:basis%2Ddlm_upd,info:dgm1000,info:dgm200,info:dgm100_upd,info:dgm100,info:dgm50_upd,info:dgm50,info:dgm25_upd,info:dgm25,info:dgm10_upd,info:dgm10,info:dgm5_upd,info:dtk25_upd,info:dtk250,info:dtk100%2Dv,info:basis%2Ddlm,info:dtk1000,info:dtk25,info:dtk50%2Dv,info:dtk100,info:dtk100_upd,info:dtk50%2Dv_upd,info:dtk200,info:dop_upd,info:dtk25%2Dv_upd,info:dtk500,info:dtk50_upd,info:dgm5)
  WFS: Turn off loading of multiple layer definitions at a single
  time
  WFS:
http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=EPSG:25832=DescribeFeatureType=info:dop)
  WFS:
http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=info:dop
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=1=EPSG:25832=GetFeature=info:dop)
  GML: Using Expat reader
  GDAL: GDALOpen(/vsimem/tempwfs_0x14c06b0/file.gml, this=0x149c640)
  succeeds as GML.
  GDAL: GDALClose(/vsimem/tempwfs_0x14c06b0/file.gml,
  this=0x149c640)
  WFS:
http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=500=EPSG:25832=GetFeature=info:dop
  HTTP:
Fetch(http://sg.geodatenzentrum.de/wfs_info?SERVICE=WFS=1.1.0=500=EPSG:25832=GetFeature=info:dop)
  GML: Using Expat reader
  GDAL: GDALOpen(/vsimem/tempwfs_0x14c06b0/file.gml, this=0x149c640)
  succeeds as GML.
  GML: ResetReading()
  GML: ResetReading()
  GML: ResetReading()
  GDAL: GDALClose(/vsimem/tempwfs_0x14c06b0/file.gml,
  this=0x149c640)
  GDAL: GDALClose(/var/www/html/wfs-request-dop-bkg-age.xml,
  this=0x13949a0)
   [warn] [pid 27] mod_fcgid: stderr: freeLayer(): freeing layer at
  0x138e110.
  3240054 - 172.17.0.1 - - [31/May/2021:07:25:03 +] "GET
/cgi-bin/mapserv?map=/var/www/html/wfs.map=EPSG:3857=WFS=1.0.0=GetFeature=791880.72463009,6321925.37255709,792929.6378,6322786.10157277=DOP_AGE_DE
  HTTP/1.1" 200 1097 "-" "Mozilla/5.0 (X11; Linux x86_64)
  AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212
  Safari/537.36"
  360 - 172.17.0.1 - - [31/May/2021:07:25:07 +] "GET
  /favicon.ico HTTP/1.1" 200 414
"http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map=EPSG:3857=WFS=1.0.0=GetFeature=791880.72463009,6321925.37255709,792929.6378,6322786.10157277=DOP_AGE_DE"
  "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 

Re: [mapserver-users] Mapscript C# and OWSRequest parameters

2021-05-31 Thread Jelmer Baas via mapserver-users
Hi Seth,

Thanks for the pointer, I’ll give this a try.
(Your mail got caught in a spam filter; apologies)

Regards,
Jelmer Baas

From: mapserver-users  On Behalf Of 
Seth G
Sent: donderdag 27 mei 2021 20:35
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapscript C# and OWSRequest parameters

Hi Jelmer,

I think you'd have to use mapscript.msIO_installStdinFromBuffer to read data in.
See https://mapserver.org/development/rfc/ms-rfc-16.html#io-hooking although 
I'm not sure if the approach works or was fully implemented.
Let us know how you get on,

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Thu, May 27, 2021, at 10:39 AM, Jelmer Baas wrote:

Hello,



For a new project, I’ve decided to pickup MapScript again to function as an 
internal (back-end) WFS server. I use the OWSRequest class, which works fine 
when I fill it with loadParamsFromURL() – in the case of Get requests.



I can’t seem to figure out a way to get my POST data into this object, though. 
It has a loadParams method, but because I’m not running as a CGI application 
(back-end app without a webserver), this doesn’t do anything. I also tried 
setting postrequest property and then calling the loadParams, setting 
Environment variables, etc. No error, no exception, just -1 value from 
NumParams.



Any suggestions on how to proceed?



Regards,

Jelmer Baas




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapscript C# and OWSRequest parameters

2021-05-31 Thread Jelmer Baas via mapserver-users
Hi all,

I had some issues getting subscribed. Did this email arrive? If so, does anyone 
have some insights, even if it's just a pointer to a place to continue my 
search?

Regards,
Jelmer Baas

From: mapserver-users  On Behalf Of 
Jelmer Baas
Sent: donderdag 27 mei 2021 10:39
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapscript C# and OWSRequest parameters

Hello,

For a new project, I've decided to pickup MapScript again to function as an 
internal (back-end) WFS server. I use the OWSRequest class, which works fine 
when I fill it with loadParamsFromURL() - in the case of Get requests.

I can't seem to figure out a way to get my POST data into this object, though. 
It has a loadParams method, but because I'm not running as a CGI application 
(back-end app without a webserver), this doesn't do anything. I also tried 
setting postrequest property and then calling the loadParams, setting 
Environment variables, etc. No error, no exception, just -1 value from 
NumParams.

Any suggestions on how to proceed?

Regards,
Jelmer Baas


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users