Hello,
I Have a postgresql database that uses a pgobject datatype and have not
been able to figure out how to configure the PostGISDataStore so that
custom datatypes are added to the FeatureType schema.
the custom data type is:
CREATE TYPE dbttid
(INPUT=dbttid_in, OUTPUT=dbttid_out, DEFAULT='',
INTERNALLENGTH=8, ALIGNMENT=int4, STORAGE=PLAIN);
I Have added the datatype to the jdbc3Connection:
((org.postgresql.jdbc3.Jdbc3Connection)conn).addDataType("dbttid","DbTt.dbttid");
when I use the following code to review the schema of a particular
datasource the dbttid datatype is not available.
org.geotools.data.DataStore vs;
FeatureType ft = vs.getFeatureSource("grids").getSchema();
AttributeType[] ats = ft.getAttributeTypes();
for(AttributeType a: ats)System.out.println(a.toString());
Is it possible to solve this problem with out creating a custom datastore?
Many thanks to those who have contributed to the geotools project :)
Pat
-------------------------------------------------------------------------
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