logo       

Re: raster to polygons: msg#00080

lang.r.geo

Subject: Re: raster to polygons

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@xxxxxxxxxxxxxxxxx
> 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise