Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Paolo Rizzi
> Hi, > > I have seen two ways to generate unique IDs for new features. First one is > based on using integer as ID, and inserting new feature begins with query > "select max(ID) from table". New feature gets value max(ID)+1. Another, and > pretty safe way is to configure database table to ta

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Larry Becker
Hi Paolo, Thanks for continuing this very interesting discussion. You make a good point about not knowing the ID when auto-increment is used to generate the new key. The solution to this may be (after db inserts) to reissue the spatial query that loaded the Features from the database in the fi

Re: [JPP-Devel] Good News for Google Summer of Code

2009-04-03 Thread Sunburned Surveyor
Stefan, I can surely assist you with turning in the reports this summer. We'll work it out. SS On Thu, Apr 2, 2009 at 1:58 PM, Stefan Steiniger wrote: > So.. I requested now to be a mentor for OSGeo using the google SofC > pages. I guess somebody at OSGeo will handle that? > > ... lets see what

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Paolo Rizzi
> Hi Paolo, > > Thanks for continuing this very interesting discussion. You make a > good point about not knowing the ID when auto-increment is used to > generate the new key. The solution to this may be (after db inserts) to > reissue the spatial query that loaded the Features from the dat

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Larry Becker
> ...but if you inserted more than one new Faeture, how do you know which > is which??? You should have "another" key of some form, to match them. Ah, but why do you care which is which? It is only necessary to reload the Features. Larry > > > > > I haven't had any problem using auto-increment

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Rahkonen Jukka
Hi, We play with WFS-T at work, where the mechanism of what really happens finally is hidden behind datastore drivers of WFS server like Geoserver or others. Anyhow, the problem is still the same than with direct connections to database. For example this document is handling rather similar si

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Paolo Rizzi
> > ...but if you inserted more than one new Faeture, how do you know which > is which??? You should have "another" key of some form, to match them. > > > Ah, but why do you care which is which? It is only necessary to reload > the Features. Yes, true, you are right!!! It should work,

Re: [JPP-Devel] Modifying BasicFeature to track modifications

2009-04-03 Thread Paolo Rizzi
> Hi, > > We play with WFS-T at work, where the mechanism of what really happens > finally is hidden behind datastore drivers of WFS server like Geoserver or > others. Anyhow, the problem is still the same than with direct connections > to database. For example this document is handling rathe