This project has moved. For the latest updates, please go here.
1
Vote

PostGIS datasource : geometry column error

description

Hi,
I am facing this issue of "geometry not found in the table " when i try to run the following code from this link:
https://sharpmap.codeplex.com/wikipage?title=Add%20a%20PostGIS%20layer

My connection string is: string ConnStr = "Server=127.0.0.1;Port=5432;User Id=postgres;Password=osm;Database=osm1;";

Also i tried to give different table name and column name as they were present in my database,but still getting the same error.
For example: string tablename = "planet_osm_polygon";
                  string idColumn = "osm_id";
I dont know which tablename and idColumn to pass in order to display map contents from my database,so please can anyone guide me through this difficulty..

I have attached the screenshots of my database .

file attachments

comments