This is a version of liblwgeom extracted from PostGIS 2.0.2 and converted to valid C++ so it compiles with MSVC 2010. It also includes a binding.gyp file so it will build with node-gyp. The lwgeom directory is a copy from here. I converted this so liblwgeom can be built using gyp and used from native nodejs modules without needing to install system dependencies or needing a separate MinGW build step. In particular, SpatiaLite can be built with support for some neat functionality provided by liblwgeom. Since MSVC doesn't support C99, liblwgeom requires some fairly monotonous changes so it will compile as the "C subset of C++" that's supported when compiled as C++ with MSVC.
- Linux 32bit
- Linux 64bit
- OS X 64bit
- Windows 64bit
- Windows 32bit should work (pending testing)
- nodejs
- GEOS (located at
../geos/geos) - Proj4 (located at
../proj/proj)
For Windows, there are more dependencies. Follow the Windows MSVC setup instructions from the node-gyp pages here
$ node-gyp configure build
This is intended to be used within the context of another gyp project that contains GEOS and Proj4.