Skip to content

Error with readOGR and shape file

2 messages · Agustin Lobo, Roger Bivand

#
I've found the following error at importing a shp file
edited (deleting one line and creating another one) and saved with QGIS.
SHP files made (not edited) and saved with QGIS can be imported into R
with no problems.
I'm reporting to the QGIS list as well:
Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding =
input_field_name_encoding) :
   Multiple incompatible geometries: 2:25706376

Note that ogrinfo does not report any problem:
$ ogrinfo flMata700v2.shp
INFO: Open of `flMata700v2.shp'
       using driver `ESRI Shapefile' successful.
1: flMata700v2 (Line String)

Let me know if I should upload the file.
Thanks

Agus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alobolistas.vcf
Type: text/x-vcard
Size: 251 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20090707/d003d21c/attachment.vcf>
#
On Tue, 7 Jul 2009, Agustin Lobo wrote:

            
Of course, without the offending file, no diagnosis is possible. More 
information is needed - this isn't a list question. It looks as though 
QGIS editing is not setting a geometry type correctly.

Roger