Re: [GRASS-dev] [GRASS GIS] #3844: Make Region importable from pygrass.gis

2019-05-19 Thread GRASS GIS
#3844: Make Region importable from pygrass.gis
--+-
  Reporter:  pmav99   |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  closed
  Priority:  normal   |  Milestone:  7.8.0
 Component:  PyGRASS  |Version:  svn-trunk
Resolution:  fixed|   Keywords:
   CPU:  Unspecified  |   Platform:  Unspecified
--+-
Changes (by martinl):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Closed by
 https://github.com/landam/grass/commit/e328eab9738f04d173dd89b88e52e7d8dc33f2fc

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #3844: Make Region importable from pygrass.gis

2019-05-12 Thread GRASS GIS
#3844: Make Region importable from pygrass.gis
-+-
 Reporter:  pmav99   |  Owner:  grass-dev@…
 Type:  enhancement  | Status:  new
 Priority:  normal   |  Milestone:  7.8.0
Component:  PyGRASS  |Version:  svn-trunk
 Keywords:   |CPU:  Unspecified
 Platform:  Unspecified  |
-+-
 Currently, in order to import the {{{Region}}} class you need to import it
 from {{{pygrass.gis.region}}}. The following patch allows to import it
 from the {{{pygrass.gis}}} package. This way, all gis objects can be
 imported/used from the same module. E.g.

 {{{
 import grass.pygrass.gis as ggis

 ggis.Region
 ggis.Location
 ggis.Mapset
 }}}

 The patch:
 {{{
 diff --git lib/python/pygrass/gis/__init__.py
 lib/python/pygrass/gis/__init__.py
 index 82e176bd..2e65e990 100644
 --- lib/python/pygrass/gis/__init__.py
 +++ lib/python/pygrass/gis/__init__.py
 @@ -9,11 +9,11 @@ import shutil
  import ctypes as ct
  import fnmatch

 -
  import grass.lib.gis as libgis
  from grass.pygrass.errors import GrassError
  from grass.script.utils import encode, decode
  from grass.pygrass.utils import getenv
 +from grass.pygrass.gis.region import Region

  test_vector_name = "Gis_test_vector"
  test_raster_name = "Gis_test_raster"
 }}}

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev