hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

Let users select key as attribute on their output #173

Closed kshitijrajsharma closed 2 years ago

kshitijrajsharma commented 2 years ago

Hot export currently gives particular key value output as attribute table embed in GIS output format , Providing user tags in plain format may not be easy way for analysis to GIS users and hence it will be useful to let user select what attribute they want in output image Which will make API rich in terms of feature , Goal is to accept any key value pair they want , which will be optional if not provided we can give default output . Which can be further enhanced as we purpose a proper structure for output ! Relates to :

kshitijrajsharma commented 2 years ago

This is how attribute table looks like right now image And lets say user is only concerned with extracting building name in attribute than it will look like image No. of features remains same , just the attribute table will be transferred as a column and value from tags:jsonb structure . This will be useful for the GIS Professionals , In hot export tool image This feature means we will have output features attribute in 7 column , Like this image We will be supporting more , for eg if user doesn't supplies anything we will be delivering everything it has as a tags column , if he specifies we will be giving them as a column value in properties , In that way we will support what export tools provide and also we will be providing full list of tags of each feature in default . This is how API Mapping will look like test cc: @ramyaragupathy @JorgeMartinezG @omranlm @robsavoye