Re: [Geotools-devel] Proposal: ResourceId

2011-10-26 Thread John Hudson
: [Geotools-devel] Proposal: ResourceId I've attached a patch to jira that cleans up the remaining test failures (thanks john). The solution to my problem was to create an explicit ResourceIdImpl constructor that takes no version or dates and create the default version. Then ResourceIdTypeBi

Re: [Geotools-devel] Proposal: ResourceId

2011-10-26 Thread Mark Leslie
I've attached a patch to jira that cleans up the remaining test failures (thanks john). The solution to my problem was to create an explicit ResourceIdImpl constructor that takes no version or dates and create the default version. Then ResourceIdTypeBinding needs to look to version to determine w

Re: [Geotools-devel] Proposal: ResourceId

2011-10-26 Thread Jody Garnett
You got it right. In that case we would use a featureid. Let us relax that constraint so someone can make a Set. -- Jody Garnett On 26/10/2011, at 5:07 PM, Mark Leslie wrote: > In taking the patch for a spin, we've found some test failures in gt-xsd-fes. > > testParseId fails because the xm

Re: [Geotools-devel] Proposal: ResourceId

2011-10-26 Thread Mark Leslie
In taking the patch for a spin, we've found some test failures in gt-xsd-fes. testParseId fails because the xml snippet being parsed contains a fes:ResourceId with no version attribute. As per spec, this is acceptable, but the ResourceIdImpl requires a Version or date range. I have no problem wit

Re: [Geotools-devel] Proposal: ResourceId

2011-10-25 Thread Gabriel Roldan
I like it. I don't expect it to be much of a trouble for GeoGit. What we'll need to review is the usage on the wfs2 versioning branch. As for GeoGit, the main addition is ability to mix attribute/spatial query with dataset history, instead of just one or the other through ResourceId, which is much

Re: [Geotools-devel] Proposal: ResourceId

2011-10-25 Thread Jody Garnett
Thanks for the review Mark. I will check test cases again tomorrow (mostly in the xml bindings) and then I am ready to commit. I would kind of like feedback from Gabriel (I have already done everything he indicated was required; but an extra pair of eyes would be good). -- Jody Garnett On

Re: [Geotools-devel] Proposal: ResourceId

2011-10-24 Thread Mark Leslie
The code examples make things clearer :) I haven't managed to apply the patch to my local and see what the damage would be to GeoGIT, but that's still on my list. I expect nothing scary in that regard, but will let you know when I get that done. -- Mark Leslie Geospatial Software Architect LISA

Re: [Geotools-devel] Proposal: ResourceId

2011-10-23 Thread Jody Garnett
Okay the Proposal is updated ... and more importantly an updated patch is provided against the Jira. http://docs.codehaus.org/display/GEOTOOLS/ResouceId http://jira.codehaus.org/browse/GEOT-3921 This represents a good compromise; and has code examples of a few common queries, diagrams etc...

Re: [Geotools-devel] Proposal: ResourceId

2011-10-19 Thread Gabriel Roldan
Hey check out my proposal for splitting FeatureId and ResourceId on the other thread. TIA, Gabriel On Wed, Oct 19, 2011 at 8:42 AM, Jody Garnett wrote: > Matches is supposed to check that a > feature matches. It is not used to compare identifiers. > > Thanks for the clarification however. > > I

Re: [Geotools-devel] Proposal: ResourceId

2011-10-19 Thread Jody Garnett
Matches is supposed to check that a feature matches. It is not used to compare identifiers. Thanks for the clarification however. I was going to have two implementations in order not to waste memory. Jody On 19/10/2011, at 6:40 PM, Mark Leslie wrote: > I'm slowly coming round to the Fea

Re: [Geotools-devel] Proposal: ResourceId

2011-10-19 Thread Mark Leslie
I'm slowly coming round to the FeatureId option. I don't really like the idea of carrying around the extra version information when 98% of the time it's going to be placeholders, but it will keep client efforts cleaner. I should also clarify my confusion in comparing FeatureId to ResourceId. I b

Re: [Geotools-devel] Proposal: ResourceId

2011-10-18 Thread Jody Garnett
I am going to have a run at making a patch on Monday; if I can manage it I would like to go with FeatureId option. If not I will use your ResourceId option as a fall back position. (I am not crazy I am going to start with your ResourceId patch and then refactor; deprecating the non used Recor

Re: [Geotools-devel] Proposal: ResourceId

2011-10-18 Thread Justin Deoliveira
Thanks for putting the proposal together Jody. Tough to say which option is the way to go.. I actually do like the option of just rolling all the ResourceId stuff into feature id... seems a bit simpler and cleaner, and definitely easy on client code to not have to do the instanceof check. On Tue,