Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2BIG #634

Open
sign0 opened this issue Feb 20, 2022 · 1 comment
Open

E2BIG #634

sign0 opened this issue Feb 20, 2022 · 1 comment

Comments

@sign0
Copy link

sign0 commented Feb 20, 2022

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.

@tidwall
Copy link
Owner

tidwall commented Feb 20, 2022

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 added a commit that referenced this issue Apr 12, 2022
The new -x flag allows for passing large objects from STDIN.

  tile38-cli -x SET cities tempe OBJECT </path/to/file.geojson

See #634 for more information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants