[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Problem adding a SimpleFeature in a FeatureCollection
|
This is a multi-part message in MIME format.
Thank you Jody.
How could I have known that WFS 1.1.1 implementation does not
support transaction? I can't find this information.
Best regards,
Have a nice weekend.
Virginie BERRE -
Ingénieur d'études et de développement
+33 (0)1 30 15 40 58
virginie.berre@xxxxxxxxxxxx
Pensez
environnement ! N'imprimez ce mail que si c'est vraiment nécessaire !
De : udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] De la part de Jody
Garnett
Envoyé : vendredi 19 février 2010 14:35
À : User-friendly Desktop Internet GIS
Objet : Re: [udig-devel] Problem adding a SimpleFeature in a FeatureCollection
Tutorial is correct - you are missing a little bit of
information. WFS 1.1 implementation does not support transactions
(so no adding features).
Connect using WFS 1.0 and you should be good to go.... (ie
add "VERSION=1.0" to your URL
On 19/02/2010, at 8:06 PM, Virginie BERRE wrote:
Ok I've understand your advise.
// 1st try -> ClassCastException : org.geotools.data.wfs.v1_1_0.WFSFeatureSource
cannot be cast to org.geotools.data.FeatureStore
DataStore wfsDataStore = (new WFSDataStoreFactory()).createDataStore(params);
FeatureStore dodStore = (FeatureStore)
wfsDataStore.getFeatureSource(dodTypeName);
Transaction insert = new DefaultTransaction("insert");
dodStore.setTransaction(insert);
FeatureSource<SimpleFeatureType, SimpleFeature> dodStore = wfsDataStore.getFeatureSource(dodTypeName);
And now, the setTransaction method is undefined for the type
FeatureSource.
I think the tutorials are not up to date… Could you point me to
another one or just tell me how to use properly my WFS-T?
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Tue, 02 Mar 2010 00:54:50 -0000
I have hit the release button in order to test against linux (uploading the archives to here). These archives do not include jre+gdal - you will need to drop that in yourself in order to test. I don't have a jre+gdal for linux 64 for example.
I did go ahead and test on linux 32 and everything seems okay (wizard buttons work). This is what we need for the live DVD. Going on with raster tests ...I was unable to load ecw/sid files. Chances are I did not have the correct jre+gdal.
Rather then send out endless emails to day I invite you to check the following page:
- http://udig.refractions.net/confluence/display/HACK/1.2-M10
This page will be updated and you can check how things stand when you read this email. There will be gaps where you can volunteer :-)
Jody
|