[mapserver-users] C# functon resultCacheMemberObj shapeindex ... Posible bug?

Tamas Szekeres szekerest at gmail.com
Mon May 19 17:21:54 EDT 2008


Hi,

Which driver are you using, how the mapfile looks like?


Tamas


2008/5/19 Paul james <pauljame at gmail.com>:
> Hello guys...
> I have a table with a character(11) PK...
> When I trie to get the shapes with queryByRect, all results are with
> shapeindex equal 0 (zero) ...
> If I tried that with a table with a integer PK, everthing works perfect..
> My code:
>
> layerObj _layer = mapObj.getLayerByName(__layer);
> if (_layer.queryByRect(mapObj, _oGeo) == 0)
> {
>    for (int i = 0; i < _layer.getNumResults(); i++)
>    {
>     resultCacheMemberObj _result = _layer.getResult(i);
>      //_result.shapeindex == 0
>     shapeObj _obj = new shapeObj(-1); //dummy
>    _layer.open();
>    _layer.getShape(_obj, -1, _result.shapeindex);
>   }
> }
>
>
>
> Any solutions?
>
> []´s
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list