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

block import UI fails silently #251

Open
slinkp opened this issue Sep 28, 2012 · 2 comments
Open

block import UI fails silently #251

slinkp opened this issue Sep 28, 2012 · 2 comments

Comments

@slinkp
Copy link
Contributor

slinkp commented Sep 28, 2012

If importer.save(name_field) returns 0 as the number of created locations, the UI doesn't tell you anything about what went wrong.
See around line 162 in obadmin/admin/views.py.

One possible scenario that triggers this: all the locations are outside your configured metro extent from settings.py.

@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

This happened to us today while trying to load a shapefile with a wrongly-guessed projection; we had a shapefile with no .prj file and wrongly told ogr2ogr it was in "NAD83 North Carolina meters" instead of "NAD83 North Carolina Feet". No errors, just wildly wrong coordinates, so the import UI silently failed to import anything.

@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

Ticket imported from Trac:
http://developer.openblockproject.org/ticket/258
Reported by: slinkp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant