~geospatial-addons-core-editors/geospatial-addons/7.0

« back to all changes in this revision

Viewing changes to base_geoengine/geo_model.py

  • Committer: nicolas.bessi at camptocamp
  • Date: 2012-03-06 09:20:07 UTC
  • Revision ID: nicolas.bessi@camptocamp.com-20120306092007-qx823bcnxe78041c
[TYPO] of doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
    def fields_view_get(self, cursor, uid, view_id=None, view_type='form',
78
78
                        context=None, toolbar=False, submenu=False):
79
 
        """Return information about the available fields of the class.
80
 
           If view type == 'map' return geographical columns available"""
 
79
        """Returns information about the available fields of the class.
 
80
           If view type == 'map' returns geographical columns available"""
81
81
        view_obj = self.pool.get('ir.ui.view')
82
82
        raster_obj = self.pool.get('geoengine.raster.layer')
83
83
        vector_obj = self.pool.get('geoengine.vector.layer')
127
127
 
128
128
    def geo_search(self, cursor, uid, domain=[], geo_domain=[], offset=0,
129
129
                   limit=None, order=None, context=None):
130
 
        """Do a geo serach it allows direct domain:
131
 
           geo_search(r, uid, domaine=[('name', 'ilike', 'toto']), geo_domain=[('the_point', 'geo_intersect', myshaply_obj or mywkt or mygeojson)]
 
130
        """Perform a geo search it allows direct domain:
 
131
           geo_search(r, uid, domaine=[('name', 'ilike', 'toto']), geo_domain=[('the_point', 'geo_intersect', myshaply_obj or mywkt or mygeojson)].
132
132
 
133
 
           we can also support indirect geo_domain (‘geom’, ‘geo_operator’, {‘res.zip.poly’: [‘id’, ‘in’, [1,2,3]] })
 
133
           We can also support indirect geo_domain (‘geom’, ‘geo_operator’, {‘res.zip.poly’: [‘id’, ‘in’, [1,2,3]] }).
134
134
 
135
135
           The supported operators are :
136
136
            * geo_greater