Lecture 10 use osgearth to add UHD images to the earth

Source: Internet
Author: User

Steps:

1. Capture the texture from Google-use osgdem to generate an intermediate file-and place the intermediate file on osgearth.

We need to use osgdem for texture correction. Because the texture downloaded on Google cannot be used on osgearth even though it carries coordinates, we must use osgdem for projection and then export the texture.

Then composite the texture.

2. use the Alibaba Cloud software to export Google textures (parameter: Export images (export multiple large charts), rows and columns (the number must be a multiple of 2), and save the format (TIF ), export path (019. earth \ builder \ 17). After the download is completed, there are four files (17level_01-01.tif 17level_01-02.tif 17level_02-01.tif 17level_02-02.tif ).

3. create a folder "019. earth \ builder \ data \ image \ 13-105-115-30-35 "uses fastcopy to copy four images in" 2 "to the created folder.

4. CMD enter the folder "019. in the earth \ builder \ data \ image \ 13-105-115-30-35 "folder, enter the command line "osgdem-T 17level_01-01.tif-T 17level_01-02.tif-T 17level_02-01.tif-T 17level_02-02.tif -- geocentric-L 1-O output. ive "re-projection, will generate an intermediate file (temporaryfile_17LEVEL_01-01.tif temporaryfile_17LEVEL_01-02.tif temporaryfile_17LEVEL_02-01.tif temporaryfile_17LEVEL_02-02.tif), and then rename the above four files, there will also be problems in renaming larger files, in this case, you can use the rename software (batch rename experts) and rename it to "1", "2", "3", and "4" in batches. These four files are the required files,

The above is a Google Earth-level texture, and the processing method of Level 17 is the same,

17-level re-projected texture, stored in builder \ data \ image \ 17l-34-35-00005-1095

5. Open builder \ earthfile \ china-simple.earth

Add 12-65 lines of content, "Local HD texture combination", pay attention to the Order (the overwriting relationship is in turn). Level 17 must be put down or the generated file will be overwritten,

Now, the earth file has been written. Next, you need to generate a cache.

Compile the batch processing command and store it in builder \ earthfile \ cmd. bat. cmd. bat is used to generate cache in batches at different levels. Use cmd to enter the builder \ earthfile folder and directly enter osgear_cache

The Help Command for osgear_cache appears. Then, drag cmd. bat into the carriage return and start generating. It will take a long time.

6. After the file is generated, the filecache size is 16.0 MB and contains 805 files.

7. Check the instance. In the CMD window above, "osgear_viewer china-simple.earth"

If you are not satisfied with the definition, the accuracy of 6-10 will be re-generated.

See builder \ earthfile \ cmd6-10.bat

Generate cache again

See builder \ earthfile \ cmd11-13.bat

The final space occupied by filecache is 1.06 GB.

 

Lecture 10 use osgearth to add UHD images to the earth

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.