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 @ 561

History | View | Annotate | Download (1.06 KB)

1

    
2

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

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

    
12

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