Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Impossible to modify geometries when a filter is applied on the layer

That is correct; since when a Filter is applied onto a Layer you end up creating a view of the original data (the mechanism can also use a Query to restrict what attributes are displayed - it really is a subset of an origional dataset).
In programming terms this means that only a FeatureSource is available.

A couple of ideas:
- If you want you can look into how this is done; and see if you can implement your own FeatureStore wrapper to apply "just" a Filter (rather than a Filter or Query as is currently done). - You could choose to modify your style so that only certain features are painted (they would all still be there to be selected and or edited) - A common GIS trick is to make one layer that displays a subset of the information; and another layer that is not visible (but is selectedable and editable). You could edit the data the one layer; and see the result on the first layer

The last one is of course cheapest to implement.

Jody

Jacques LESCOT wrote:
Hi uDiggers,

I have a strange behavior when a Filter is applied onto a Layer : I can not modify datas, edit tools are deactivated and the Table view is in read-only mode. However, if I did not add apply any filter to the layer, editing capabilities are enabled. Is this a limitation ? Should I better filter datas on server side ?

For your information, I am working on the trunk version of uDig and creating layers and associated filter programmatically. Datas are retrieved from an Oracle database.

Here is the snippet of code I am using to add a filter to the layer :
my_layer.getStyleBlackboard().put(ProjectBlackboardConstants.LAYER__DATA_QUERY, my_filter);

Regards,
Jacques

--
Anyware Technologies <http://www.anyware-tech.com> 	
*Jacques LESCOT*
Project Manager
Eclipse Technical Expert
jacques.lescot@xxxxxxxxxxxxxxxx <mailto:jacques.lescot@xxxxxxxxxxxxxxxx>
Standard : +33(0)5 61 00 52 90
Direct : +33(0)5 61 00 06 60
Mobile : +33(0)6 74 49 23 34
Fax : +33(0)5 61 00 51 46 	*Anyware Technologies
* Lake Park
ZAC de l'Hers - Allée du Lac
BP 87216
31672 Labège Cedex
France
www.anyware-tech.com <http://www.anyware-tech.com>

This message and any attachments (the "Message") are confidential and intended solely for the addressees. Any unauthorized modification, edition, use or dissemination is prohibited. Neither Anyware Technologies nor its headquarters Wavecom shall be liable for the Message if altered, changed, falsified or edited, diffused without authorization.
------------------------------------------------------------------------

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top