Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / gvsig_2_3_0 / layervectorial.py @ 462

History | View | Annotate | Download (948 Bytes)

1

    
2

    
3
from org.gvsig.fmap.mapcontext.layers.vectorial import FLyrVect as JLayerVectorial
4
from table import *
5

    
6
def getProjectionCode(self):
7
  projection = self.getProjection()
8
  if projection == None:
9
    return None
10
  return projection.getFullCode()
11

    
12
def __call(self):
13
  return self    
14

    
15

    
16
#
17
# Inject new methods in the class JLayerVectorial
18
#
19
JLayerVectorial.getProjectionCode = getProjectionCode
20
JLayerVectorial.__call__ = __call
21
JLayerVectorial.__iter__ = __iter_features
22
JLayerVectorial.__len__ = __len_features
23
JLayerVectorial.features = _features
24
JLayerVectorial.getSchema = _getSchema
25
JLayerVectorial.updateSchema = _updateSchema
26
JLayerVectorial.append = _append
27
JLayerVectorial.update = _update
28
JLayerVectorial.edit = _edit
29
JLayerVectorial.commit = _commit
30
JLayerVectorial.abort = _abort
31
JLayerVectorial.getSelection = _getSelection
32
JLayerVectorial.select = _select
33
JLayerVectorial.deselect = _deselect
34
JLayerVectorial.isSelected = _isSelected
35