[GRASS-dev] [GRASS GIS] #3727: t.rast.aggregate fails with python3

GRASS GIS trac at osgeo.org
Fri Feb 15 08:15:29 PST 2019


#3727: t.rast.aggregate fails with python3
-------------------------+-------------------------------------------------
  Reporter:  veroandreo  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:  7.8.0
 Component:  Temporal    |    Version:  svn-trunk
Resolution:              |   Keywords:  t.rast.aggregate, t.rast.algebra,
       CPU:              |  python3
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by neteler):

 Replying to [comment:3 huhabla]:
 > This problem can be solved by wrapping list() around the dictionary
 value type in "temporal/spatio_temporal_relationships.py", line 378, in
 _detect_first:
 >
 > {{{
 > prev_ = list(self._store.values())[0]
 > }}}

 I tested this as well via Vero's patch:

 {{{
 t.create output=A type=strds temporaltype=absolute title="test"
 description="test"
 Creates a space time dataset.

 Usage:
  t.create output=name maps=name[,name,...] [type=name]
    semantictype=string title=string description=string [--overwrite]
    [--help] [--verbose] [--quiet] [--ui]

 Flags:

 Parameters:
         output   Name of the output space time dataset
           maps   Type of the output space time dataset
           type   Type of the input map
                  options: raster,vector,raster_3d
                  default: raster
   semantictype   Semantic type of the space time dataset
                  options: min,max,sum,mean
                  default: mean
          title   Title of the new space time dataset
    description   Description of the new space time dataset

 ERROR: t.create: Sorry, <temporaltype> is not a valid parameter
 ERROR: Value <strds> out of range for parameter <type>
         Legal range: raster,vector,raster_3d
 ERROR: Required parameter <maps> not set:
         (Type of the output space time dataset)
 }}}

 ... quite weird!

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3727#comment:5>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list