Open sign0 opened 2 years ago
Right now the redis-cli
has the -x
flag for the purpose of reading large values from command line. The -x
flag reads the last argument from STDIN.
For example:
$ redis-cli -p 9851 -x SET cities tempe OBJECT </data/path/to/file.geojson
$ cat /data/path/to/file.geojson | redis-cli -p 9851 -x SET cities tempe OBJECT
$ curl http://example.com/file.geojson | redis-cli -p 9851 -x SET cities tempe OBJECT
Perhaps we can add the -x
to the tile38-cli
too.
Is your feature request related to a problem? Please describe. Can't load some geometries (polygon) from command-line, because the string is too big (E2BIG).
Describe the solution you'd like Something like this :
SET cities tempe FILE /data/path/to/file.geojson
SET cities tempe URL http://example.com/file.geojson
(to avoid depending on the FS of the Tile38 instance)Describe alternatives you've considered N/A.
Additional context N/A.