[R-sig-Geo] Shapefile Compatibility
Michael Sumner
mdsumner at gmail.com
Mon Jul 25 04:37:44 CEST 2011
As it stands, this is not reproducible code. Can you please replace
the file.choose() calls with the path to the actual .shp file, then we
could download the file and do the same. Also include full details of
exactly which file you download.
In case your R or packages are not up to date, please check that as
well and provide us with your sessionInfo() details.
Cheers, Mike.
On Mon, Jul 25, 2011 at 12:17 PM, Wang, Kevin (SYD)
<kevinwang at kpmg.com.au> wrote:
> Hi all,
>
>
>
> It's probably a [silly] question that's more to do with "Shapefiles"
> than R.
>
>
>
> I was just trying to read in a shape file from
> http://www.abs.gov.au/AUSSTATS/abs@.nsf/DetailsPage/1270.0.55.003July%20
> 2011?OpenDocument
>
>> Suburb10aAust.shp <- readShapePoly(file.choose(),
> proj4string=CRS("+proj=longlat"))
>
> Shapefile type: PolygonM (25), # of Shapes: 8529
>
>
>
> Error in read.shape(filen = fn, verbose = verbose, repair = repair) :
>
> Shapefile type not (yet) handled by this function
>
>
>
> I've also tried:
>
>> Suburb10aAust.shp <- readShapeSpatial(file.choose(),
> proj4string=CRS("+proj=longlat"))
>
> Error in readShapeSpatial(file.choose(), proj4string =
> CRS("+proj=longlat")) :
>
> File type cannot be read
>
>
>
> Does this mean that the source file isn't a proper shapefile?
>
>
>
> Kind regards
>
>
> Kevin Wang
>
> Manager, Government Advisory Services
> Advisory
>
> KPMG
> 10 Shelley Street
> Sydney NSW 2000 Australia
>
>
>
> Tel
>
> +61 2 9335 8282
>
> Fax
>
> +61 2 9335 7001
>
> Mob
>
> 0419 374 580
>
> kevinwang at kpmg.com.au <mailto:kevinwang at kpmg.com.au>
>
>
>
> kpmg.com.au <http://kpmg.com.au>
>
>
>
> Protect the environment: please think before you print
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> 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 at gmail.com
More information about the R-sig-Geo
mailing list