-2

Is there a Google Earth free WMS service? Can we add the QGIS WMS service and see the current satellite images?

Uditha Herath
  • 703
  • 5
  • 16
kemalferyater
  • 97
  • 1
  • 1
  • 7

1 Answers1

3

I know there is a plugin available but I lost it (I don't remember the name) in one of my updates of QGIS (I have to recover it). However, you can run a following little script in Python Console to do that.

import requests
service_url = "https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}"
service_uri = "type=xyz&zmin=0&zmax=21&url="+requests.utils.quote(service_url)
tms_layer = iface.addRasterLayer(service_uri, "Google Sat", "wms")

First, I loaded your named "under vector data" (in my case one of my vector layers). It looks as follows:

enter image description here

Afterward, I opened my Python Console and I copy/paste above code for getting result of following image with "one of current satellite images". I hope this helps.

enter image description here

xunilk
  • 29,891
  • 4
  • 41
  • 80