Hi,


>From scratch and using spatstat package, I'd say yes.

Convert your polygons into psp objects

Using angles, generate for each point a line passing through it and with
the extent of your data.

Find crossing points and calculate the distance between your point and each
corresponding crossing point. Find the minimum distance and the point.

Some functions: psp and crossing.psp


Best,

Mathieu

2012/7/6 Jocelyn Esquivel <josesquivel.sm@gmail.com>

> Hi useRs
>
> I need to calculate the near distance between points (shapefile 1) and a
> polygon border (shapefile 2). I need to set a specific angle to calculate
> the linear distance from each point to the border of the polygon, but
> considering a specific direction. Is this possible?
>
> Thanks!!
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

