[mapserver-users] Mapscipt error querying wfs layer

2014-07-01 Thread Olivier Bedel

Hi all,

We are using mapserver as a WFS client and we are facing a problem using 
PHP-Mapscript to fetch the results of a queryByShape on the WFS layer.
The count of the results is correct but we cannot get the content of any 
particular results.


Here is what our code looks like :

$oMap = ms_newMapObj($mapfile);
$shpObj = ms_shapeObjFromWkt($shapeStr);
$layer = $oMap-getLayerByName($layerName);
$res = (@$layer-queryByShape($shpObj)==MS_SUCCESS );
if ($res) {
  $count = $layer-getNumResults();
   for ($i=0;$i$count;$i++) {
  $resObj = @$layer-getResult($i);
  $feat = @$layer-getFeature($resObj-shapeindex, $resObj-tileindex);
  // some computation...
}
}

the $feat object is equals to false and a var_dump of the $resObj 
gives the following :

stdClass Object
(
[shapeindex] = 0
[tileindex] = 0
[classindex] = 0
)

We are using MapServer version 5.6.7.

Has anyone already faced this problem ? Are we doing things wrong or 
could it be a mapscript bug ?

Thanks in advance for any help or advice.

Olivier.

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


Re: [mapserver-users] opacity

2010-11-16 Thread Olivier Bedel

Hi Clément,

To change layers opacity in cgi call, something like that should work :
http://yourServer/cgi-bin/mapserv?map=yourMapfilemap.layer[yourLayerName1]=OPACITY%20yourOpacityValue1map.layer[yourLayerName2]=OPACITY%20yourOpacityValue2

I don't know if it is possible at the map level...

Regards,
Olivier.

Le 16/11/2010 18:54, Clément MONIER a écrit :


Hi,

Is it possible to set layer's opacity dynamically ? with runtime 
substitution ?


is there a way to set opacity for all layers of a mapfile ?

Thank you for your help

Clem


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



--
Olivier BEDEL

ALKANTE SAS
Ingénieur RD SIG
1, rue du Chêne Morand
35 510 Cesson-Sévigné
Bur: + 33 (0) 2 99 22 25 70
fax : + 33 (0) 2 99 32 12 76

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


Re: [mapserver-users] Problem with wfs.php

2010-11-08 Thread Olivier Bedel

Richard,

I get the same error with your request. Your geometry filter is quite 
complex. Have you tried using polygons with no holes ? Another thing to 
try is to split your multipolygon filter into multiple single polygon 
filters.

It could look like :
ogc:Filter
ogc:Or
ogc:Intersect
  polygon1
/ogc:Intersect
ogc:Intersect
  polygon2
/ogc:Intersect
ogc:Intersect
  polygon3
/ogc:Intersect
.
/ogc:Or
/ogc:Filter

Regards,

Olivier.

Le 04/11/2010 09:33, 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 PropertyNameGeometry/
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


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



--
Olivier BEDEL

ALKANTE SAS
Ingénieur RD SIG
1, rue du Chêne Morand
35 510 Cesson-Sévigné
Bur: + 33 (0) 2 99 22 25 70
fax : + 33 (0) 2 99 32 12 76

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