cant get spatial data..

From: "andrew quaresma" <andrew(dot)oq(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: cant get spatial data..
Date: 2007-08-24 09:17:45
Message-ID: 6ef2d2340708240217o19d39f33r4e47e2e9bd8a5fb9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-08-24 09:35:13 Re: "out of memory" error
Previous Message Mikko Partio 2007-08-24 09:07:37 Re: "out of memory" error