Not able to use readOGR function


Im not able to plot the kml file which has four layers using readOGR function. I have included all the packages and executed libraries too. Ive tried with both kml and shape file still not able to use the readOGR function
map1 <- readOGR("District Baddi Map 4 Layers.kml")


its customary when reporting an issue with code that doesnt work, to supply error messages from the console that describe the fault.
Can you do this ?
also, be aware that we don't have your kml object, and so couldnt possibly identify any problem there might be with it...

but what is a KML file ? in the readOGR documentation 'KML' is referred to as a driver.
what is the origin of this District Baddi Map 4 Layers.kml ?

Before using alternate data, its always worthwhile, using data bundled with the package , that is referenced in the examples for using that package.
Recommend you type ?readOGR in the console, and run the example code, to verify that it works on the example data that rgdal provides

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.