[mapserver-users] select one column values from a table

Paolo Corti pcorti at gmail.com
Tue May 19 06:49:25 PDT 2009



meenu wrote:
> 
> hi friend...i am not using postrgis method for this...so am prefering the
> first option...
> in a while loop how can i check till the end of records( not fields)...
> ur mentioned code is taking layer.numitems - 1 ...it is checking all the
> field count...instead of that how i  cancheck record nos??
> 

this should make the trick (couldn't test now):

for(int i=0; i<layer.getNumFeatures; i++)
{
    shapeObj shape = layer.getFeature(i, -1);
    for (int i = 0; j < layer.numitems; i++)
    {
        Console.WriteLine("Field " + layer.getItem(j) + ", Value=" +
shape.getValue(i));
    }
}



-- 
View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2939629.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list