try {
Object fs = this.resource.resolve(FeatureSource.class, new GeoProgressMonitor(new NullProgressMonitor()));
if ((fs != null) && (fs instanceof FeatureSource))
{
FeatureCollection fc = ((FeatureSource) fs).getFeatures();
FeatureIterator fi = fc.features();
while (fi.hasNext())
{
FeatureGeoResource fgr=null;
Feature f = fi.next();
System.out.println("TOTAL " + f.getNumberOfAttributes( ));
//System.out.println(
f.getAttribute(2));
System.out.println(f.getAttribute("rota"));
System.out.println(f.getAttribute("ponto"));
members.add(fgr);
}
fc.close(fi);
}
} catch (IOException e) {
e.printStackTrace();
}
why does the sysout of the point returns null?... cant get spatial data... what shall i do?... :S