[postgis-users] pgsql2shp

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Tue Sep 27 01:54:53 PDT 2011


On 26/09/11 09:42, Raffaele Morelli wrote:

> Hi,
>
> I am working with R and using pgsql2shp to export shape files from pg.
> The shapes are created by pgsql2shp but when I try to import them in a R
> enviromnent I get this error
>
> Error in res[i, ] <- Map$Shapes[[i]]$verts : replacement has length zero
>
> I can load the shape files in Qgis but not in R. Moreover, if I load one
> of those files in Qgis and then export it again... this file is
> correctly loaded by R.
>
> I really cant' guess what's wrong with pgsql2shp. Any ideas?
>
> Regards
> Raffaele

Hi Raffaele,

Are you able to provide an example shapefile for us to look at? And also 
which version of PostGIS/shp2pgsql are you using?


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the postgis-users mailing list