tile38 icon indicating copy to clipboard operation
tile38 copied to clipboard

E2BIG

Open sign0 opened this issue 4 years ago • 1 comments

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
  • and 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.

sign0 avatar Feb 20 '22 12:02 sign0

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.

tidwall avatar Feb 20 '22 16:02 tidwall