I’m trying to complete what I thought would be a relatively simple task (although I am new to Julia and coding in general) with GDAL, specifically converting a .shp to a GeoPackage using ogr2ogr.
I’ve followed the available documentation here. Specifically the example:
# convert simple features data between file formats GDAL.ogr2ogr_path() do ogr2ogr run(`$ogr2ogr -f FlatGeobuf output.fgb input.shp`) end
My current script is:
using GDAL using SQLite GDAL.ogr2ogr_path() do ogr2ogr run('$ogr2ogr -f GPKG output.gpkg input.shp') end
Which throws an error:
ERROR: syntax: character literal contains multiple characters
I’ve tested the package installation with no issues. Been stumped for a little while. Any help would be greatly appreciated.