Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

As the title explains, I have a shapefile whose attribute table has no geometry column specifying the location of points. Rendered in QGIS, it looks fine, so the geometry data is obviously there. Can't import it into a postgresql database using shp2pgsql without a geometry column (Failed in pgui_exec(): ERROR: function addgeometrycolumn(unknown, unknown, unknown, unknown, unknown, integer) does not exist). What am I missing here? How can I add the spatial data to the attribute table?

nevermind (edit): bah, it seems that i've let my mind go and i did not set up the new db with the postgis template: more here - http://stackoverflow.com/questions/7323857/postgresql-shp2pgsql-addgeometrycolumn-gives-no-function-matches-the-given-na

share|improve this question

closed as not a real question by iant, whuber Sep 20 '12 at 13:50

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.