-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write to shapefile #15
Conversation
@juliohm I started a discussion in Let me know your thoughts. |
Thank you @ErickChacon for these great additions. Can you explain why our save doesn't cover the ArchGDAL.jl case? If we pass a geotable with geometry column following the GeoInterface.jl shouldn't ArchGDAL.jl provide a similar AG.write function? |
Co-authored-by: Júlio Hoffimann <julio.hoffimann@gmail.com>
Last time I checked it, there was no functionality to write from a table. I needed to manually convert a table to an |
That would be great. Maybe it is another situation where we need to fix the issue upstream in ArchGDAL.jl, adding a write function there before coming back here. This is a good exercise to improve the status of these loaders. |
Just to let you know that there is an attempt at yeesian/ArchGDAL.jl#243 to create an With respect to |
Let's remove the conditional and wait for the Shapefile.jl fix then. I can
merge it here soon and release a new patch.
Em qua., 3 de mai. de 2023 20:40, Dr. Erick A. Chacón Montalván <
***@***.***> escreveu:
… That would be great. Maybe it is another situation where we need to fix
the issue upstream in ArchGDAL.jl, adding a write function there before
coming back here. This is a good exercise to improve the status of these
loaders.
Just to let you know that there is an attempt at yeesian/ArchGDAL.jl#243
<yeesian/ArchGDAL.jl#243> to create an
IFeatureLayer from a Table. Once something like that is merged, we could
easily use ArchGDAL to export to other format types.
With respect to Shapefile.jl, I started an issue, should we accept our
current fix until that issue is solved? Or should we keep the adequate code
(removing the conditional lines) and accepting that an error will be thrown
when attempting to write a Chain and PolyArea to a .shp file?
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3MB7LKGBFA6T2PJLHTXELUE7ANCNFSM6AAAAAAXUWU53Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Do we need more tests for the save functionality? |
I am wondering why our tests are failing only on GitHub Actions. Any clue why the HTTP requests are failing from GADM.jl? |
Yes, I forgot about it. Should I do it similar to the existing test with "geojson"? |
No, I haven't checked it. I will check it. |
That would be great, but feel free to add other tests you have in mind too. |
I've updated the test/Project.toml in GADM.jl to see if the issue was coming from there, and learned that ArchGDAL.jl is not even building there in GitHub Actions: JuliaGeo/GADM.jl#49 I really dislike the whole GDAL experience, so full of issues... |
Ok. Should it be better to make the |
Makes sense to move the writing tests to inside the other test sets. Maybe we can remove the outer "load" test set then? |
Yes, that is what I have in mind. I will do that. |
It builds in Julia 1.6 - ubuntu, but there is still an
|
I added tests for writing to |
test/runtests.jl
Outdated
writedir = joinpath(tempdir(), "geotables") | ||
mkdir(writedir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should write to the datadir that is already defined. Can we avoid creating a new directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #15 +/- ##
==========================================
- Coverage 88.57% 87.39% -1.18%
==========================================
Files 3 3
Lines 70 119 +49
==========================================
+ Hits 62 104 +42
- Misses 8 15 +7
|
Thank you @ErickChacon! ❤️ |
PR to be able to export to shapefile using
Shapefile.jl
and improve geointerface functionality. Whem geometries areMulti
, exporting to.shp
is quite easy withSHP.write(fname, geotable)
, otherwise we need to convert toMulti
and then write.