-
Notifications
You must be signed in to change notification settings - Fork 26
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
Simple conversion to Meshes.jl #378
Comments
(oops I missed that you said it just hangs... so there is no output at all? Try Ctrl-C and see what it was doing when you killed it. Also try just doing But these days we usually use This works with GeometryBasics.jl, GeoInterface.jl, LibGEOS.jl, ArchGDAL.jl as sinks, and those plus Shapefile.jl, GeoJSON.jl, KML.jl and some others as sources (you can just write with those directly from any type so converting is redundant). Meshes.jl has not implemented this interface as far as I know, and doesnt even depend on GeoInterface.jl. I think there is another package that implements some of it somehow for it though. So this is not a problem with ArchGDAL.jl, but for Meshes.jl via GeoInterface.jl. |
My MWE is: import ArchGDAL as AG
import GeoInterface as GI
using Meshes
mypoint = AG.createpoint(1.0, 5.0)
function topoint(geom)
coords = GI.coordinates(geom)
Meshes.Point(coords)
end
topoint(mypoint) Unfortunately, I can not show the full stack trace of the error because julia hangs for ever. and Ctrl-C does not work, so I am forced to kill Julia. This same code work with other packages like I am trying to check this basic function to help with the GeoInterface implementation for I want to use something like I will continue checking what is the root of the problem, but happy to receive any suggestion. |
Mostly they don't call coordinates? Im going through and changing that everywhere because its slow. (But yes ArchGDAL does, and that's not great) You need to try it without the Running two functions together like that isnt possible to debug if you cant get a stack trace. Break it into smaller peices. |
I am closing this issue because it can be solved by making a constructor of |
I want to convert
ArchGDAL
geometries to other types likeMeshes.jl
usingGeoInterface.jl
.If I try to do it directly, it works without problems:
However it does not work if I try to do it using a custom function (it just hangs).
Can anyone provide an insight of why it happens?
The text was updated successfully, but these errors were encountered: