Skip to content

Commit

Permalink
Remove geos from greatCircleLength().
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 10, 2012
1 parent 53ad4c3 commit 64685d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/geometry/LineString.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ public function length() {
}

public function greatCircleLength($radius = 6378137) {
if ($this->geos()) {
return $this->geos()->length();
}
$length = 0;
foreach ($this->getPoints() as $delta => $point) {
$previous_point = $this->geometryN($delta);
Expand Down

0 comments on commit 64685d6

Please sign in to comment.