ogr2ogr -skipfailures
-f "FileGDB"
<%= file_name %>
PG:"host=<%= db_config[:host] %>
  user=<%= db_config[:username] %> 
  <% unless db_config[:password].nil? %>
    password=<%= db_config[:password] %>
  <% end %>
  dbname=<%= db_config[:database] %>"
-sql "<%= query %>"
-nlt "<%= geom_type.upcase %>"

ogr2ogr -skipfailures
-f "FileGDB"
<%= file_name %>
PG:"host=<%= db_config[:host] %>
  user=<%= db_config[:username] %> 
  <% unless db_config[:password].nil? %>
    password=<%= db_config[:password] %>
  <% end %>
  dbname=<%= db_config[:database] %>"
-sql "<%= query %>"
-nlt "<%= geom_type.upcase %>"
-nln "<%= file_name.split('.').first %>"

Use custom layer name for gdb exports
Use custom layer name for gdb exports
