[Qgis-user] MacOS GeoJSON download from Google bucket

Adam Nielsen a.nielsen at shikadi.net
Fri Mar 8 06:20:11 PST 2024


> Hi Adam, thank you very much for the feedback. I made following experience
> since the post. The same file uploaded (using in both cases Chrome) by
> macOS and then uploaded by windows is resulting in different
> datatype assignments on the Google bucket. That gives the impression that
> the OS of the file upload is setting up the data type (text or /
> binary-download). I will try to find a setting in macOS to setup GeoJSON as
> binary instead of a text file. Is this the right way to go?

This could be one solution, although it might be a bit harder to
control the upload settings (because you are trying to upload GeoJSON
as the "wrong" MIME type) so it may stop other programs from
recognising the files properly as well.

Another solution is to work out how to tell the browser or OS that
"application/geo+json" should be downloaded rather than viewed.

I always had trouble getting this to work properly as it seems to be
handled quite differently for each OS (e.g. with Firefox on Linux the
settings are in the browser but on Windows it uses the same settings as
Windows Explorer).

For years I used a Firefox extension that overrode the standard
settings and forced most files to be downloaded instead of viewed.  You
might just have to Google a bit to see if you can work out which
settings to change to get a given MIME type (like
"application/geo+json") to download instead of open.

Sorry I couldn't be of more help!

Cheers,
Adam.


More information about the QGIS-User mailing list