def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.record) self.model = None # self.df = None self.sample = None self.cv_results_ = None self.target = None self.best_score = None self.rmse = None
def __init__(self, configdict, section, consumes=FORMAT.any): Output.__init__(self, configdict, section, consumes) self.host = self.cfg.get('host') self.port = self.cfg.get('port', '80') self.path = self.cfg.get('path') self.method = self.cfg.get('method', 'POST') self.user = self.cfg.get('user', None) self.password = self.cfg.get('password', None) self.content_type = self.cfg.get('content_type', 'text/xml') # self.accept_type = self.cfg.get('accept_type', self.content_type) # If we receive a list(), should we create a HTTP req for each member? self.list_fanout = self.cfg.get_bool('list_fanout', True) self.req_nr = 0
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.temp_file = self.cfg.get('temp_file') # For creating tables the GFS file needs to be newer than # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work # so we copy the .gfs file each time with the .gml file with # the same base name self.gfs_file = self.cfg.get('gfs_file') self.lco = self.cfg.get('lco') self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n', ' ').replace( '\n', ' ') self.first_run = True
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.temp_file = self.cfg.get('temp_file') # For creating tables the GFS file needs to be newer than # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work # so we copy the .gfs file each time with the .gml file with # the same base name self.gfs_file = self.cfg.get('gfs_file') self.lco = self.cfg.get('lco') self.spatial_extent = self.cfg.get('spatial_extent') self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n', ' ').replace('\n', ' ') if self.spatial_extent: self.ogr2ogr_cmd += ' -spat ' + self.spatial_extent self.first_run = True
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.temp_file = self.cfg.get('temp_file') self.regex_vsi_filter = re.compile("^/vsi[a-z0-9_]+/.*", re.I) # For creating tables the GFS file needs to be newer than # the .gml file. -lco GML_GFS_TEMPLATE somehow does not work # so we copy the .gfs file each time with the .gml file with # the same base name self.gfs_file = self.cfg.get('gfs_file') self.lco = self.cfg.get('lco') self.spatial_extent = self.cfg.get('spatial_extent') self.ogr2ogr_cmd = self.cfg.get('ogr2ogr_cmd').replace('\\\n', ' ').replace( '\n', ' ') if self.spatial_extent: self.ogr2ogr_cmd += ' -spat ' + self.spatial_extent self.first_run = True
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.any)
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.wfs_host = self.cfg.get('host') self.wfs_port = self.cfg.get('port', '80') self.wfs_path = self.cfg.get('path') self.idgen = self.cfg.get('idgen', 'GenerateNew')
def __init__(self, configdict, section, consumes): Output.__init__(self, configdict, section, consumes)
def __init__(self, configdict, section, consumes=FORMAT.any): Output.__init__(self, configdict, section, consumes) # self.accept_type = self.cfg.get('accept_type', self.content_type) self.req_nr = 0
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) log.info("working dir %s" % os.getcwd())
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=[FORMAT.ogr_feature, FORMAT.ogr_feature_array])
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.overwrite = self.cfg.get_bool('overwrite') self.srid = self.cfg.get_int('srid', -1) self.feature_member_tag = self.cfg.get('feature_member_tag') self.feature_type_ids = {}
def __init__(self, configdict, section): Output.__init__( self, configdict, section, consumes=[FORMAT.ogr_feature, FORMAT.ogr_feature_array])
def __init__(self, configdict, section): Output.__init__(self, configdict, section, consumes=FORMAT.etree_doc) self.file_num = 1