~fekete-mihai/geospatial-addons/geospatial-addons

« back to all changes in this revision

Viewing changes to base_geoengine/geo_multiline.py

  • Committer: nicolas.bessi at camptocamp
  • Author(s): nbessi and fredj
  • Date: 2012-12-13 13:53:14 UTC
  • mfrom: (81.4.11 geoengine-edit-widget)
  • Revision ID: nicolas.bessi@camptocamp.com-20121213135314-c6dw28ar6hcno5uv
[ADD] support of basic edit widget in GeoEngine + support of reprojection

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
#
20
20
##############################################################################
21
 
from __future__ import absolute_import 
 
21
from __future__ import absolute_import
22
22
from osv import fields
23
23
from . import geo_field
24
24
 
27
27
    _type = 'geo_multi_line'
28
28
 
29
29
    def __init__(self, string, dim=2, srid=900913 , gist_index=True, **args):
30
 
        res = super(GeoMultiLine, self).__init__(string, "MULTILINESTRING", **args)
 
30
        res = super(GeoMultiLine, self).__init__(string, "MULTILINESTRING", dim=dim,
 
31
                                                 srid=srid, gist_index=gist_index, **args)
31
32
        return res
32
33
 
33
34
fields.geo_multi_line = GeoMultiLine