[Community] Does shapely have the GEOS correlate of projecting a point onto a line?
Sean Gillies
sean.gillies at gmail.com
Tue Nov 10 12:46:59 EET 2009
On Nov 10, 2009, at 1:10 AM, Roy Hyunjin Han wrote:
> Hi,
>
> I see that GEOS added the ability to project a point onto a line a few
> months ago.
> http://trac.osgeo.org/geos/ticket/285
>
> PostGIS already seems to have this ability.
> http://selectoid.wordpress.com/2009/02/13/reprojecting-snapping-point-geometries-onto-a-given-line-geometry-using-postgis/
>
> Can we access this GEOS functionality using Python through Shapely?
>
> Thanks for maintaining this package,
> RHH
Currently, no. We're open to suggestions for new features like this.
The linear referencing API will be appearing in GEOS 3.2. Shapely 1.2
has been aimed at GEOS 3.1 and we haven't yet discussed whether we
should raise the aim to 3.2.
If you look at the base geometry class, it should be fairly clear how
you could use the linear referencing functions in the GEOS C API in
new Line methods like line.interpolate and line.project.
--
Sean
More information about the Community
mailing list