[mapserver-users] Problem with wfs.php

Yves Jacolin yves.jacolin at camptocamp.com
Thu Nov 4 04:43:05 EDT 2010


Richard,

Are you sure you are using php5-curl correctly?

See http://www.php.net/manual/fr/function.curl-setopt.php

what is the parameter name for the $layer variable?
>curl_setopt($curl_init[$i], CURLOPT_POSTFIELDS, $layer);

which is shown in the documentation of php5-curl:

>$data = array('name' => 'Foo', 'file' => '@/home/user/test.png');
>curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

something like this seems better to me:

>$data = array('filter'=>$layer);
>curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

regards,

Y.
Le jeudi 04 novembre 2010 09:33:32, Richard LEHAUT a écrit :
> Hi,
> I've a new problem.
> The script is correct for a simple geometry. The file is a script with a
> geometry complex.
> 
> I got a result when I query my mapserver. But, with this server, i got a
> error :"msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER
> in GetFeature : <Filter> <Intersect> <PropertyName>Geometry</
> PropertyName> <MultiPolygon> <polygonMember> <Polygon> <outerBoundaryIs>
> <LinearRing> <coordinates decimal="." cs="," ts=" ">".
> 
> Can you test my script? do you get the same error?
> 
> Thank's for you help
> 
> Richard LEHAUT / Tiolebucheron

-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : +41 21 619 1031
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com


More information about the mapserver-users mailing list