HI Stefano,

I don't recommend ever using FeatureWriters. I use the FeatureSource/ Store API exclusively. You can call getFeatureSource() and do an instance check to see if it is a FeatureStore. If it is then you know you can write to that DB. If not then there is a configuration issue or the datastore is a read-only datastore. (Postgis should usually provide a FeatureStore).

Jesse

On 4-Oct-06, at 3:36 AM, Stefano wrote:

Hi Jesse,
I try to use BigSerial instead of Big Int but but I've usual problem.
I try to insert a new record (feature without geometry) in this simple
table:

create table Test(
 fid bigserial primary key,
 text varchar(100)
)

but the usual exception will be generated when the next code is execute:

FeatureWriter fw =
featureStore.getDataStore().getFeatureWriterAppend (featureType.getTypeNa
me(),featureStore.getTransaction());

The exception is : "java.lang.UnsupportedOperationException: Schema
creation not supported"

Thanks

Stefano





_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to