Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8642561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:48:29+00:00 2026-06-12T11:48:29+00:00

In Google Earth you can use the Sunlight layer to view shadows cast by

  • 0

In Google Earth you can use the “Sunlight” layer to view shadows cast by the terrain at any given DateTime: https://i.stack.imgur.com/YFGMj.png

However, I have not been able to find any way to access the sunlight/luminosity/shadow/etc values from the API.

I’m looking for a way to supply Lat, Long and DateTime to determine if an area is in sunlight (taking terrain shadows in to account, there are countless services that will provide simple Sunrise and Sunset times, but these do not consider terrain). This can be done manually with Google Earth, but I’m looking for a programatic method.

Thanks for any thoughts, ideas, leads…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:48:30+00:00Added an answer on June 12, 2026 at 11:48 am

    I am not sure about determining whether an AOI in in the sun or shade at a certain time, however you can set the SUN to be on or off in the API by using

    GESun.setVisibility

    Edit:

    Using the GE-plugin, create a LookAt with your desired AOI lat/long where the view is directly above looking straight down. Depending on the size of you actual AOI I would keep the view as low to the ground as possible.

    Then capture a screenshot/image – I do not think this is possible through GE (if anyone knows a way I would like to find out), so maybe use javascript to take it – I found this Q on SO that provides some insight.

    Take a screenshot with GESun.setVisibility set ON and then another with it OFF

    Compare the two images for darkness/lightness or something and determine if your AOI is in the shade or not. You might find it better to surround your AOI in a Polygon of some sort in order to help your program distinguish it from the rest of the image – depending on the height the LookAt was taken from etc etc….

    I do not have any ideas on how to compare the images, but yet again another search on SO resulted in this (I would presume finding the values of COLOR_BLACK in PHP ImageMagick) and this (Color Buckets idea).
    Depending on your method of choice, it might help to alter your images to black/white before doing the comparing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a Windows Forms app making use of Google Earth where users can
Can Google Earth web plugin support allowing a user to: 1. Use checkboxes to
I am trying to use the Google Earth API to create a simple view
How can i create .KMZ (google earth file format) programmatically? .KMZ contains a .KML
In google earth there is a nice feature where I can install a kml
I'm making some Google earth web apps at the moment that use the ge
I am writing a WinForms application with a WebBrowser control. I use Google Earth
May be in a UIWebView, can you show the interactive Globe of Google Earth
I'm using the google-maps-utility-library-v3 to incorporate a Google Earth API view to a Google
I noticed that we can see Google Earth in our browser on maps.google.com now,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.