Matt,

Thanks a lot for your feedback. That's really nice to hear such good comments.

Do you happen to have anything live or portion of code I could use (or take a look at) to create the "use WMSGetFeatureInfo as a way to populate WFS fid filter" thing ? I'm confident on what I should do, but I guess I'm going to hit some issues you could have already solved. Having an overview on how you did it could be nice.

Thanks again,

Alexandre


On 11-03-07 02:34 PM, Matt Priour wrote:
I've used the WMSGetFeatureInfo control to populate WFS fid filter( s) several times and it works quite well to have that bridge. I think this would be an extremely valuable UX widget to have. Thanks for your work that continues to push the GeoExt platform further.
Matt Priour

*From:* Alexandre Dube <mailto:[email protected]>
*Sent:* Monday, March 07, 2011 9:36 AM
*To:* GeoEXT Dev <mailto:[email protected]>
*Subject:* [Dev] Editing UX widget using FeatureEditorGrid ux

Hi devs,

   I'd like to propose a new UX editing widget that would use the
existing FeatureEditorGrid ux widget and WFS requests to automatically
create vector layers and the required tools to do complete editing
actions.  Basically, it would be configured with a list of WFS server
urls and automatically create Vector layers using WFSGetCapabilities and
WFSDescribeFeatureType requests.

   The widget would take the form of 2 buttons that, on click, list the
layers (layer names) in a menu.  One is for "Draw", the other for "Edit".
   * Draw : when a layer is selected in the menu, simply activate the
DrawFeature control and displays the Vector layer.  When drawing is
complete, activates the "Edit" tool...
   * Edit : when a layer is selected in that menu, activate a
SelectFeature control and automatically displays the Vector layer.  When
a feature is selected (by click), a FeatureEditorGrid widget is created
using a DescribeFeatureType request and its ModifyFeature control is
activated as well, thus allowing attribute and geometry editing.  It is
shown in a Ext.Window (or Ext.Popup).


==  Next "add-on" to add to this widget ==

   A "WMS" feature selector.  It is a common issue to have to display
too much vector features on the map at once in order to interact with
them.  This add-on would basically try to fix that by replacing the
SelectFeature control as the way to select features by a WMS
GetFeatureInfo control.  The vector layer would be created with Filter
that always returns blank (nothing).  Using the WMS query tool, a click
on a WMS feature would return one or more ids of features, then one
could be selected and added to the Filter in order to draw it.  Upon
draw completed, select the feature shown that would activate the
FeatureEditorGrid widget.

   This would require to have WMS layers in the application to talk to
the WFS layers...  Comments are welcomed.


== Other details ==

   * layers created will have "displayInLayerSwitcher": false
   * their visibility would be automatically managed by the editing tools
   * FeatureEditorGrid would appear in a Ext.Window or GeoExt.Popup.
I'd like the popup to be automatically displayed in the opposite
direction of the feature centroid.  If the feature is more in the upper
left portion of the map, display the popup in bottom right.  We could
make these upgrades in GeoExt.Popup.
   * The FeatureEditorGrid would be translated in French, using the
Ext.apply method to override the text properties.
   * The DrawFeature control handler would be automatically set to the
according 'geometryType' of the layer using "DescribeFeatureType"
request. (now supported in TinyOWS)
   * If a WMS layer with the same name exists in the application, it
would be automatically refreshed upon commits.
   * GeoExt.data.WFSCapabilitiesReader : would need to have the change
to allow layer protocol definition (rather than hardcoding them)...


== A name ==

   I'm terrible at this task... and it's always a pain to change it
afterward.  How about GeoExt.ux.WFSFeatureEditingWizard ?  I dunno...
;)  I guess this is the task I required the much more help.


== Comments ? ==

If anyone has any comments, suggestions, questions, don't hesitate.  One
thing certain, I'll begin to work on such a tool in the following weeks,
but I'd like to know if it would be nice to have it in more than a
sandbox.  About that, I'll be working next week on my WMSBrowser and
LayerTreeBuilder widgets in the OSGeo code-sprint in Montreal and try to
do what's required to make them official GeoExt.ux.

Best regards,

--
Alexandre Dubé
Mapgears
www.mapgears.com <http://www.mapgears.com>

_______________________________________________
Dev mailing list
[email protected] <mailto:[email protected]>
http://www.geoext.org/cgi-bin/mailman/listinfo/dev


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to