worlanyo wrote:
I don't know what goes wrong in your case. You may want to query geometry_columns of your database and see that your parameters are correct.
Please note that the code is very picky with casing, so you need to spell your entities exact the way that they are defined in the database!
In using the DotSpatial.Data.Database, I encountered and error which says no geom found and I tried the suggestions by the other users but to no successAfter a long period of time, I tried the provided code and after renaming the
WKBReader
and changing the ProjectionInfo usage it worked as expected.I don't know what goes wrong in your case. You may want to query geometry_columns of your database and see that your parameters are correct.
Please note that the code is very picky with casing, so you need to spell your entities exact the way that they are defined in the database!
Please can you give me a simple PostGIS example for loading any shape using the NTS-DotSpatial GeometryConverter and the NTS - Topology Suite - PostGis I will be very gladYou can find them both at https://github.com/FObermaier/DotSpatial.Plugins