Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting.app / trunk / org.gvsig.scripting.app / org.gvsig.scripting.app.extension / src / main / resources-plugin / scripting / lib / gvsig_2_1_0 / vectorial / selection.py @ 451

History | View | Annotate | Download (636 Bytes)

1

    
2

    
3
__docformat__ = "restructuredtext en"
4

    
5
from org.gvsig.fmap.dal.feature.impl import DefaultFeatureSelection as JFeatureSelection
6

    
7
class FeatureSelection(JFeatureSelection):
8
  """
9
  Manage selected features set from a store. 
10
  
11
    
12
  Extends the `java FeatureSelection`_ class.
13
  
14
  .. _`java FeatureSelection` : FIXME_URL
15
  """
16
  @staticmethod
17
  def __iter__(self):
18
    return  self.fastIterator()
19
  
20
  @staticmethod
21
  def __len__(self):
22
    return self.getSize()
23
    
24
#
25
# Inject new methods in the class JFeatureSelection
26
#
27
JFeatureSelection.__iter__ = FeatureSelection.__iter__
28
JFeatureSelection.__len__ = FeatureSelection.__len__