How to specify the new layer type in writeOGR{rgdal}?

المشرف العام

Administrator
طاقم الإدارة
There is a task that we copy some polygons into postgis using rgdal package. I noticed postgis is strict with geometry type so that the new multi-feature layer type must be specified.

I tested the new layer type can be defined of nlt argument in ogr2ogr. However, I couldn't find the same arguments in writeOGR{rgdal}?

The question is how to specify the new layer type in writeOGR{rgdal}?Thanks in advance.PS: Here's infos about rgdal and postgis:

rgdal: version: 1.0-4, (SVN revision 548) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.11.2, released 2015/02/10 Path to GDAL shared files: /usr/share/gdal/1.11 Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480] Path to PROJ.4 shared files: (autodetected) Linking to sp version: 1.1-1 POSTGIS="2.1.7 r13414" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.11.2, released 2015/02/10" LIBXML="2.9.1" LIBJSON="UNKNOWN" TOPOLOGY RASTER

أكثر...
 
أعلى