-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed💎 Bounty💰 Rewarded
Description
Issue
The GeoParquet specification does not adhere to OGC WKT-CRS standards, and instead relies on PROJJSON strings.
Therefore, we need to convert from our native CoordRefSystems.wkt2
strings added in JuliaEarth/CoordRefSystems.jl#245 to the PROJJSON encoding in order to save data in GeoParquet format.
Bounty
Our current implementation, which can be found here, relies on external calls to GDAL:
function projjsonstring(code; multiline=false)
spref = spatialref(code)
wktptr = Ref{Cstring}()
options = ["MULTILINE=$(multiline ? "YES" : "NO")"]
GDAL.osrexporttoprojjson(spref, wktptr, options)
unsafe_string(wktptr[])
end
We need to rewrite this function in terms of CoordRefSystems.wkt2(code)
, parsing the resulting string into a valid PROJJSON.
A Julia-native solution that
- satisfies the PROJJSON schema
- matches the GDAL results to the best extent possible
- adheres to our code style and is tested with most relevant CRS codes
will get a /bounty $250.
Tips
- The opposite operation from PROJSON to WKT2 has been implemented in different languages. One example implementation in Python is https://github.com/rouault/projjson_to_wkt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed💎 Bounty💰 Rewarded