|
||||
[Shapelib] .NET wrapper availableshapelib@lists.maptools.org shapelib@lists.maptools.orgFri, 9 Jan 2004 13:29:59 -0500
|
This is a multipart message in MIME format. --=_alternative 0065A05885256E16_= Content-Type: text/plain; charset="US-ASCII" FYI: A first cut at developing .NET wrapper class for shapelib is now available on the shapelib site at http://shapelib.maptools.org/dl/contrib/DotNET_Framework_Support.zip. The zip file contains the following: shapelib.cs is the C# wrapper for shapelib. It is sprinkled liberally with C# XML documentation tags, both to provide intellisense capability for the the VS IDE, and to produce documentation. Code comments are taken directly from the original shapelib documentation, with only a few minor changes. The included shapelib.dll is compiled for Win32. doc.xml was generated w/ Visual Studio from the documentation tags. It is included along with Anders Hejlsberg's doc.css and doc.xsl, which format doc.xml to HTML. test.cs is a console app to test and demonstrate the wrapper. The compiled version is also included as test.exe. The wrapper class is pretty much a straight up implementation of shapelib, with the following exceptions: 1) In the DBFRead/WriteLogical functions I pass .NET boolean values 2) I made SHPT_* and SHPP_* constants into enumerations to be in keeping with .NET coding conventions. I have not done anything with the quadtree functions in shapelib. Please send any comments, suggestions, bug reports, or whatever, to me at dgancarz@cfl.rr.com or david.gancarz@cityoforlando.net David Gancarz, P.E. btw: I also posted some files for calling shapelib.dll from VB6, if anyone is interested. See http://shapelib.maptools.org/dl/contrib/testvb/TestVB.zip and http://shapelib.maptools.org/dl/contrib/testvb/readme.pdf. Please note that, in the VB test program, I incorrectly define my polygon vertices in counterclockwise order. The shapefile format requires that polygon interiors be traversed in clockwise order (standard mathematical conventions notwithstanding :-( -dhg --=_alternative 0065A05885256E16_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">FYI: </font> <br> <br><font size=2 face="sans-serif">A first cut at developing .NET wrapper class for shapelib is now available on the shapelib site at http://shapelib.maptools.org/dl/contrib/DotNET_Framework_Support.zip. The zip file contains the following:</font> <br> <br><font size=2 face="sans-serif">shapelib.cs is the C# wrapper for shapelib. It is sprinkled liberally with C# XML documentation tags, both to provide intellisense capability for the the VS IDE, and to produce documentation. Code comments are taken directly from the original shapelib documentation, with only a few minor changes.</font> <br> <br><font size=2 face="sans-serif">The included shapelib.dll is compiled for Win32.</font> <br> <br><font size=2 face="sans-serif">doc.xml was generated w/ Visual Studio from the documentation tags. It is included along with Anders Hejlsberg's doc.css and doc.xsl, which format doc.xml to HTML.</font> <br> <br><font size=2 face="sans-serif">test.cs is a console app to test and demonstrate the wrapper. The compiled version is also included as test.exe.</font> <br> <br><font size=2 face="sans-serif">The wrapper class is pretty much a straight up implementation of shapelib, with the following exceptions:</font> <br> <br><font size=2 face="sans-serif">1) In the DBFRead/WriteLogical functions I pass .NET boolean values</font> <br><font size=2 face="sans-serif">2) I made SHPT_* and SHPP_* constants into enumerations to be in keeping with .NET coding conventions.</font> <br> <br><font size=2 face="sans-serif">I have not done anything with the quadtree functions in shapelib. </font> <br> <br><font size=2 face="sans-serif">Please send any comments, suggestions, bug reports, or whatever, to me at dgancarz@cfl.rr.com or david.gancarz@cityoforlando.net</font> <br> <br><font size=2 face="sans-serif">David Gancarz, P.E.</font> <br> <br> <br><font size=2 face="sans-serif">btw: </font> <br> <br><font size=2 face="sans-serif">I also posted some files for calling shapelib.dll from VB6, if anyone is interested. See http://shapelib.maptools.org/dl/contrib/testvb/TestVB.zip and http://shapelib.maptools.org/dl/contrib/testvb/readme.pdf. Please note that, in the VB test program, I incorrectly define my polygon vertices in counterclockwise order. The shapefile format requires that polygon interiors be traversed in clockwise order (standard mathematical conventions notwithstanding :-( </font> <br> <br><font size=2 face="sans-serif">-dhg</font> --=_alternative 0065A05885256E16_=--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |