yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
141 stars 27 forks source link

convert any geometries to gdal types in geometry methods #366

Open rafaqz opened 1 year ago

rafaqz commented 1 year ago

Add methods to operations like disjoint, crosses etc to accept arbitrary GeoInterface.jl compatible geometries and convert them to ArchGDAL geometries with the shared to_gdal method and geointerface_geomtype.

The returned values are always still ArchGDAL geometries.

We don't use convert(ArchGDAL, geom) here as it has a small overhead to call a pacage method, which is unnecessary to pay locally - especially for points of anything there are a lot of.

Needs tests, and https://github.com/JuliaGeo/GeoInterface.jl/pull/78

rafaqz commented 1 year ago

Yeah im slowly working through them