Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
polylines passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morganherlocker committed Jul 21, 2014
1 parent 30b092f commit fb7a9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/s2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ NAN_METHOD(GetCover) {

coverer.GetCovering(polygon, &cellids_vector);
} else if (type == "polyline") {
printf("POLYLINE DETECTED");
std::vector<S2Point> points;

for (uint32_t i = 0; i < array->Length(); i++) {
Expand Down
6 changes: 3 additions & 3 deletions test/getcovering.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ test('getCovering - polygon', function(t) {

test('getCovering - polyline', function(t) {
var input = [
[0, 0],
[0, 20],
[20, 20]
[0, 2],
[1, 1],
[0, 0]
].map(function(p) {
return (new s2.S2LatLng(p[0], p[1])).normalized().toPoint();
});
Expand Down

0 comments on commit fb7a9af

Please sign in to comment.