Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from bdon/master
Browse files Browse the repository at this point in the history
add ProjectNormalized linear referencing function.
  • Loading branch information
paulsmith committed Aug 27, 2013
2 parents bf60733 + 7a24bf4 commit fa2fd11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geos/geom.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ func (g *Geometry) Project(p *Geometry) float64 {
return float64(cGEOSProject(g.g, p.g))
}

func (g *Geometry) ProjectNormalized(p *Geometry) float64 {
// XXX: error if wrong geometry types
return float64(cGEOSProjectNormalized(g.g, p.g))
}

// Return closest point to given distance within geometry.
// This geometry must be a LineString.
func (g *Geometry) Interpolate(dist float64) (*Geometry, error) {
Expand Down

0 comments on commit fa2fd11

Please sign in to comment.