This project is read-only.

dotspatial featureset to MW5

Aug 25, 2016 at 10:19 AM
I am wondering if someone can help me:
How to convert received from connect string to spatialite to mw5.api.interfeaces.ilayersource?
How to handle spatialite geometry field in MW5?
How to create MW5 feature with this geometry field?

Thanks for any help, Vojko
Aug 29, 2016 at 9:32 AM
We don't yet have any experience with converting DotSpatial classes to MW5 classes. It should be rather straight forward, you'll have coordinates and you need to create a shapefile object. Look at the CreateLines method in

Easier might be to get the data from SpatiaLite directly using MW5.
Via the Repository in MW5 you can connect with several databases, like MS-SQL, PostGIS and SpatiaLite.

The available methods available in MapWinGIS:

Why are you mixing MW5 and DotSpatial. Are you using something specific from DotSpatial MW5 can't do?


Sep 8, 2016 at 1:40 PM
Hi Paul!

For now I have been successfully mixing MW5 and DotSpatial - Spatialite database to execute this kind of SQL statement (more detailed):

SELECT ASTEXT(house.geometry), ID, street, house_number, house.geometry as vhg FROM house, pipe
WHERE Distance(vhg, pipe.geometry) < 10.0 AND id_pipe in ('0000031012' , '0000031014')

But I will follow your suggestion and investigate further to achieve the same goal with OgrDatasource.ExecuteSQL inside MW5.
For me it is very hard to learn MW5 sintax based on MapWinGis API code. I would need more MW5 code examples!

Thanks and regards!
Sep 27, 2016 at 2:15 PM
Is it working for you now?

We are working on adding more code samples, but it might take some time to publish them.
So much to do, so little time ;)