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
I was following the test/test_gdal_tutorials.jl script, the tutorial lead to shapefiles without any data.
AG.create("$pointshapefile.shp", "ESRI Shapefile") do dataset
...
featuredefn = AG.getlayerdefn(layer)
@test AG.getname(featuredefn) =="point_out"
AG.createfeature(featuredefn) do feature # This doesn't write any data out#AG.createfeature(layer) do feature # I ended with this, which works
AG.setfield!(feature, AG.getfieldindex(feature, "Name"), "myname")
...end
It doesn't error out because it is defined in context.jl line 52. So I am not sure if this is a bug or user error.
yeah it should have been called on the layer in that test. Hence the bug label
More generally, I can see how it will be confusing to users, and we should add documentation to distinguish between creating "floating" features, versus features that are "owned" by layers.
I was following the
test/test_gdal_tutorials.jl
script, the tutorial lead to shapefiles without any data.It doesn't error out because it is defined in
context.jl
line 52. So I am not sure if this is a bug or user error.References:
ArchGDAL.jl/src/context.jl
Lines 52 to 61 in 0dbf3f7
ArchGDAL.jl/test/test_gdal_tutorials.jl
Lines 110 to 116 in 0dbf3f7
The text was updated successfully, but these errors were encountered: