There is no ray object in Shapely. You could approximate one in the context of a given geometric object target like this:
1. Determine the bounds of the target (target.bounds) 2. Using your ray origin and angle, find a point along the angle that is on the other side of the target bounds from the origin 3. Combine that with the origin to make a line Of course, if the origin is within the target you will have to extend the line in both directions. On Mon, Sep 1, 2014 at 1:15 AM, Kia <kiasaeed...@gmail.com> wrote: > > Yes, that is true > > > On Sep 1, 2014, at 12:00 AM, Sean Gillies <sean.gill...@gmail.com> wrote: > > To be clear, you want to find the intersection of any geometric object > with a ray that has an origin and an angle? > > > On Sat, Aug 30, 2014 at 9:57 AM, KIA <kiasaeed...@gmail.com> wrote: > >> >> hi >>> i have some code in python and i use shapely module in that >>> I need to define ray line with specific origin and angle to intersect >>> with some other shape >>> but shapely module does not have any object like ray line >>> I have tried to use ray object from sympy module but I cant intersect >>> sympy object with shape object... >>> could you please give me an idea about how can I define ray line with >>> specific origin and angle with shapely?... >>> thank you so much in advance >>> >> >> _______________________________________________ >> Community mailing list >> Community@lists.gispython.org >> http://lists.gispython.org/mailman/listinfo/community >> > > > > -- > Sean Gillies > > _______________________________________________ > Community mailing list > Community@lists.gispython.org > http://lists.gispython.org/mailman/listinfo/community > > > _______________________________________________ > Community mailing list > Community@lists.gispython.org > http://lists.gispython.org/mailman/listinfo/community > > -- Sean Gillies
_______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community