Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geodesic Convolution Buffers #33

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2e8d9d4
point buffer implemented
morganherlocker Dec 5, 2014
33b4c02
add fixtures
morganherlocker Dec 5, 2014
dff0c3d
multipoint buffers
morganherlocker Dec 5, 2014
08b5023
line buffer test
morganherlocker Dec 5, 2014
685a2e9
segment offset and caps implemented
morganherlocker Dec 6, 2014
4ddb2d5
geodesic linestring buffer FC
morganherlocker Dec 6, 2014
0f72899
multiline string support
morganherlocker Dec 6, 2014
41833ff
linestring buffer line made
mclaeysb Jun 1, 2016
2b8d30c
cleanup
mclaeysb Jun 3, 2016
076506a
arc at fixed bearings
mclaeysb Jun 3, 2016
bd4d459
polygon offset implemented
mclaeysb Jun 9, 2016
d258dfe
line buffer return polygon, polygon buffer with or without rings retu…
mclaeysb Jun 9, 2016
e45a8aa
removed old turf featurecollection
mclaeysb Jun 9, 2016
b13b9c8
lineBuffer for closed line fix
mclaeysb Jun 10, 2016
6cf9427
all offsets are now polygon coordinates
mclaeysb Jun 10, 2016
b0dc332
brackets fix and lineOffset fix fix
mclaeysb Jun 10, 2016
78432fe
commented winding function
mclaeysb Jun 10, 2016
a5bacab
added rewind function
mclaeysb Jun 10, 2016
3a0199f
automatically rewind polygons
mclaeysb Jun 10, 2016
8a506c9
re-randomize arc points, remove duplicate vertices first
mclaeysb Jun 12, 2016
99a1f35
added test
mclaeysb Jun 12, 2016
723b692
strip simplepolygon features
mclaeysb Jun 12, 2016
a07f2e7
add package
mclaeysb Jun 12, 2016
72fb68a
removed old fixtures
mclaeysb Jun 12, 2016
8eb2573
moved test.js and fixtures to tests dir
mclaeysb Jun 13, 2016
5b5d4f8
renamed tests to test
mclaeysb Jul 21, 2016
f68be48
basic benchmarks comparing this branch to master which uses jsts
mclaeysb Jul 21, 2016
095be64
updated package with correct test ref and bench devDep
mclaeysb Jul 21, 2016
77f4f96
renamed test fixtures
mclaeysb Jul 21, 2016
f426516
fixed equal arrays and modulo function: no longer extending built-in …
mclaeysb Jul 30, 2016
20f0eb8
single simplepolygon call in offsetToBuffer
mclaeysb Aug 2, 2016
f75aee9
allow FeatureCollection input
mclaeysb Aug 7, 2016
5c5ac1b
small tweaks
mclaeysb Aug 9, 2016
92ef49b
added test that buffers circle with buffer radius equal to circle radius
mclaeysb Aug 9, 2016
bbdb86f
removed test/fixtures/out/*
mclaeysb Aug 9, 2016
a147571
Fix neglecting of holes caused by f75aee9dd5d70f310ee8289147a43747d71…
mclaeysb Aug 9, 2016
6eebbf3
fix winding function
mclaeysb Aug 15, 2016
60f5ad1
ignore extra fixtures and their test
mclaeysb Aug 15, 2016
3350d07
entab
mclaeysb Aug 17, 2016
173433a
Always measure bearings from point where arc is made
mclaeysb Aug 20, 2016
81756a3
fix to make shortcut arc for reflex angles pass through point, fully …
mclaeysb Aug 21, 2016
e0b23e9
simplify linestrings and polygons before buffering > speedup
mclaeysb Aug 26, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
multiline string support
  • Loading branch information
morganherlocker committed Dec 6, 2014
commit 0f72899fc3f290e706161a1fcfd652b9f09fe8b4
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -10,15 +10,18 @@ module.exports = function(feature, radius, units, resolution){
if(geom.type === 'Point') {
return pointBuffer(feature, radius, units, resolution);
} else if(geom.type === 'MultiPoint') {
var buffers = []
var buffers = [];
geom.coordinates.forEach(function(coords) {
buffers.push(pointBuffer(point(coords[0], coords[1]), radius, units, resolution));
});
return featurecollection(buffers)
} else if(geom.type === 'LineString') {
return lineBuffer(feature, radius, units, resolution);
} else if(geom.type === 'MultiLineString') {

var buffers = [];
geom.coordinates.forEach(function(line){
buffers.push(lineBuffer(feature, radius, units, resolution));
});
} else if(geom.type === 'Polygon') {

} else if(geom.type === 'MultiPolygon') {