Maybe try not using "NULL" but NULL (which is default anyway, so you could
leave it out):


readOGR(dsn="**/var/www/outputs/**", p4s=NULL, layer="**capa.dbf**")*

I don't know about the asterisks - why are you using those in the second
call with p4s, and not the first, and why is the layer name different?
On Fri, Oct 15, 2010 at 8:51 AM, Ricardo Rodríguez <ricardorodot02@gmail.com
> wrote:

> hi all I'm having problems with a shape file using the package with the
> following statement rgdal.
>
> *readOGR(dsn="/var/www/outputs/",layer="capa.dbf")
>
> * get this error or this error:
>
> *Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding =
> input_field_name_encoding) :  Cannot open layer
> *
>  when I if use:
> *readOGR(dsn="**/var/www/outputs/**", p4s="NULL",layer="**capa.dbf**")*
>
>
> get this:
>
> *OGR data source with driver: ESRI Shapefile
> Source: "/var/www/wpsoutputs/", layer: "centralidad"
> with 461 features and 5 fields
> Feature type: wkbPoint with 2 dimensions
> Error en CRS(p4s) : no arguments in initialization list*
>
> how I can correct these errors??.
>
> thanks for your help.
>
>
> Ricardo Rodríguez
> Univalle
>
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>


-- 
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner@gmail.com

	[[alternative HTML version deleted]]

