World Wind Forums

Go Back   World Wind Forums > WorldWind Development (Other) > Image Serving & GIS

Image Serving & GIS Developing and serving World Wind content; other GIS issues.

Reply
 
Thread Tools Display Modes
Old 03-07-2007, 10:53 AM   #1
Matt Fox
Senior Member
 
Join Date: Mar 2005
Posts: 111
Matt Fox
Default Creating image tiles with Global Mapper

Just noticed that next build of Global Mapper will include support for creating WW tiles and XML file automatically. You can get beta at the GM forums if you want to try it out. I just tried it and works great. But I have a couple problems I'm hoping someone can help me with. I loaded a map into Global Mapper, which created all the tiles and the following XML file.

I just drop the XML file into my Config/Earth folder and the map shows up in WW. But I want to put the tiles on a web server. Shouldn't I be able to just change the path in the Permanent Directory to where I uploaded the tiles (http://www.fox-fam.com/WW/LosAngeles1928/)?? Or is that not possible??

Also, the map is not draped along the terrain. Instead it is about 2,000 feet above the terrain. It still follows the terrain, just way above it. Any idea why that's happening?



<?xml version="1.0" encoding="UTF-8"?>
<LayerSet Name="Los Angeles 1928" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet. xsd">
<QuadTileSet ShowAtStartup="true">
<Name>Los Angeles 1928</Name>
<DistanceAboveSurface>0</DistanceAboveSurface>
<BoundingBox>
<North><Value>34.18945312500000000</Value></North>
<South><Value>33.92578125000000000</Value></South>
<West><Value>-118.38867187500000000</Value></West>
<East><Value>-118.12500000000000000</Value></East>
</BoundingBox>
<Opacity>255</Opacity>
<TerrainMapped>true</TerrainMapped>
<RenderStruts>true</RenderStruts>
<ImageAccessor>
<LevelZeroTileSizeDegrees>0.087890625000 00000</LevelZeroTileSizeDegrees>
<NumberLevels>5</NumberLevels>
<TextureSizePixels>512</TextureSizePixels>
<ImageFileExtension>jpg</ImageFileExtension>
<PermanentDirectory>D:\Maps\WW\LosAngele s1928\</PermanentDirectory>
</ImageAccessor>
<TransparentMinValue>0</TransparentMinValue>
<TransparentMaxValue>20</TransparentMaxValue>
</QuadTileSet>
</LayerSet>
Matt Fox is offline   Reply With Quote
Old 03-07-2007, 12:02 PM   #2
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

Hrm.. strange. *downloads the beta to try* Not sure, the XML looks right. Try changing to this: <DistanceAboveSurface>100</DistanceAboveSurface>

And see if anything happens.
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 03-07-2007, 12:29 PM   #3
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Maybe it's the Vertical Exaggeration. Try setting it to 1. Is the map uploaded to that link?
Thanks,
James
James_In_Utah is offline   Reply With Quote
Old 03-07-2007, 12:34 PM   #4
MaurizioZA
Guest
 
Posts: n/a
Default

Please check that terrain elevation value in "position Information" for that particular locality is correct.

I have had a case (Johannesburg) where image is located at correct elevation but "ground" is some 250m below and the only way to fix this has been to put a negative distance above ground.

However this causes all lot of problems when you change vertical exageration coefficient.

I have not been able to replicate this anywhere else

I have been helping Mike developing the WW export. If you have any questions you can find me on the irc
  Reply With Quote
Old 03-07-2007, 01:28 PM   #5
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

Quote:
I just drop the XML file into my Config/Earth folder and the map shows up in WW. But I want to put the tiles on a web server. Shouldn't I be able to just change the path in the Permanent Directory to where I uploaded the tiles (http://www.fox-fam.com/WW/LosAngeles1928/)?? Or is that not possible??
I don't think you can do that at the moment. If you want to serve tiles then you need a tile server like this.

I'm not sure why the images appear so high above the terrain; I'll look at it.
withak is offline   Reply With Quote
Old 03-07-2007, 02:38 PM   #6
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

Can you post an example of the elevation problem to test (xml + just a few tiles)?
withak is offline   Reply With Quote
Old 03-07-2007, 02:48 PM   #7
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

Someone who know php could probably make a simple script that goes in the tile folder alongside the /0, /1, /2, etc. folders to serve tiles. Then instead of PermanentDirectory in your xml you could have WW treat it like any other tile server, with the url being something like http://www.fox-fam.com/WW/LosAngeles...tileserver.php. It would just have to take level, row, and col numbers from the url and return the right tile from the tree. It would only need to handle one data set.

That python script could do it with a modification or two if your server does python.

Last edited by withak; 03-07-2007 at 02:50 PM.
withak is offline   Reply With Quote
Old 03-07-2007, 08:03 PM   #8
Matt Fox
Senior Member
 
Join Date: Mar 2005
Posts: 111
Matt Fox
Default

Quote:
Originally Posted by withak View Post
Can you post an example of the elevation problem to test (xml + just a few tiles)?
Thanks for the tips. I still havent been able to figure out why the map is floating above the surface. here is the xml file and couple layers of tiles (3 megs). If anyone wants to have a go at it.

http://www.fox-fam.com/temp/LosAngeles1928.zip

Matt
Matt Fox is offline   Reply With Quote
Old 03-07-2007, 08:09 PM   #9
Matt Fox
Senior Member
 
Join Date: Mar 2005
Posts: 111
Matt Fox
Default

Quote:
Originally Posted by withak View Post
I don't think you can do that at the moment. If you want to serve tiles then you need a tile server like this.
Thanks for confirming that. At least I know it's not something I'm doing wrong. Seems like it would be easy enough for WWW to substitute a url for a local folder, but I guess nothing is ever as easy as it seems

Setting up a tile server is still a little over my head so I guess I'll have just have to keep waiting for another answer, or just upload the entire tileset which people would then have to store locally. But that's not really an option with a lot of the maps due to the size (some of them would be 2+ GB).
Matt Fox is offline   Reply With Quote
Old 03-07-2007, 08:37 PM   #10
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
bull is an unknown quantity at this point
Default

Cool, I was going to try GM on your stuff myself, we can probably put your files up on our servers, maybe Maurizion could do it, may be easier than me asking Nowak
bull is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong image tiles showing up Len Bug Reports 11 12-17-2007 07:48 PM
Generating tiles from custom large image for WW shaheryar Image Serving & GIS 6 10-16-2006 05:00 PM
Preparing map/imagery tiles for custom image layer gohyongkwang Image Serving & GIS 6 06-16-2006 09:45 AM
Visualising the World Wind Cache and missing tiles canosso Add-ons & Scripts 0 01-20-2005 03:39 PM


All times are GMT +1. The time now is 10:22 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.