Skip to content

Can't read GeoParquet with zstd compression #87

@asinghvi17

Description

@asinghvi17

MWE:

julia> using NaturalEarth, DataFrames, GeoParquet, GeoDataFrames

julia> all_countries = naturalearth("admin_0_countries", 10) |> DataFrame |> x -> select!(x, [:geometry, :ADM0_A3])
258×2 DataFrame
 Row │ geometry         ADM0_A3 
     │ Union           String  
─────┼──────────────────────────
   12D MultiPolygon  IDN
   22D MultiPolygon  MYS
   32D MultiPolygon  CHL
   42D Polygon       BOL
              
 2552D Polygon       ATC
 2562D Polygon       BJN
 2572D Polygon       SER
 2582D Polygon       SCR
                250 rows omitted

julia> GeoParquet.write("test.pq", all_countries, (:geometry,))
"test.pq"

julia> GeoDataFrames.read("test.pq")
ERROR: GDALError (CE_Failure, code 1):
        GetRecordBatchReader() failed: Support for codec 'zstd' not built

Stacktrace:
  [1] maybe_throw()
    @ GDAL ~/.julia/packages/GDAL/R5iZD/src/error.jl:42
  [2] aftercare
    @ ~/.julia/packages/GDAL/R5iZD/src/error.jl:59 [inlined]
  [3] ogr_l_getnextfeature
    @ ~/.julia/packages/GDAL/R5iZD/src/libgdal.jl:23217 [inlined]
  [4] iterate(layer::ArchGDAL.FeatureLayer, state::Int64)
    @ ArchGDAL ~/.julia/dev/ArchGDAL/src/base/iterators.jl:7
  [5] iterate
    @ ~/.julia/dev/ArchGDAL/src/base/iterators.jl:5 [inlined]
  [6] first
    @ ./abstractarray.jl:472 [inlined]
  [7] #15
    @ ~/.julia/dev/GeoDataFrames/src/io.jl:88 [inlined]
  [8] getlayer(::GeoDataFrames.var"#15#16"{ArchGDAL.Dataset}, ::ArchGDAL.Dataset, ::Vararg{Any}; kwargs::@Kwargs{})
    @ ArchGDAL ~/.julia/dev/ArchGDAL/src/context.jl:268
  [9] getlayer
    @ ~/.julia/dev/ArchGDAL/src/context.jl:265 [inlined]
 [10] read(ds::ArchGDAL.Dataset, layer::Int64)
    @ GeoDataFrames ~/.julia/dev/GeoDataFrames/src/io.jl:80
 [11] (::GeoDataFrames.var"#10#11")(ds::ArchGDAL.Dataset)
    @ GeoDataFrames ~/.julia/dev/GeoDataFrames/src/io.jl:62
 [12] read(f::GeoDataFrames.var"#10#11", args::String; kwargs::@Kwargs{})
    @ ArchGDAL ~/.julia/dev/ArchGDAL/src/context.jl:268
 [13] read
    @ ~/.julia/dev/ArchGDAL/src/context.jl:265 [inlined]
 [14] read(fn::String; kwargs::@Kwargs{})
    @ GeoDataFrames ~/.julia/dev/GeoDataFrames/src/io.jl:58
 [15] read(fn::String)
    @ GeoDataFrames ~/.julia/dev/GeoDataFrames/src/io.jl:52
 [16] top-level scope
    @ REPL[48]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions