[Geoserver-devel] GetFeature maker !

> BUT !!!! I still have a problem with the "PropertyIsBetween" Filter :frowning:
> This filter doesn't work :
> <Filter>
> <PropertyIsBetween>
> <PropertyName>gid</PropertyName>
> <LowerBoundary>10</LowerBoundary>
> <UpperBoundary>20</UpperBoundary>
> </PropertyIsBetween>
> </Filter>
>
> The exception happens with "current state is LowerBoundary"
> I think I'm following the spec; I don't know where's the problem !
> (Note that PropertyIsGreaterThan , or PropertyIsEqualTo , etc... are working
> well)
> Any ideas ???

So I don't have time right now to really figure out the spec, if it's
wrong and where, so if anyone wants to delve into that let me know and we
can update GeoServer. But to get your query working, code it like this:

<Filter>
   <PropertyIsBetween>
     <PropertyName>gid</PropertyName>
     <LowerBoundary><Literal>10</Literal></LowerBoundary>
     <UpperBoundary><Literal>20</Literal></UpperBoundary>
   </PropertyIsBetween>
</Filter>

That's how the geotools filter reader was coded to work. Looking through
the filter spec I'm not sure I really understand it, but it looks like
Lower and Upper Boundary types should have an expression element. But
yes, example 9 does not have the Literal element, though example 10 does,
but it seems wrong because it is named Between instead of
PropertyIsBetween. So, I'm not sure what is the correct way, but the
geoserver way is to use expressions within the Lower and Upper boundaries,
so if you do it that way then things should work.

Oh ok, I only took a look at example 9; you're right, there must be a mistake somewhere... But I don't know the right way so I will do like int geotools and use a <Literal>. Thanks

> When this problem is solved, the applet is finished.
> If you're interested in the code, just ask me !
I'd be interested in checking out the code. And if you have the applet
publically available somewhere I'd love to check it out in action.

I'm sorry but for the moment, my web application is locked inside a Intranet, so you can't have access to it. I think you're really busy and you won't have time to set it up if I send you the code, so if you can wait a little, I think I will open my application to other users before october. I just have to take my deployment package at home and install the server (but I won't have postgis, so you'll just be able to print requests, not to execute them, so cascading requests won't work... It will be a kind of demo version)

Steph

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr