[R-sig-Geo] Delimit a polygon for the region which is>, 1000 m from my raster altitude

sadaoui sadaouimahrez at outlook.com
Sun May 3 11:00:29 CEST 2015


Ok thank you  Robert Hijmans


If you want to keep the raster cell values, you could do

shapefile(pol2, "polygon2.shp")

and use that file.


On Sat, May 2, 2015 at 2:10 PM, sadaoui <sadaouimahrez@> wrote:
> Thank you "Robert Hijmans",
>
> it works with this function ;
>
> shapefile(pol3, "polygon3.shp")
>
>
> but I want to have the corresponding data to this shapefile.
>
> I tried, as did you say :
>
> "or use the SpatialPolygons object to create a SpatialPolygonsDataFrame
> and then use writeOGR (that is what the shapefile function does for
> you). "
>
> I tried to follow this solution :
>
> http://gis.stackexchange.com/questions/61633/r-convert-a-spatial-polygon-objet-to-spatial-polygon-data-frame
>
> but I can not convert the spatial polygon to SpatialPolygonsDataFrame.
> sorry
> i am a beginner in this field.
>
> thank you
>
>
>
>
>
>
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Re-Delimit-a-polygon-for-the-region-which-is-1000-m-from-my-raster-altitude-tp7588152p7588155.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@
https://stat.ethz.ch/mailman/listinfo/r-sig-geo





--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Re-Delimit-a-polygon-for-the-region-which-is-1000-m-from-my-raster-altitude-tp7588152p7588157.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list