|
From: Andrea A. <aa...@op...> - 2007-08-31 16:55:01
|
gershwinou ha scritto: > Hi all, i was on geoserver list but i think this is more a geotools > question: > > I am using postgis-versioning datastore, and this ok for now. > Issue: > - I parse myself some incoming featured (from kml format) and thanks to > the last build of geoserver, the kml contains the fid, so I know which > features are to be updated. > - I try to create features against the postgis schema. The problem is > that i can't set the fid (the method is protected). Is that a design > choice (from what i have read in the archive: yes)? When you create a feature you can set the FID, you do this when calling FeatureType.create(attributes, fid) to create the feature. Anyways, if you want to update a feature, you don't have to create a new one, but issue an update on the feature store. The fid will be disregarded when you're inserting a feature, a new one will be used. Hope this helps. Cheers Andrea |