|
@@ -1008,16 +1008,16 @@ class CLibrariesInterface(RPCServerBase):
|
|
|
True
|
|
|
>>> ciface.read_raster_info("test", tgis.get_current_mapset())
|
|
|
{'rows': 12, 'north': 80.0, 'min': 1, 'datatype': 'CELL', 'max': 1, 'ewres': 10.0, 'cols': 8, 'west': 0.0, 'east': 120.0, 'nsres': 10.0, 'south': 0.0}
|
|
|
-
|
|
|
- >>> info = ciface.read_raster_full_info("test", tgis.get_current_mapset())
|
|
|
+
|
|
|
+ >>> info = ciface.read_raster_full_info("test", tgis.get_current_mapset())
|
|
|
>>> info # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
|
|
- {u'tbres': 1.0, ... 'keyword': 'generated by r.mapcalc',
|
|
|
+ {u'tbres': 1.0, ... 'keyword': 'generated by r.mapcalc',
|
|
|
u'bottom': 0.0, 'end_time': None, 'title': 'test', u'south': 0.0}
|
|
|
|
|
|
>>> info["start_time"]
|
|
|
datetime.datetime(1995, 3, 12, 10, 34, 40)
|
|
|
>>> info["end_time"]
|
|
|
-
|
|
|
+
|
|
|
>>> check = ciface.has_raster_timestamp("test", tgis.get_current_mapset())
|
|
|
>>> print check
|
|
|
True
|
|
@@ -1084,7 +1084,7 @@ class CLibrariesInterface(RPCServerBase):
|
|
|
>>> kvp["start_time"]
|
|
|
datetime.datetime(1995, 3, 12, 10, 34, 40)
|
|
|
>>> kvp["end_time"]
|
|
|
-
|
|
|
+
|
|
|
>>> check = ciface.has_vector_timestamp("test", tgis.get_current_mapset(), None)
|
|
|
>>> print check
|
|
|
True
|
|
@@ -1111,25 +1111,25 @@ class CLibrariesInterface(RPCServerBase):
|
|
|
>>> location = ciface.get_location()
|
|
|
>>> gisdbase = ciface.get_gisdbase()
|
|
|
|
|
|
- >>> ciface.fatal_error()
|
|
|
+ >>> ciface.fatal_error() # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
|
|
|
Traceback (most recent call last):
|
|
|
- raise FatalError(message)
|
|
|
- FatalError: Fatal error
|
|
|
+ raise FatalError("Exception raised: " + str(e) + " Message: " + message)
|
|
|
+ FatalError: Exception raised: ...
|
|
|
|
|
|
- >>> ciface.fatal_error()
|
|
|
+ >>> ciface.fatal_error() # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
|
|
|
Traceback (most recent call last):
|
|
|
- raise FatalError(message)
|
|
|
- FatalError: Fatal error
|
|
|
+ raise FatalError("Exception raised: " + str(e) + " Message: " + message)
|
|
|
+ FatalError: Exception raised: ...
|
|
|
|
|
|
- >>> ciface.fatal_error()
|
|
|
+ >>> ciface.fatal_error() # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
|
|
|
Traceback (most recent call last):
|
|
|
- raise FatalError(message)
|
|
|
- FatalError: Fatal error
|
|
|
+ raise FatalError("Exception raised: " + str(e) + " Message: " + message)
|
|
|
+ FatalError: Exception raised: ...
|
|
|
|
|
|
- >>> ciface.fatal_error()
|
|
|
+ >>> ciface.fatal_error() # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
|
|
|
Traceback (most recent call last):
|
|
|
- raise FatalError(message)
|
|
|
- FatalError: Fatal error
|
|
|
+ raise FatalError("Exception raised: " + str(e) + " Message: " + message)
|
|
|
+ FatalError: Exception raised: ...
|
|
|
|
|
|
>>> ciface.stop()
|
|
|
|