I have loaded a shapefile as so:
bldg = gmtread(joinpath(directory, "bldgs_preprocs_E4.shp"))
Vector{GMTdataset} with 7191562 segments
Show first segment. To see other segments just type its element number. E.g. D[7]
Attributes: Dict("pga" => "0.379999995231628", "su_id" => "26107.000000000000000", "construc_1" => "{\"C99/LFINF+DNO/HBET:1,3\": 307.7814279, \"C99/LFINF+DNO/HBET:4,7\": 134.7351977, \"MUR+CL99/HBET:1,3\": 88.81801297}", "constructi" => "{\"C99/LFINF+DNO/HBET:1,3\": 3, \"C99/LFINF+DNO/HBET:4,7\": 1, \"MUR+CL99/HBET:1,3\": 1}", "osm_id" => "30962401.000000000000000", "E4" => "", "mean_FlowR" => "2.176470588235294", "std_FlowR" => "1.975958442049296")
BoundingBox: [338322.16972057807, 338343.0346088757, 3.0673524229467134e6, 3.0673803243858125e6]
PROJ: +proj=utm +zone=45 +datum=WGS84 +units=m +no_defs
WKT: PROJCS["WGS 84 / UTM zone 45N",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",87],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1]]
5Γ2 GMTdataset{Float64, 2}
Row β X Y
β Float64 Float64
ββββββΌβββββββββββββββββββββββββββ
1 β 3.38322e5 3.06735e6
2 β 3.38325e5 3.06738e6
3 β 338343.0 3.06738e6
4 β 3.3834e5 3.06735e6
5 β 3.38322e5 3.06735e6
Vector{GMTdataset} with 7191562 segments
Show first segment. To see other segments just type its element number. E.g. D[7]
I have two questions:
How can I access the information contained on the shapefile as a dataframe?
How can I create a GMTdataset from a dataframe with a geometry column?
Thank you for your help!