yeesian / maptime-boston-julia

1 stars 0 forks source link

Couldn't read in Shape file #1

Open ZoeLu90 opened 6 years ago

ZoeLu90 commented 6 years ago

Hi:

I'm following the example of geospatial processing with Julia https://github.com/yeesian/maptime-boston-julia/blob/gh-pages/maptimeboston-julia.ipynb, but I have an error message when I read in the shape file: neighborhoods = GD.read("C:/Users/*********/data/Boston_Neighborhoods.shp") The error message is:

MethodError: Cannot convert an object of type ArchGDAL.IGeometry to an object of type GeoDataFrames.Geometry This may have arisen from a call to the constructor GeoDataFrames.Geometry(...), since type constructors fall back to convert methods.>

What might cause this issue? By the way, are there any other ways to read in shape file in Julia, especially using basemap?

yeesian commented 6 years ago

Hi, GeoDataFrames.jl has not been updated with the latest changes to ArchGDAL.jl.

In the meantime, to read and plot a shapefile in julia, you might want to look at the example in https://github.com/JuliaGeo/GeoInterface.jl/pull/12.