[Gvsig_desarrolladores] Geotools and gvsig

erwan bocher erwan.bocher en gmail.com
Vie Sep 22 13:31:14 CEST 2006


Hola,

I'd like to use geotools model in gvsig to adapt all JUMP developments made
by RESO laboratory and SIGLE team. I try this :

FLayer layerSelected = activeLayers[0];

            FLyrGT2 vectorialLayer = (FLyrGT2) layerSelected;

            DataStore store = vectorialLayer.getDataStore();

            try {
                FeatureSource features = store.getFeatureSource(
layerSelected.getName());

                FeatureCollection collection=features.getFeatures();

                JOptionPane.showMessageDialog(null,"Nombre "+
collection.getCount(),"GeoTools featureCollection" ,
JOptionPane.INFORMATION_MESSAGE);



            } catch (IOException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }

But gvsig return me an error.

Any's idea.

Best regards

R1.
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://runas.cap.gva.es/pipermail/gvsig_desarrolladores/attachments/20060922/44873d23/attachment.htm


Más información sobre la lista de distribución gvSIG_desarrolladores