Configuring QWC2 Web Client in production environment and displaying custom map served by QGIS Server - gis

I have successfully set up a QGIS Server and can access the default world map when I go to the corresponding url. I also set up qwc2 using the qwc2-demo-app repo and I can access the default map from myapp.com/qwc
I would like to display the map that the QGIS Server is serving from the qwc2 web client. I have tried to change the url parameter of the themes.json to the url of the QGIS Server URL but it is still displaying the default map published with the qwc2 demo app.
How do I make this web client app serve the QGIS Server map?

Related

How to add a ArcGISMapServer to QGIS in QGIS 3.20.2

I am trying to add a ArcGISMapServer connection to my QGIS workspace in QGIS 3.20.2. The option for adding a this connection does not appear in the data source manager or in the add layers option. There is now only an option for adding an ArcGIS Rest Server:
QGIS 3.20.2 View
In previous versions there was an in built option for adding these connections:
Previous QGIS versions option
Is there a new method of adding in ArcGIS Map Server connections in more recent versions of QGIS?
In the Browser, you can find the "ArcGIS REST Servers" Option. Right click to add a server. Then you can
Then you can add a server name and the URL to access the layers. Provide authentication, if needed:
ArcGIS Map Server and ArcGIS Rest Server are the same thing. You can add your ArcGIS Server maps from new ArcGIS Rest Server section.

When does the AWS .NET SDK load credential files? Is it on startup or on initializing client or...?

As my title states, we are using the AWS .NET SDK and on our web.config configured a profile that points to a credentials file(see: https://docs.aws.amazon.com/sdk-for-net/v2/developer-guide/net-dg-config-creds.html using credentials file) on the disk(so out of the source code). This seems to work fine but we are rotating these keys every x period so we need to change the keys within the file. My question is does de AWS .NET SDK notice that the file is changed and automatically load the new credentials or when does it actually load? In other words, if we change the credentials in this file do we need to do additional steps for the application to actually use them?
What I tried now is start up the application locally, change the credentials to a faulty one and calls are still going thru without a problem. Next, I stopped my application and rebuilded in with the same file having faulty credentials. After doing this the application is still able to make correct calls so I'm wondering how this works as if it is falling back on credentials that did work. Or maybe I just didn't test right.
We are using .net framework 4.6.2 application using the aws sdk version 3.3
Also what i forgot to mention is that for each request we initialize the client like this:
using (AmazonCognitoIdentityProviderClient client = new AmazonCognitoIdentityProviderClient(regionEndpoint))
Short answer is creating a client like that will cause the credentials to be read from the credentials file when the first client is created.
The longer answer is when you create without credentials the client uses the FallbackCredentialsFactory class to find credentials either through the credentials file or environment like EC2 instance metadata. The FallbackCredentialsFactory has a static instance of Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain which is what gets the credentials for a profile.
If you want to something different you could have your code create an instance of CredentialProfileStoreChain before creating a client and use that to get the credentials and pass those credentials into the client.

AWS Appstream upload application to default Images

Can we upload and add our applications to already existing sample Images available on AWS Appstream2.0?
It gives the option of creating a new Image through Image Builder and then gives the steps ahead. But is it not possible that we upload our application to Images available by AWS?
You can deploy your application on the app stream using an interactive method or by uploading the application on s3.
The wizard that you use depends on your browser and application installer.
The 10 step process to deploy custom application on the App stream is detailed here.

Google Earth Enterprise Portal 5.0 Accessible via localhost only

Good Morning. I have downloaded and installed GE Enterprise portal v5. When I start the application, it automatically launches the browser and sends me to http://localhost:9335. It loads just fine and I am able to view the image and polygon. I then close the server and open the portable.cfg and added the following line: accept_all_requests True, which us supposed to allow others to view and use the published globes and services from other machines. I then restart the application. When I try and navigate to my portal instance via another machine or via the named machine name http://9335 I get page not found. I have tried changing the ports, disabling my local firewall and HIPs with no luck. Are you supposed to be able to hit an instance of portal from a url other than localhost?
Thanks.

Could FTP be used to host KML for overlay via maps API?

The Google Maps API states that the KML(or KMZ) file can be hosted on a publicly accessible web server. This does infer that the document should be available via HTTP(S), but the protocol is not actually stated. Can you please confirm whether the protocol must be HTTP / HTTPS, or could FTP be used as an interim option during the prototype.
Cant confirm but if they say that your KMZ can be hosted on a publicly accessible web server then it mean HTTP(S) and not FTP. Can you setup your FTP location to also be accessed via a URL?
If you enter a ftp url into the maps search box
We could not understand the location ftp://test...
suggests they dont understand ftp urls. If it understood the url, it would be a 'cant read file at ... '
Google Maps and the API use the same system for KML rendering.