Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 554792
Collapse All | Expand All

(-)swig/include/perl/ogr_perl.i (-4 / +4 lines)
Lines 109-119 Link Here
109
109
110
}
110
}
111
111
112
# wrapped data source methods:
112
/* wrapped data source methods: */
113
%rename (_GetDriver) GetDriver;
113
%rename (_GetDriver) GetDriver;
114
%rename (_TestCapability) TestCapability;
114
%rename (_TestCapability) TestCapability;
115
115
116
# wrapped layer methods:
116
/* wrapped layer methods: */
117
%rename (_ReleaseResultSet) ReleaseResultSet;
117
%rename (_ReleaseResultSet) ReleaseResultSet;
118
%rename (_CreateLayer) CreateLayer;
118
%rename (_CreateLayer) CreateLayer;
119
%rename (_DeleteLayer) DeleteLayer;
119
%rename (_DeleteLayer) DeleteLayer;
Lines 121-131 Link Here
121
%rename (_DeleteField) DeleteField;
121
%rename (_DeleteField) DeleteField;
122
%rename (_Validate) Validate;
122
%rename (_Validate) Validate;
123
123
124
# wrapped feature methods:
124
/* wrapped feature methods: */
125
%rename (_AlterFieldDefn) AlterFieldDefn;
125
%rename (_AlterFieldDefn) AlterFieldDefn;
126
%rename (_SetGeometry) SetGeometry;
126
%rename (_SetGeometry) SetGeometry;
127
127
128
# wrapped geometry methods:
128
/* wrapped geometry methods: */
129
%rename (_ExportToWkb) ExportToWkb;
129
%rename (_ExportToWkb) ExportToWkb;
130
130
131
%perlcode %{
131
%perlcode %{
(-)branches/2.0/gdal/swig/include/python/ogr_python.i (-5 / +5 lines)
Lines 72-78 Link Here
72
    def __getitem__(self, value):
72
    def __getitem__(self, value):
73
        """Support dictionary, list, and slice -like access to the datasource.
73
        """Support dictionary, list, and slice -like access to the datasource.
74
ds[0] would return the first layer on the datasource.
74
        ds[0] would return the first layer on the datasource.
75
ds['aname'] would return the layer named "aname".
75
        ds['aname'] would return the layer named "aname".
76
ds[0:4] would return a list of the first four layers."""
76
        ds[0:4] would return a list of the first four layers."""
77
        if isinstance(value, slice):
77
        if isinstance(value, slice):
78
            output = []
78
            output = []
Lines 143-148 Link Here
143
    def __getitem__(self, value):
143
    def __getitem__(self, value):
144
        """Support list and slice -like access to the layer.
144
        """Support list and slice -like access to the layer.
145
layer[0] would return the first feature on the layer.
145
        layer[0] would return the first feature on the layer.
146
layer[0:4] would return a list of the first four features."""
146
        layer[0:4] would return a list of the first four features."""
147
        if isinstance(value, slice):
147
        if isinstance(value, slice):
148
            import sys
148
            import sys
(-)branches/2.0/gdal/swig/python/osgeo/ogr.py (-5 / +5 lines)
Lines 1000-1006 Link Here
1000
    def __getitem__(self, value):
1000
    def __getitem__(self, value):
1001
        """Support dictionary, list, and slice -like access to the datasource.
1001
        """Support dictionary, list, and slice -like access to the datasource.
1002
    ] would return the first layer on the datasource.
1002
        ds[0] would return the first layer on the datasource.
1003
    aname'] would return the layer named "aname".
1003
        ds['aname'] would return the layer named "aname".
1004
    :4] would return a list of the first four layers."""
1004
        ds[0:4] would return a list of the first four layers."""
1005
        if isinstance(value, slice):
1005
        if isinstance(value, slice):
1006
            output = []
1006
            output = []
Lines 2222-2227 Link Here
2222
    def __getitem__(self, value):
2222
    def __getitem__(self, value):
2223
        """Support list and slice -like access to the layer.
2223
        """Support list and slice -like access to the layer.
2224
    r[0] would return the first feature on the layer.
2224
        layer[0] would return the first feature on the layer.
2225
    r[0:4] would return a list of the first four features."""
2225
        layer[0:4] would return a list of the first four features."""
2226
        if isinstance(value, slice):
2226
        if isinstance(value, slice):
2227
            import sys
2227
            import sys

Return to bug 554792