Package madrona :: Package raster_stats :: Package management :: Package commands :: Module update_rasterdatasets :: Class Command
[hide private]

Class Command

source code

                             object --+    
                                      |    
django.core.management.base.BaseCommand --+
                                          |
                                         Command

Instance Methods [hide private]
 
handle(self, **options)
The actual logic of the command.
source code

Inherited from django.core.management.base.BaseCommand: __init__, create_parser, execute, get_version, print_help, run_from_argv, usage, validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  option_list = AppCommand.option_list+(make_option('--ext', act...
  help = """Populates the raster_stats_rasterdataset model with ...
  args = '[ext, dirpath, filepath, name, type, force, storepath,...

Inherited from django.core.management.base.BaseCommand: can_import_settings, output_transaction, requires_model_validation

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handle(self, **options)

source code 

The actual logic of the command. Subclasses must implement this method.

Overrides: django.core.management.base.BaseCommand.handle
(inherited documentation)

Class Variable Details [hide private]

option_list

Value:
AppCommand.option_list+(make_option('--ext', action= 'store', dest= 'e\
xt', default= None, help= "Extension to be used for rasters in folder.\
"), make_option('--dirpath', action= 'store', dest= 'dirpath', help= "\
Denotes directory location."), make_option('--filepath', action= 'stor\
e', dest= 'filepath', help= "Denotes file location."), make_option('--\
storepath', action= 'store', dest= 'storepath', help= "Denotes alterna\
te directory path."), make_option('--name', action= 'store', dest= 'na\
me', default= None, help= "Name given to raster dataset (only used for\
...

help

Value:
"""Populates the raster_stats_rasterdataset model with rasters

    Use the --dirpath with --ext option when providing a directory of \
rasters

        python manage.py update_rasterdatasets --dirpath path_to_raste\
rs/raster_dir --ext .tif

...

args

Value:
'[ext, dirpath, filepath, name, type, force, storepath, prefix]'