-
Notifications
You must be signed in to change notification settings - Fork 32
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
Data service: better detect file formats from WFS outputs #786
Conversation
The generated links now have a 'download' type. Also the access protocol is now allowed on the download link model as well, which makes sense if we want to know what protocol the links goes through
… output, add GML and DXF formats The WFS services sometimes offer otuput formats like SHAPE-ZIP or GML2, and we need a more reliable way to infer a file format from them Use this in the data service to make sure we output known mime types from WFS and ESRI Rest
Affected libs:
|
@@ -45,7 +45,7 @@ interface WfsDownloadUrls { | |||
export class DataService { | |||
constructor(private proxy: ProxyService) {} | |||
|
|||
private getDownloadUrlsFromWfs( | |||
getDownloadUrlsFromWfs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were made to avoid TS errors in the corresponding test file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks ! 🙂
Description
This PR reworks the logic for inferring file formats from a list of output types provided by a WFS endpoints. WFS will typically advertise these kinds of formats:
With this PR, formats such as DXF, Shapefile and GML will now be recognized and show up properly in the Datahub download list.
Note that the DXF and GML formats were added to the list of recognized formats in the process.
Architectural changes
none
Screenshots
Quality Assurance Checklist
breaking change
labelbackport <release branch>
labelThis work is sponsored by Géo2France.