Does shapely have the GEOS correlate of projecting a point onto a line?

View: New views
3 Messages — Rating Filter:   Alert me  

Does shapely have the GEOS correlate of projecting a point onto a line?

by InvisibleRoads Patrol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Community mailing list
Community@...
http://lists.gispython.org/mailman/listinfo/community

Re: Does shapely have the GEOS correlate of projecting a point onto a line?

by Sean Gillies-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
Community mailing list
Community@...
http://lists.gispython.org/mailman/listinfo/community

Re: Does shapely have the GEOS correlate of projecting a point onto a line?

by InvisibleRoads Patrol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/10/2009 05:46 AM, Sean Gillies wrote:

> 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
>
>    
Thanks, Sean.  I will take a look at the base geometry class.
_______________________________________________
Community mailing list
Community@...
http://lists.gispython.org/mailman/listinfo/community