-2

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

8
  • 1
    There's a Google Satellite Tile Server in my "XYZ Tiles" dropdown in my QGIS browser. Its not a WMS, but is that good enough for you? I think its the imagery used for google maps rather than whatever google earth uses...
    – Spacedman
    Jan 23, 2021 at 15:57
  • openstreetmap is not enough, I need to get updated satellite images under vector data. Jan 23, 2021 at 16:00
  • 4
    What do you mean "under vector data" - satellite images are raster data, not vector. What do you mean "updated"? How recent? Daily? Please edit your question for clarity.
    – Spacedman
    Jan 23, 2021 at 16:06
  • 2
    Why did you say "openstreetmap"? Was there a deleted comment? I didn't say it.
    – Spacedman
    Jan 23, 2021 at 16:06
  • I need to see the WMS service as a raster image under the vector layers. In QGis, only openstreetmap comes in XYZ tiles. My goal is to find a constantly updated satellite imaging service. Jan 23, 2021 at 16:13

1 Answer 1

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

6
  • 1
    Thank you. This code is sufficient. Jan 23, 2021 at 17:10
  • 2
    You're welcome. I appreciate that you mark as accepted this answer.
    – xunilk
    Jan 23, 2021 at 17:14
  • I am using the same google's satellite base map and the latest revision of mosaic is from 2009 January 1st is there a newer version. Jan 23, 2021 at 17:15
  • For this reason I put "one of current satellite images" in my answer (between quotation marks). Thanks for your advice.
    – xunilk
    Jan 23, 2021 at 17:18
  • Can we do the same in Arcgis? Jan 23, 2021 at 17:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.