Thanks Mike. That helps a lot. Are there any tutorials that talk about this sort of thing? Can you tell me the purpose of the template.xml files that are in the wfs-t directory? They have the contents of the WFSGetFeature output, but I tried changing them and it didn't seem to affect the output.
----- Original Message ----- From: "Adair, Mike" <[EMAIL PROTECTED]> Date: Tuesday, June 19, 2007 7:00 am Subject: RE: [Mapbuilder-users] wfsgetfeature question To: Amy Johnson <[EMAIL PROTECTED]>, Luca Giandoso <[EMAIL PROTECTED]> Cc: [email protected] > 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 > morewidgets, 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
