openplans / openblock

OpenBlock is a web application and RESTful service that allows users to browse and search their local area for "hyper-local news
61 stars 26 forks source link

block import UI fails silently #251

Open slinkp opened 11 years ago

slinkp commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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