Skip to content

[help] How to use shapefiles via gadm with targets #1240

Closed Answered by brownag
njtierney asked this question in Help
Discussion options

You must be logged in to vote

I think the main issue with a shapefile is that it is actually multiple files.

tar_format(..., write=...) argument requires that The function need not return a value, but the file written to path must be a single file, and it cannot be a directory.

So, perhaps the simplest solution would be to use a different vector storage format that is only a single file. (I personally like .gpkg/GeoPackage for this). If each GeoPackage contains only one layer it is functionally equivalent to a shapefile without limitations of DBF etc.

If you want to make shapefile work, or any target that might constitute multiple related files, can use a trick I suggested in side discussion of #809 (reply in thread)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@njtierney
Comment options

@brownag
Comment options

@brownag
Comment options

@njtierney
Comment options

@njtierney
Comment options

Answer selected by njtierney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants