Re: [Qgis-user] Flatgeobuf in google drive ?

2023-10-06 Thread Bo Victor Thomsen via QGIS-User

Thanks for all the answers.

I made a Google cloud bucket and uploaded my files to that. It is 
(surprisingly🙂) stable and fast ! The only downside is that it takes a 
long time the first time you open the layer, because QGIS will read the 
entire layer to ascertain the number of objects. When you have a layer 
with ca. 6.000.000 objects it takes a looong time. But opening the 
project after that is snappy.


Med venlig hilsen / Best regards

Bo Victor Thomsen

On 06-10-2023 09:33, Ujaval Gandhi via QGIS-User wrote:
Google Drive doesn't allow static file hosting (it used to, but 
stopped around 2015). So you cannot use it to get a file URL that can 
be directly used to get the file contents. You'll need to host the 
file on a static file server or a cloud bucket (Google Cloud Storage 
or AWS s3)


---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com 





On Fri, Oct 6, 2023 at 11:56 AM Adam Nielsen via QGIS-User 
 wrote:


> However, I would like to use Google Drive as a data repository
instead
> of the website,  so I uploaded the same file to (my) Google
Drive in the
> "Shared Data" directory and made it public viewable using a https
> address similar to this:
>
> *https://drive.google.com/file/d/180sZv..
.. a lot of letters and
> numbersUe/view?usp=sharing*
>
> The question: Is there any method so QGIS can access to the .fgb
file
> located in Google Drive using the information in the above https
address ?

I'm no expert on Google Drive but it looks like you're using the URL
for the friendly "view this file" page, rather than the URL that
contains the raw file content itself.

You'll probably have to try to download the file and grab the download
URL it gives you there and use that instead.

Cheers,
Adam.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Flatgeobuf in google drive ?

2023-10-06 Thread Dr . Michael Hälsig via QGIS-User
Another alternative is to use a script at startup of QGIS, which downlaods the 
file with wget to a local drive.

 . 

Kind regards
Michael


Am Freitag, 6. Oktober 2023, 08:26:14 CEST schrieb Adam Nielsen via QGIS-User:
> > However, I would like to use Google Drive as a data repository instead
> > of the website,  so I uploaded the same file to (my) Google Drive in the
> > "Shared Data" directory and made it public viewable using a https
> > address similar to this:
> > 
> > *https://drive.google.com/file/d/180sZv a lot of letters and
> > numbersUe/view?usp=sharing*
> > 
> > The question: Is there any method so QGIS can access to the .fgb file
> > located in Google Drive using the information in the above https address ?
> 
> I'm no expert on Google Drive but it looks like you're using the URL
> for the friendly "view this file" page, rather than the URL that
> contains the raw file content itself.
> 
> You'll probably have to try to download the file and grab the download
> URL it gives you there and use that instead.
> 
> Cheers,
> Adam.
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user




___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Flatgeobuf in google drive ?

2023-10-06 Thread Michael Hälsig via QGIS-User
Another alternative is to use a script at startup of QGIS, which downloads the 
file with wget to a local drive.


Kind regards
Michael
--

Dr. Michael Hälsig
Diefenbachstr. 9
81479 München

Tel.: +49 89 79199563
Mob.:+49 171 333 7558
Am Mittwoch, 4. Oktober 2023, 12:05:29 CEST schrieb Bo Victor Thomsen via 
QGIS-User:
> Hi list -
> 
> I'm experimenting using the flatgeobuf file format with files placed on
> the web.
> 
> My current test setup is a simple web site located at one.com. I
> uploaded the .fgb file to the site and let QGIS access it using the data
> manager:
> 
> That worked as a charm !
> 
> However, I would like to use Google Drive as a data repository instead
> of the website,  so I uploaded the same file to (my) Google Drive in the
> "Shared Data" directory and made it public viewable using a https
> address similar to this:
> 
> *https://drive.google.com/file/d/180sZv a lot of letters and
> numbersUe/view?usp=sharing*
> 
> The question: Is there any method so QGIS can access to the .fgb file
> located in Google Drive using the information in the above https address ?
> 
> --
> Med venlig hilsen / Best regards
> 
> Bo Victor Thomsen




___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Flatgeobuf in google drive ?

2023-10-06 Thread Ujaval Gandhi via QGIS-User
Google Drive doesn't allow static file hosting (it used to, but stopped around
2015). So you cannot use it to get a file URL that can be directly used to get
the file contents. You'll need to host the file on a static file server or a
cloud bucket (Google Cloud Storage or AWS s3)


---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/8aae70f5bd6ada7857cc248f40e8d91737f68592?url=http%3A%2F%2Fwww.spatialthoughts.com&userId=8747767&signature=1b1622ce093fbb24]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Fri, Oct 6, 2023 at 11:56 AM Adam Nielsen via QGIS-User
 wrote:


> > However, I would like to use Google Drive as a data repository instead
> > of the website,  so I uploaded the same file to (my) Google Drive in the
> > "Shared Data" directory and made it public viewable using a https
> > address similar to this:
> >
> > *https://drive.google.com/file/d/180sZv..
> [https://drive.google.com/file/d/180sZv..].. a lot of letters and
> > numbersUe/view?usp=sharing*
> >
> > The question: Is there any method so QGIS can access to the .fgb file
> > located in Google Drive using the information in the above https address ?
> 
> I'm no expert on Google Drive but it looks like you're using the URL
> for the friendly "view this file" page, rather than the URL that
> contains the raw file content itself.
> 
> You'll probably have to try to download the file and grab the download
> URL it gives you there and use that instead.
> 
> Cheers,
> Adam.
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Flatgeobuf in google drive ?

2023-10-05 Thread Adam Nielsen via QGIS-User
> However, I would like to use Google Drive as a data repository instead 
> of the website,  so I uploaded the same file to (my) Google Drive in the 
> "Shared Data" directory and made it public viewable using a https 
> address similar to this:
> 
> *https://drive.google.com/file/d/180sZv a lot of letters and 
> numbersUe/view?usp=sharing*
> 
> The question: Is there any method so QGIS can access to the .fgb file 
> located in Google Drive using the information in the above https address ?

I'm no expert on Google Drive but it looks like you're using the URL
for the friendly "view this file" page, rather than the URL that
contains the raw file content itself.

You'll probably have to try to download the file and grab the download
URL it gives you there and use that instead.

Cheers,
Adam.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Flatgeobuf in google drive ?

2023-10-04 Thread Bo Victor Thomsen via QGIS-User

Hi list -

I'm experimenting using the flatgeobuf file format with files placed on 
the web.


My current test setup is a simple web site located at one.com. I 
uploaded the .fgb file to the site and let QGIS access it using the data 
manager:


That worked as a charm !

However, I would like to use Google Drive as a data repository instead 
of the website,  so I uploaded the same file to (my) Google Drive in the 
"Shared Data" directory and made it public viewable using a https 
address similar to this:


*https://drive.google.com/file/d/180sZv a lot of letters and 
numbersUe/view?usp=sharing*


The question: Is there any method so QGIS can access to the .fgb file 
located in Google Drive using the information in the above https address ?


--
Med venlig hilsen / Best regards

Bo Victor Thomsen
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user