According to this answer I can read in a .lyr file via OGR as long as it was made with ArcGIS version 10.
I have such a file (from the ArcGIS Maps & Data page) but I can't quite make R's readOGR
function work with it.
Directory contents after decompressing the .lpk
file:
[1] "ESRI_Zip_Codes_Dec2011.lpk" "iteminfo.xml" "item.pkinfo" "thumbnail.png" [5] "USA_Zip_Codes.lyr" "zip_poly.prj" "zip_poly.sdc" "zip_poly.sdc.prj" [9] "zip_poly.sdc.xml" "zip_poly.sdi"
And then trying to open the various components:
ogrInfo( dsn=mypath, layer="zip_poly" )
Error in ogrInfo(dsn = file.path(shapedir, "zipcodes", "ESRI_Zipcodes"), : Cannot open file
ogrInfo( dsn=mypath, layer="USA_Zip_Codes" )
Error in ogrInfo(dsn = file.path(shapedir, "zipcodes", "ESRI_Zipcodes"), : Cannot open file
How do I open these things? I would normally take the easy way out and convert to Shapefile it via ArcGIS, but my annual license expired and my new one hasn't arrived yet.