Amy,

The WFS GetFeature implementation is slightly different for the
<WebServiceRequest> tool and the WFS-T example (which we should
harmonize).  The stylesheet that generates the actual request for the
WebServiceRequest tool is in lib/tool/xsl/wfs_GetFeature.xsl.  The
WebServiceRequest tool will can also add a filter to the request (but is
probably still buggy). 

In the Model-View-Controller design pattern, the result of your
GetFeature request is a Model object which contains just the raw
information - the targetModel property of the WebServiceRequest tool.
You can represent that information in any way you like using one or more
widgets, e.g. rendered as a map in 2D using MapPaneOL, or as a text list
of features in an HTML table, etc.  Simply add in the desired widgets to
the model.

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Amy Johnson
> Sent: Friday, June 15, 2007 11:15
> To: Luca Giandoso
> Cc: [email protected]
> Subject: Re: [Mapbuilder-users] wfsgetfeature question
> 
> To begin wtih, when looking at the tutorial "Using the 
> WebServiceRequest tool", I found the following code:
> 
> <WebServiceRequest id="wfsGetFeature">
>    <targetModel>getFeatureTemplate</targetModel>
>    <requestName>wfs:GetFeature</requestName>
>    <maxFeatures>20</maxFeatures>
> </WebServiceRequest>
> 
> This refers to wfs:GetFeature which I can't find anywhere in 
> the sample code wfs-t. What are the attributes I need in 
> GetFeature? How do I customize output? I assume I retrieve 
> the entire dataset, but where does it get formatted? I can't 
> easily tell in the example or tutorials.
> 
> 
> Luca Giandoso wrote:
> > If you want to get some information about a feature, 
> wfsGetFeature is 
> > the right tool.
> > What you don't understand about this tool?
> >
> > Luca Giandoso
> >
> > On 6/15/07, Amy Johnson <[EMAIL PROTECTED]> wrote:
> >> I am confused on how wfsgetfeature works. I've been looking at the 
> >> sample wfs-t and the following section of code in config.xml:
> >>
> >> <WfsGetFeature id="wfsGetFeature">
> >>       <buttonBar>mainButtonBar</buttonBar>
> >>       <targetModel>mainMap</targetModel>
> >>       <mouseHandler>mainMouseClick</mouseHandler>
> >>       <class>RadioButton</class>
> >>       <disabledSrc>/images/QueryDisable.png</disabledSrc>
> >>       <enabledSrc>/images/QueryEnable.png</enabledSrc>
> >>       <typeName>topp:tasmania_cities,topp:tasmania_roads</typeName>
> >>       <tolerance>5</tolerance>
> >>       
> >> 
> <transactionResponseModel>featureCollection</transactionResponseModel>
> >>       <webServiceUrl>../../../geoserver/wfs</webServiceUrl>
> >>     </WfsGetFeature>
> >>
> >>
> >> I've also been looking at the following page:
> >> http://docs.codehaus.org/display/MAP/Step+3+Set+Up+Queries
> >>
> >> which I think has to do with the same thing. My goal is to 
> click on a 
> >> feature, retrieve data, then format the display of the data. Am I 
> >> looking at the right examples?
> >>
> >> Regards,
> >>
> >> Amy
> >>
> >> 
> ---------------------------------------------------------------------
> >> ----
> >>
> >> This SF.net email is sponsored by DB2 Express Download DB2 
> Express C 
> >> - the FREE version of DB2 express and take control of your XML. No 
> >> limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> Mapbuilder-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> >>
> >
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express Download DB2 
> Express C - the FREE version of DB2 express and take control 
> of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to