Skip to content
Discussion options

You must be logged in to vote

Hi !

You don't need a custom component for this, just use the built it download or json+http_header components:

select
    'http_header' as component,
    format('attachment; filename="plot_id_%s.geojson"', $plot_id) as "Content-Disposition";
select 'json' as component,
    json_build_object(
      'type', 'Feature',
      ...
    ) as contents;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SebastiendOrnano
Comment options

@lovasoa
Comment options

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