[R-sig-Geo] raster to polygons

Ari Jolma ari.jolma at tkk.fi
Wed May 31 09:43:13 CEST 2006


didier leibovici kirjoitti:
> Hi,
> I can't find a function allowing to transform a raster grid to a polygon 
> 'shapefile' (sp class or other)

I just posted on gdal-dev this example:
http://map.hut.fi/PerlForGeoinformatics/scripts/r2v.pl

It converts a grid to a layer of polygons, currently it is even a bit
too meticulous, each vertex which belongs to the polygons border is
stored, even those that are on a straight line.

The code requires GDAL and its Perl interface, which is included in the
latest relieses.

Regards,

Ari

> thanks
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo


-- 
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




More information about the R-sig-Geo mailing list