Title: Assinatura
Good morning group
 

I'm developing an application in JAVA with IDE Netbeans 5.0, geotools 2.0RC1
and  TOMCAT 5.5.9 as the application server.
 
In the link: 
http://geotools.codehaus.org/How+to+use+a+PostGISDataStore
 
Has an example of called class directly SpearfishSample.java
that opens my layers of the database. 
 
I already carried inside the file spearfish_data_pg.sql
of my bank POSTGRESQL8.1     
 
But, when I execute the class SpearfishSample.java him the following
mistake returns in that getFeatureSource:  
 
--> // Prepare feature sources   
--> //... roads 
--> FeatureSource fsRoads = pgDatastore.getFeatureSource ("roads"); 
 
------------------------------------------------------------------------------------------------------------------- 
 
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
compile-single:
run-main:
Exception in thread "main" org.geotools.data.DataSourceException: SQL Error building FeatureType for roads This method is not yet implemented.
        at org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.getPkColumnInfo(DefaultFIDMapperFactory.java:295)
        at org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.getMapper(DefaultFIDMapperFactory.java:94)
        at org.geotools.data.jdbc.JDBCDataStore.buildFIDMapper(JDBCDataStore.java:1150)
        at org.geotools.data.jdbc.FeatureTypeHandler.getFIDMapper(FeatureTypeHandler.java:233)
        at org.geotools.data.postgis.PostgisDataStore.getFeatureSource(PostgisDataStore.java:1179)
        at src.SpearfishPostGIS.main(SpearfishPostGIS.java:63)
Caused by: This method is not yet implemented.
        at org.postgresql.Driver.notImplemented(Driver.java:388)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.setFetchSize(AbstractJdbc2Statement.java:156)
        at org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.isAutoIncrement(DefaultFIDMapperFactory.java:343)
        at org.geotools.data.postgis.fidmapper.PostgisFIDMapperFactory.isAutoIncrement(PostgisFIDMapperFactory.java:56)
        at org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.getPkColumnInfo(DefaultFIDMapperFactory.java:277)
        ... 5 more
Java Result: 1
BUILD SUCCESSFUL (total time: 8 seconds)
 
------------------------------------------------------------------------------------------------------------------- 
 
I'm beginner in Geotools :( 
Anybody know if exist more some procedure lacking?? or component??
My PM email is:
[EMAIL PROTECTED]
if somebody has some example, will be well coming
 
thank you :)
 

 

Atenciosamente,

 

Jairo de Almeida

Analista Programador

GEMPI – Gestão Empresarial e Informática Ltda.

 

Rua Luís Coelho, 223 - 4º andar

01309-901 – São Paulo – SP – Brasil

Fone: 55 11 2159-4400 - Ramal: 4410

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to