Re: [Ironpython-users] Cannot create instances of that class because it is abstract

2016-01-29 Thread Stéphane Lozier
I can't say I really know what's going on, but you could try using unbound class instance methods (see http://ironpython.net/documentation/dotnet/dotnet.html#using-unbound-class-instance-methods ). For example: MapWinGIS.Shapefile.Open(sf, shpfilename, None) On Fri, Jan 29, 2016 at 11:55 AM, Djor

Re: [Ironpython-users] Cannot create instances of that class because it is abstract

2016-01-29 Thread Stéphane Lozier
Shapefile is an interface with a CoClassAttribute to ShapefileClass (which means when you do new Shapefile() in C# it creates an instance of ShapefileClass). I have no idea what the correct behaviour for IronPython should be, but in this case MapWinGIS.Shapefile gives you the interface. You could

Re: [Ironpython-users] Cannot create instances of that class because it is abstract

2016-01-29 Thread Djordje Spasic via Ironpython-users
Thank you for the explanation Stéphane. When I use MapWinGIS.ShapefileClass() instead of MapWinGIS.Shapefile():     import clr        clr.AddReferenceToFileAndPath("C:/mapwindow_dlls/Interop.MapWinGIS.dll")     import MapWinGIS        sf = MapWinGIS.ShapefileClass()     shpfilename = "C:/example