[Gvsig_english] Ordering a FLyrVect resolved

erwan bocher erwan.bocher at gmail.com
Fri Oct 20 16:11:13 CEST 2006


Hi,

It's ok. Now I use this :

FLyrVect vectorialLayer = (FLyrVect) l;

        DataSource ds = null;
        AlphanumericData table = (AlphanumericData)vectorialLayer;

        ds = table.getRecordset();

        System.out.println(ds.getName().toString());

        String sql ="select * from "+ ds.getName()+ " order by gid asc;";
        ds = ds.getDataSourceFactory().executeSQL(sql,
DataSourceFactory.AUTOMATIC_OPENING);

            for (int i=0;i<ds.getFieldCount();i++) {
                System.out.println(ds.getFieldName(i));
            }

It's just a problem with ds.getName().  I thought that it was the name of my
layer

R1.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20061020/a24986f9/attachment.htm


More information about the Gvsig_internacional mailing list