Hi Jesse,
the featureSource is read and write; I can delete and update feature but
I can't create new feature. If I use the method
"featureStore.addFeatures(featureCollection)" the Exception
"java.io.IOException: An error occured while committing."       is
generate if the DataSource is a GeoServer WFS.


------------------------------

Date: Wed, 4 Oct 2006 09:15:39 -0700
From: Jesse Eichar <[EMAIL PROTECTED]>
Subject: Re: [udig-devel] R:Writing Data in GeoServer WFS Data Store
To: User-friendly Desktop Internet GIS
        <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

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

Reply via email to