[mapserver-users] Mapscipt error querying wfs layer
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] Label background style
Am 01.07.2014 10:15, schrieb Dejan Gambin: > Hi, > > Is it possible to place a label text, for polygon feature, inside a > circle, like on the picture attached (K1)? I know I can use > GEOMTRANSFORM labelpoly and get a background rectangle, but I need a > circle instead. Hi, I think you could use LABELTRANSFORM labelpnt and place a circle-symbol. > label >text "K1" >color 0 0 0 >type truetype >size 15 >position cc >font "default" >style > geomtransform "labelpnt" > symbol "circle" > size 18 > color 254 254 254 >end > end Jörg > Thanks > > regards, dejan > > > > ___ mapserver-users > mailing list mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Label background style
Since I have position cc, it works thanks :-) On 1. srp. 2014., at 10:24, Jörg Thomsen wrote: > Hi, > > I think you could use LABELTRANSFORM labelpnt and place a circle-symbol. > >> label >> text "K1" >> color 0 0 0 >> type truetype >> size 15 >> position cc >> font "default" >> style >> geomtransform "labelpnt" >> symbol "circle" >> size 18 >> color 254 254 254 >> end >> end > > Jörg > > > Am 01.07.2014 10:15, schrieb Dejan Gambin: >> Hi, >> >> Is it possible to place a label text, for polygon feature, inside a circle, >> like on the picture attached (K1)? I know I can use GEOMTRANSFORM labelpoly >> and get a background rectangle, but I need a circle instead. >> >> Thanks >> >> regards, dejan >> >> >> >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Label background style
Hi, Is it possible to place a label text, for polygon feature, inside a circle, like on the picture attached (K1)? I know I can use GEOMTRANSFORM labelpoly and get a background rectangle, but I need a circle instead. Thanks regards, dejan ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users