Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] how to access to "FeatureTableControl" of "TableView"

Very useful for me too.  Thanks Jody.

On 22/10/2010, at 10:22 AM, Jody Garnett wrote:

> Here is an example for getting the selected features:
> 
> http://svn.refractions.net/udig/udig/trunk/tutorials/net.refractions.udig.tutorials.examples/src/net/refractions/udig/tutorials/examples/GetSelectedFeaturesFromLayer.java
> 
> The example uses featureSource.getFeatures(query); however you can use
> featureSource.getFeatures() to retrieve everything.
> 
> Jody
> 
> On Thu, Oct 21, 2010 at 2:12 AM, Alberto Debiasi
> <debiasi.alberto@xxxxxxxxx> wrote:
>> yes, it wil be very useful for me.
>> 
>> Thanks!!
>> 
>> 2010/10/20 Jody Garnett <jody.garnett@xxxxxxxxx>
>>> 
>>> The features in the table view are those available for the current layer.
>>> 
>>> The table view watches the workbench; and when a layer is selected it does
>>> its best to show the contents of that layer.
>>> The reason getSelection() is available is that the table view is a control
>>> for the user to change what is selected for the layer.
>>> 
>>> Do you need a hand getting the features from a layer?
>>> 
>>> Jody
>>> 
>>> On 20/10/2010, at 7:49 PM, alcesgabbo wrote:
>>> 
>>>> 
>>>> hello everybody,
>>>> 
>>>> i'm a beginner of UDIG and I've this problem:
>>>> 
>>>> I'm developing a plugin for udig. This plugin should access to the
>>>> features
>>>> inside the table "TableView". (for example a function takes in input a
>>>> list
>>>> of features and  it plots a chart as output)
>>>> 
>>>> I would like to know how can i get the list of the feature contained in
>>>> the
>>>> ViewPart: "net.refractions.udig.tool.select.TableView";
>>>> 
>>>> inside this class there is "FeatureTableControl table;" containing
>>>> "FeatureCollection features;", but i can't access to this class.
>>>> 
>>>> the only useful method to access to the features is getSelection(), but
>>>> it
>>>> returns only the selected feature .
>>>> 
>>>> Thanks
>>>> 
>>>> --
>>>> View this message in context:
>>>> http://udig-devel.19327.n5.nabble.com/how-to-access-to-FeatureTableControl-of-TableView-tp3228257p3228257.html
>>>> Sent from the udig-devel mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> User-friendly Desktop Internet GIS (uDig)
>>>> http://udig.refractions.net
>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>> 
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> 
>> 
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> 
>> 
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top