mapbox / geometry.hpp

C++ geometry types
ISC License
92 stars 37 forks source link

Enable use with 3d or other custom point types #26

Open jfirebaugh opened 8 years ago

mourner commented 8 years ago

Would be nice to also demonstrate the custom use in tests.

jfirebaugh commented 8 years ago

Added a test and README example. Thoughts @springmeyer @artemp?

mourner commented 8 years ago

Needs to be updated for compatibility with for_each_point and envelope.

jfirebaugh commented 8 years ago

Updated for_each_point and fixed a bug in multi_polygon_t. With envelope, we maybe need to reinvent another feature of boost::geometry, which is generalizing algorithms across the dimensionality of their input. You'd expect envelope to calculate the 3d envelope if given 3d input geometry.