Where can I find line buffering code?
I can't find any code for doing this. The only places I can find it is in GIS APIs. Preferably in java, but I can port other languages too. 开发者_Python百科I'd even settle for a overview of all the formulas required.
Use either:
The method
Geometry.buffer(distance)
in Java Topology Suite (JTS) library http://www.vividsolutions.com/jts/JTSHome.htmThe GEOS http://trac.osgeo.org/geos/ port of JTS library to C++.
I'm a little puzzled by your question, so this may not be the (type of) answer you are looking for.
Look for line buffering code in the source files of any of the open-source GIS out there. there are several.
As for algorithms, I Googled for gis buffering and got several useful hits on the first page.
精彩评论