Package madrona :: Package studyregion :: Package management :: Package commands :: Module create_study_region :: Class Command
[hide private]

Class Command

source code

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

Instance Methods [hide private]
 
handle_ogr(self, inshape, name) source code
 
handle_wkt(self, wkt, name) source code
 
handle(self, inshape, *args, **options)
`inshape` can be a wkt string or shapefile path
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('--name', ac...
  help = "Creates a new study region from a shapefile containing...
  args = '[input shapefile or wkt string]'

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, inshape, *args, **options)

source code 

`inshape` can be a wkt string or shapefile path

Overrides: django.core.management.base.BaseCommand.handle

Class Variable Details [hide private]

option_list

Value:
AppCommand.option_list+(make_option('--name', action= 'store', dest= '\
region_name', default= False, help= 'Give a name to the study region, \
otherwise the name attribute from the shapefile will be used.'),)

help

Value:
"Creates a new study region from a shapefile containing a single multi\
geometry"