You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# for convenience I've temporarily put the files here
fn = "02_rgi60_WesternCanadaUS"
url2shp = "https://its-live-data.s3.amazonaws.com/test/$fn.zip"
Downloads.download(url2shp, "$fn.zip")
run(`unzip $fn`)
Load polygons
glacier = Shapefile.Handle("$fn/$fn.shp")
Find extents
here's where it gets interesting
calculate extents on raw file
@time GeoInterface.extent(glacier)
0.000008 seconds (1 allocation:64 bytes)
Extent(X = (-133.73235307, -105.60821024699995), Y = (36.38625038500004, 65.15664046000005), Z = (0.0, 0.0))
I guess this is just grabbing the extents from the header... that's the only place I can see extent info in glacier .
3.5s seems like a very long time for this operation. I suspect that the Extents if being calculated on each feature then the union of extents is being taken.. if this is the case it would probably be better to load all feature nodes in as points then take the extrema once.
The text was updated successfully, but these errors were encountered:
Load packages
Download file
Load polygons
Find extents
here's where it gets interesting
calculate extents on raw file
I guess this is just grabbing the extents from the header... that's the only place I can see extent info in
glacier
.now retroject and get extents [requires https://github.com/JuliaGeo/Proj.jl/pull/97]
3.5s seems like a very long time for this operation. I suspect that the Extents if being calculated on each feature then the union of extents is being taken.. if this is the case it would probably be better to load all feature nodes in as points then take the extrema once.
The text was updated successfully, but these errors were encountered: