[Geoserver-devel] GetFeature maker !

Yes, it's difficult to explain what the applet does without screenshot, but I will try :

First, the applet needs to know the data types of each field of each feature type in geoserver.
I didn't want to get into geoserver code to get it, so I made a program which generate a file with the following format :
FeatureTypeName/FieldName/FieldType
With one line for each field.
You just have to send the URL of the file to the applet. That's the only tricky part of the setup.

Once the applet is launched, you can make two types of simple requests :
1) Non spatial requests : for instance, if the selected field of the selected feature is an integer, you can give boundaries (lower and/or upper boundaries), then the programs generates the corresponding xml request : example :
[...]
<Filter>
   <PropertyIsGreaterThan>
     <PropertyName>gid</PropertyName>
     <Literal>10</Literal>
   </PropertyIsGreaterThan>
</Filter>
[...]

2) Spatial requests : For instance, if the example request above is named "request1", you can take the result of this request, and re-use it with spatial operators (Equals, disjoint, touches, within, overlaps, crosses, intersects, contains). You'll get something like :

[...]
<Filter>
   <Within>
     <PropertyName>the_geom</PropertyName>
     ******
   </Within>
</Filter>
[...]
Where ****** is replaced by the geometry collection generated by "request1"

You can add simple operators on these requests (AND, OR, NOT) in order to make more complex requests... And then make other requests using previous (or part of previous) ones.
When you have finished, you just have to ask the program to launch your request ! (or one of the many requests you could have build)

But I must warn you : this applet was made to fit the requirements of my own GIS application, so you'll probably need to change some things to make it work for you. And of course, you can also improve it !

I hope you understand better what my applet does.
If you want a screenshot (with french labels I'm sorry, I'll send you one)
Or if you want the source code, I can send it to you.

Steph

From: "Bladimir Moreno" <bladiyo@anonymised.com>
Reply-To: bladiyo@anonymised.com
To: chewbizz@anonymised.com
Subject: Re: [Geoserver-devel] GetFeature maker !
Date: Tue, 15 Jul 2003 08:17:12 -0400

I need your applet but i don't understatnd that all the functions of that
application.

  How to make the GetFeature request?
How to is the User Interface?

William Moreno
----------- Mensaje Original --------------

De: W. Steph [chewbizz@anonymised.com]
Para: geoserver-devel@lists.sourceforge.net
[geoserver-devel@lists.sourceforge.net]
Cc:
Asunto: [Geoserver-devel] GetFeature maker !
Fecha: 15/07/2003 05:27:26
Mensaje:

        Hello !!

I just finished my "GetFeature Request Maker" :o)
It's a java applet (need JRE 1.4) which provides a interface to easily make
WFS compliant requests.
For the moment, it's in French (I will translate everything in a few days,
with the doc), and it could have more features given by the spec (but I
don't have time to improve it).
This applet can take results for a getFeature request and rebuild a
geometry
collection from these features' geometries, in order to re-use the geometry
collection in another request. (Then you can make some sort of cascading
requests)

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 ???

When this problem is solved, the applet is finished.
If you're interested in the code, just ask me !

Steph

_________________________________________________________________
Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Bladimir Moreno

_________________________________________________________________
Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! http://g.msn.fr/FR1000/9493