[R-sig-Geo] (no subject)

Roger Bivand Roger.Bivand at nhh.no
Tue May 11 11:53:21 CEST 2010


On Mon, 10 May 2010, Stephen G. Eick wrote:

> Are there any easy function to parse WKT and convert it into a sp object?
> E.g.  to parse
>

Not yet, not in OGR in rgdal anyway. There is a draft pair of MULTIPOLYGON 
<-> SpatialPolygons functions in rgeos on R-forge - maybe add a wish 
there, or consider contributing? GEOS has WKT input-output functions.

Roger

>
>
> "MULTILINESTRING((-88.06354 41.80337,-88.06415 41.80297,-88.06447
> 41.80288,-88.06566 41.80275,-88.06586 41.80277,-88.06596 41.80284,-88.06598
> 41.8029,-88.06592 41.80433,-88.06592 41.80449,-88.06598 41.8047,-88.06599
> 41.80619,-88.06598 41.80623,-88.06594 41.80628,-88.06588 41.80628,-88.06523
> 41.80602,-88.0646 41.8058))"
>
>
>
> Or
>
>
>
> "POINT(-88.06594 41.80628)"
>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list