Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import_shapefile is not defined #10

Open
issackelly opened this issue Sep 7, 2009 · 0 comments
Open

import_shapefile is not defined #10

issackelly opened this issue Sep 7, 2009 · 0 comments

Comments

@issackelly
Copy link

The import_shapefile function is not defined, and the default /lib/geocoder/us/import/tiger.rb file is not setup for shapefile imports, here is my stab at it, I wasn't sure where this function belonged in the import file, or else I'd just submit a patch (that, and I'm a ruby and a TIGER newbie, so I'm not sure if it's even all correct)

def import_shapefile (file,table)
  if file.match('.shp$')
    insert_shapefile file, table
  elsif file.match('.dbf$')
    insert_dbf file, table
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant