Satellite Imagery data and Heightfield

classic Classic list List threaded Threaded
7 messages Options
Nelson A. Cysneros Nelson A. Cysneros
Reply | Threaded
Open this post in threaded view
|

Satellite Imagery data and Heightfield

I would like to use Satellite Imagery data and heightfield data at the same time.  I tried using the following earth file but it did not display any heightfield data.   Can this be done?  Thanks in advance

<map name="Sat and Heightfield test" type="geocentric">
       
            <image name="yahoo aerial" driver="yahoo">
                <dataset>satellite</dataset>
            </image>
           
           
            <north_cap_color>25 68 123 255</north_cap_color>
            <south_cap_color>255 255 255 255</south_cap_color>
       
            <heightfield name="WorldWind DEM" driver="wms">
                <url>http://onearth.jpl.nasa.gov/wms.cgi</url>
                <layers>worldwind_dem</layers>
                <style>feet_short_int</style>                <format>tiff</format>
                <tile_size>32</tile_size>
                <elevation_unit>ft</elevation_unit>
            </heightfield>
           
            <vertical_scale>20</vertical_scale>
           
            <skirt_ratio>0.01</skirt_ratio>
           
        </map>
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

Hi Nelson,

One caveat in osgEarth right now is that the datasources have to be in the same coordinate system (geodetic, spherical mercator, or some type of projected srs).

The GDAL plugin is one exception though.  It will automatically use GDAL's reprojection capabilities to warp the dataset to the maps coordinate system.  This means that you can do things like warp UTM datasets for use on a geocentric globe.

The yahooo maps datasource is spherical mercator while the worldwind dem is geodetic, so there is probably an error message on your console saying that WorldWind DEM was removed b/c it was incompatible.

Try replacing the yahoo dataset with a geodetic source like the i3 landsat like so:
    <image name="i3 Landsat Composite" driver="wms">
        <url>http://hypercube.telascience.org/cgi-bin/landsat7</url>
        <layers>landsat7</layers>
        <format>jpeg</format>
        <tile_size>256</tile_size>
    </image>

Thanks!

Jason


On Wed, Mar 4, 2009 at 2:11 PM, Nelson A. Cysneros (via Nabble) <[hidden email]> wrote:
I would like to use Satellite Imagery data and heightfield data at the same time.  I tried using the following earth file but it did not display any heightfield data.   Can this be done?  Thanks in advance

<map name="Sat and Heightfield test" type="geocentric">
       
            <image name="yahoo aerial" driver="yahoo">
                <dataset>satellite</dataset>
            </image>
           
            <!-- Matching cap colors -->
            <north_cap_color>25 68 123 255</north_cap_color>
            <south_cap_color>255 255 255 255</south_cap_color>
       
            <heightfield name="WorldWind DEM" driver="wms">
                <url>http://onearth.jpl.nasa.gov/wms.cgi</url>
                <layers>worldwind_dem</layers>
                <style>feet_short_int</style>
                <format>tiff</format>
                <tile_size>32</tile_size>
                <elevation_unit>ft</elevation_unit>
            </heightfield>
           
            <vertical_scale>20</vertical_scale>
           
            <skirt_ratio>0.01</skirt_ratio>
           
        </map>



View message @ http://n2.nabble.com/Satellite-Imagery-data-and-Heightfield-tp2424872p2424872.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

In reply to this post by Nelson A. Cysneros
Nelson,

You're trying to mix data sources with different profiles. Yahoo! uses a "global-mercator" profile while the NASA JPL data in "global-geodetic". osgEarth does not currently support mixing the two.

There's a little information about these profiles on the wiki:
http://wush.net/trac/osgearth/wiki/Concepts#Profiles

HTH. Glenn
Glenn Waldron / Pelican Mapping
Jorge Morales Jorge Morales
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

In reply to this post by Nelson A. Cysneros
Is there a way to know if the combination will work? I don't see any information about the reference systems in the descriptions.

Actually my questions opens in more:

1. Is there a way to know?
2. If not, in the future, would it be possible to know?
3. or will it support any combination of CS?

thank you

Jorge Morales
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

Hi Jorge,

osgEarth does not currently do any data reprojection (with the exception of the GDAL plugin).  So, all of your datasources need to be in the same CS.

osgEarth currently supports data in geographic WGS1984 (EPSG:4326), spherical mercator (EPSG:900913) for geocentric globe displays and will support any combination of projected datasources (UTM, State Plane, etc).

The GDAL plugin is a special case in that it uses GDAL to reproject the dataset on the fly if necessary, allowing to do things like look at UTM imagery on a geocentric globe.

Thanks!

Jason

On Tue, Mar 10, 2009 at 12:05 PM, Jorge Morales (via Nabble) - No Reply <[hidden email]> wrote:
Is there a way to know if the combination will work? I don't see any information about the reference systems in the descriptions.

Actually my questions opens in more:

1. Is there a way to know?
2. If not, in the future, would it be possible to know?
3. or will it support any combination of CS?

thank you

Jorge Morales


View message @ http://n2.nabble.com/Satellite-Imagery-data-and-Heightfield-tp2424872p2456075.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.


Jorge Morales Jorge Morales
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

Sorry but I don't understand. In the case of this original question, when the user tried to combine yahoo image with nasa elevation, how do you know why it failed? how did you know the CS for those sources?
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|

Re: Satellite Imagery data and Heightfield

Hi Jorge,

I know that the Yahoo dataset is in the spherical mercator CS and the nasa elevation is in a geographic SRS.

Documentation on each of the drivers is located at: http://wush.net/trac/osgearth/wiki/TileSourcePlugins

If you look at each individual driver, it will tell what CS it supports.

Thanks!

Jason

On Tue, Mar 10, 2009 at 1:20 PM, Jorge Morales (via Nabble) - No Reply <[hidden email]> wrote:
Sorry but I don't understand. In the case of this original question, when the user tried to combine yahoo image with nasa elevation, how do you know why it failed? how did you know the CS for those sources?


View message @ http://n2.nabble.com/Satellite-Imagery-data-and-Heightfield-tp2424872p2456607.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.