Skip to content

Commit

Permalink
Fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
korczis committed Aug 18, 2014
1 parent 43cf257 commit f4e3a23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/esri/helpers/postgis_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ def extract_table_name(shape)
end

def index_shapes(shapes, _opts = load_db_config)
puts 'Indexing shapes'
shapes.map do |shape|
table_name = extract_table_name(shape)
index_name = "idx_gis_esri_#{table_name}_geom"
full_table_name = "gis_esri_#{table_name}"
query = "CREATE INDEX #{index_name} ON #{full_table_name} USING gist(geom);"
puts query
query = "CREATE INDEX #{index_name} " \
"ON #{full_table_name} USING gist(geom);"
cmd = "echo \"#{query}\" | #{PSQL_CMD}"
puts "Indexing shape #{table_name} using '#{cmd}'"
system(cmd)
Expand Down

0 comments on commit f4e3a23

Please sign in to comment.