]> granicus.if.org Git - postgis/commitdiff
#2336 state level regex wget is too greedy and pulling all states when KS is chosen
authorRegina Obe <lr@pcorp.us>
Thu, 20 Jun 2013 06:24:56 +0000 (06:24 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 20 Jun 2013 06:24:56 +0000 (06:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11548 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2011/tiger_loader_2012.sql

index a2ed48c07e372eaf98788e262074da60a1b047f3..051cf3b560bf9d8429a86f59beff6a5fe4ccae5c 100644 (file)
@@ -290,7 +290,7 @@ SELECT
 ' ||
        -- State level files - if an override website is specified we use that instead of variable one
        array_to_string( ARRAY(SELECT 'cd ' || replace(variables.staging_fold,'/', platform.path_sep) || '
-' || platform.wget || ' ' || COALESCE(lu.website_root_override,variables.website_root || '/' || upper(table_name)  ) || '/*_' || s.state_fips || '* --no-parent --relative --recursive --level=2 --accept=zip --mirror --reject=html 
+' || platform.wget || ' ' || COALESCE(lu.website_root_override,variables.website_root || '/' || upper(table_name)  ) || '/tl_*_' || s.state_fips || '_* --no-parent --relative --recursive --level=2 --accept=zip --mirror --reject=html 
 '
 || 'cd ' ||  replace(variables.staging_fold,'/', platform.path_sep) || '/' || replace(replace(COALESCE(lu.website_root_override,variables.website_root || '/' || upper(table_name) ), 'http://', ''),'ftp://','')    || '
 ' || replace(platform.unzip_command, '*.zip', 'tl_*_' || s.state_fips || '*_' || table_name || '.zip ') || '