cant get spatial data..
От | andrew quaresma |
---|---|
Тема | cant get spatial data.. |
Дата | |
Msg-id | 6ef2d2340708240217o19d39f33r4e47e2e9bd8a5fb9@mail.gmail.com обсуждение исходный текст |
Список | pgsql-general |
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
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
В списке pgsql-general по дате отправления: