Re: D bindings for Shapefile C Library

2014-01-29 Thread Rikki Cattermole
On Wednesday, 29 January 2014 at 06:55:17 UTC, evilrat wrote: On Wednesday, 29 January 2014 at 05:12:45 UTC, Rikki Cattermole wrote: For simple static bindings, it looks fine. You'll probably have fun getting it to work on Windows 32 bit though. Thank you OMF. what fun? using (coff)implib

Re: D bindings for Shapefile C Library

2014-01-29 Thread Sönke Ludwig
Am 29.01.2014 05:24, schrieb Craig Dillabaugh: I've created bindings for the C Shapefile Library. Shapefiles are a format used commonly in vector based Geographic Information Systems, often for data interchange. It is a pretty simple library and it is my first effort at creating such bindings.

Re: D bindings for Shapefile C Library

2014-01-29 Thread Craig Dillabaugh
On Wednesday, 29 January 2014 at 14:09:20 UTC, Gary Willoughby wrote: On Wednesday, 29 January 2014 at 04:24:36 UTC, Craig Dillabaugh wrote: I've created bindings for the C Shapefile Library. Shapefiles are a format used commonly in vector based Geographic Information Systems, often for data

Re: D bindings for Shapefile C Library

2014-01-29 Thread Gary Willoughby
A few things i tend to do when porting headers: 1). https://github.com/craig-dillabaugh/shplib.d/blob/master/source/shapefil.d#L267 'const char *filename' should usually be translated to 'const(char)* filename', 'const double * padfX' = 'const(double)* padfX' etc.. Reference:

Re: D bindings for Shapefile C Library

2014-01-29 Thread Craig Dillabaugh
On Wednesday, 29 January 2014 at 14:34:56 UTC, Gary Willoughby wrote: A few things i tend to do when porting headers: 1). https://github.com/craig-dillabaugh/shplib.d/blob/master/source/shapefil.d#L267 'const char *filename' should usually be translated to 'const(char)* filename', 'const

Re: D bindings for Shapefile C Library

2014-01-29 Thread Craig Dillabaugh
On Wednesday, 29 January 2014 at 05:26:31 UTC, Suliman wrote: Big thanks! Could you provide simple example of usage this lib. I have not experience in usage bindings, but I would like to try to write some tiny app to working with shp files. Not sure what sort of help you need, and what

Re: D bindings for Shapefile C Library

2014-01-28 Thread Suliman
Big thanks! Could you provide simple example of usage this lib. I have not experience in usage bindings, but I would like to try to write some tiny app to working with shp files.

Re: D bindings for Shapefile C Library

2014-01-28 Thread evilrat
On Wednesday, 29 January 2014 at 05:12:45 UTC, Rikki Cattermole wrote: For simple static bindings, it looks fine. You'll probably have fun getting it to work on Windows 32 bit though. Thank you OMF. what fun? using (coff)implib once? come on, that's not that hard at all... the only fun is