On Mon, Nov 7, 2011 at 7:52 AM, Jody Garnett <[email protected]> wrote:
> I have updated ResourceIdImpl to allow version to use 0l to represent null.
> I assume the use for this is when you have a feature id (but not the rid)
> and wish to request all features.
cool. You're right in that if you're asking for a specific
fid+versionId you could use FeatureId instead of ResourceId. Yet that
makes it perhaps a little bit tricky for the parser as it gets a
fes:resourceId. Still, ResourceId being a superset of FeatureId when
it comes to use it as a filter predicate, it would be bad if
ResourceId can't represent a FeatureId filter.
So yeah, thanks for the change!
Gabriel
> --
> Jody Garnett
>
> On Monday, 7 November 2011 at 5:35 PM, Jody Garnett wrote:
>
> On Monday, 7 November 2011 at 2:57 PM, Mark Leslie wrote:
>
> So at a minimum, ResourceIdImpl needs to accept null Version / date
> range gracefully. This was where I was getting failures last week,
> hence the application of the default value, so I'll need to look back
> and find out what that was breaking.
>
> Please use:
> ff.featureId("CITY.98734597823459687235","A457")
> it makes use of:
> public FeatureId featureId(String fid, String featureVersion){
> return new FeatureIdVersionedImpl(fid, featureVersion);
> }
> Which explicitly represents the Version as null with no wasted space.
>
> I'm also hitting some interesting concerns when both the ResourceId
> and Query versioning bits are specified. So far I'm taking the Query
> versioning details to narrow those on the ResourceId.
>
> ...
> Your examples are nicer for end users than what I had in mind. I figured if
> someone was using ResourceId then they knew what they were asking for.
> I have updated the javadocs to match your description.
>
> Jody
>
--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel