geos.GEOSProject ⇒ number ⏏
Distance of point projected onto line from the start of the line.
Kind: global property of geos
Returns: number - distance along line that point projects to, -1 on exception
| Param | Type | Description |
|---|---|---|
| line | GEOSGeometry | linear target of projection |
| point | GEOSGeometry | point to be projected onto 'g' |
geos.GEOSProjectNormalized ⇒ number ⏏
Project point to line and calculate the proportion of the line the point is from the start. For example, a point that projects to the middle of a line would be return 0.5.
Kind: global property of geos
Returns: number - The proportion of the overall line length that the projected point falls at.
| Param | Type | Description |
|---|---|---|
| line | GEOSGeometry | linear target of projection |
| point | GEOSGeometry | the point to project |
geos.GEOSProjectNormalized_r ⇒ number ⏏
Project point to line and calculate the proportion of the line the point is from the start. For example, a point that projects to the middle of a line would be return 0.5.
Kind: global property of geos
Returns: number - The proportion of the overall line length that the projected point falls at.
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g | GEOSGeometry | linear target of projection |
| p | GEOSGeometry | the point to project |
geos.GEOSProject_r ⇒ number ⏏
Distance of point projected onto line from the start of the line.
Kind: global property of geos
Returns: number - distance along line that point projects to, -1 on exception
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| line | GEOSGeometry | linear target of projection |
| point | GEOSGeometry | point to be projected onto 'g' |