Global Mapper 15
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Global Mapper User
    Join Date
    Oct 2009
    Location
    Newport Beach, California
    Posts
    9

    Default export web formats: world wind java

    I am not sure if this has been brought up before, but I think it would be a nice idea if you could export a world wind java xml file.

    There is already a check box to convert tiles into world wind java format, so why not go the distance and just have a full 'export to world wind java' option complete with the accompanying wwj formatted xml file.

  2. #2
    Administrator
    Join Date
    Jun 2007
    Posts
    16,449

    Default

    The WorldWind tile export already creates a XML file that you can place right in the Config/Earth folder to load the source into WorldWind. Is the .wwj file something different than what is already created?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

  3. #3
    Global Mapper User
    Join Date
    Oct 2009
    Location
    Newport Beach, California
    Posts
    9

    Default

    Thanks for the quick reply.

    Yes, they are different. The xml file created by global mapper is specific to the World Wind C# version. World Wind Java uses a different set of tags.

    Here is a sample WWC# xml config file.
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <LayerSet Name="BMNG" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet.xsd">
        <QuadTileSet ShowAtStartup="true">
            <Name>BMNG</Name>
            <DistanceAboveSurface>0</DistanceAboveSurface>
            <BoundingBox>
                <North><Value>135.00000000000000000</Value></North>
                <South><Value>-90.00000000000000000</Value></South>
                <West><Value>-180.00000000000000000</Value></West>
                <East><Value>180.00000000000000000</Value></East>
            </BoundingBox>
            <Opacity>255</Opacity>
            <TerrainMapped>true</TerrainMapped>
            <RenderStruts>true</RenderStruts>
            <ImageAccessor>
                <LevelZeroTileSizeDegrees>45.00000000000000000</LevelZeroTileSizeDegrees>
                <NumberLevels>6</NumberLevels>
                <TextureSizePixels>512</TextureSizePixels>
                <ImageFileExtension>jpg</ImageFileExtension>
                <PermanentDirectory>E:\WebSites\tileserver\Tiles\BMNG\</PermanentDirectory>
            </ImageAccessor>
            <TransparentMinValue>0</TransparentMinValue>
            <TransparentMaxValue>20</TransparentMaxValue>
        </QuadTileSet>
    </LayerSet>
    And here is the same dataset in WWJ xml.
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Layer layerType="TiledImageLayer" version="1">
        <DisplayName>BMNG</DisplayName>
        <DatasetName>BMNG</DatasetName>
        <DataCacheName>Earth/BMNG</DataCacheName>
        <Service serviceName="WWTileService">
            <URL>http://sometileserver.com/default.aspx</URL>
        </Service>
        <FormatSuffix>.jpg</FormatSuffix>
        <NumLevels count="6" numEmpty="0"/>
        <Sector>
            <SouthWest>
              <LatLon latitude="-90.0" longitude="-180.0" units="degrees"/>
            </SouthWest>
            <NorthEast>
              <LatLon latitude="90.0" longitude="180.0" units="degrees"/>
            </NorthEast>
        </Sector>
        <TileOrigin>
            <LatLon latitude="-90.0" longitude="-180.0" units="degrees"/>
        </TileOrigin>
        <TileSize>
            <Dimension height="512" width="512"/>
        </TileSize>
        <LevelZeroTileDelta>
            <LatLon latitude="45.0" longitude="45.0" units="degrees"/>
        </LevelZeroTileDelta>
        <AvailableImageFormats>
            <ImageFormat>image/jpg</ImageFormat>
        </AvailableImageFormats>
    </Layer>
    As you can see, there are notable syntax differences.

  4. #4
    Administrator
    Join Date
    Jun 2007
    Posts
    16,449

    Default

    Ok I'll look at updated the WorldWind export to generate the WWJ version of the XML file when WWJ filenames are used. I wonder why they didn't use the same XML format just for WWJ versions written in different languages.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

  5. #5
    Global Mapper User
    Join Date
    Oct 2009
    Location
    Newport Beach, California
    Posts
    9

    Default

    If you aren't aware, the world wind C# application has long ceased and is no longer in development. The java version has since become the 'standard' world wind.

    At one point, both WWC# and WWJ were developed alongside one another. I can only assume that at one point they did indeed use the same XML format, until C# development stopped.

    If this does indeed make it into the application, it will save me and others lots of time by not having to convert the xml files!

    Thanks for listening!

  6. #6
    Administrator
    Join Date
    Jun 2007
    Posts
    16,449

    Default

    Are you certain that the sample WWJ file covers the same area as the C# XML file? Note in particular the northern bounding box value is 135 in the C# value (an invalid latitude value of course) while in the WWJ version it is 90.0. Also, for the <Service> <URL> tag, should that just be filled in with the default value that you have in your sample for the user to change later?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

  7. #7
    Global Mapper User
    Join Date
    Oct 2009
    Location
    Newport Beach, California
    Posts
    9

    Default

    The bounding box value is definitely a mistake.

    I think it would be nice to have a text box or some other control that lets the user input their Tile Server address in the dialogue, instead of having to open up the xml file later; Perhaps have the dialogue remember the last value stored in the field as well.

    Another tag that I think would be appropriate to include would be the '<LastUpdate></LastUpdate>' tag. This tag is the time of creation of the tile set. The value is the number of miliseconds since midnight, January 1, 1970 UTC.

    So as an example, the time of
    Mon May 17 12:56:59 PDT 2010
    corresponds to

    <LastUpdate>1274126219631</LastUpdate>

  8. #8
    Administrator
    Join Date
    Jun 2007
    Posts
    16,449

    Default

    I have updated the WorldWind export to use the Java XML format when using Java filenames. I have placed a new build at http://www.globalmapper.com/global_mapper11.zip with the change for you to try. Simply download that file and extract the contents into your existing v11.xx installation folder to give it a try. If you are using the 64-bit version, there is a new build available at http://www.globalmapper.com/global_mapper11_64bit.zip .

    If that works ok for you then I can add the other requested items, like <LastUpdateTime> and a configurable tile server address.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

  9. #9
    Global Mapper User
    Join Date
    Oct 2009
    Location
    Newport Beach, California
    Posts
    9

    Default

    Sorry for the late reply.

    Everything looks good except for one tag, <TileOrigin>.

    Here is the output from a test run.
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Layer layerType="TiledImageLayer" version="1">
        <DisplayName>aerialtest</DisplayName>
        <DatasetName>aerialtest</DatasetName>
        <DataCacheName>C:\Users\Desktop\aerialtest\</DataCacheName>
        <Service serviceName="WWTileService">
            <URL>http://sometileserver.com/default.aspx</URL>
        </Service>
        <FormatSuffix>.jpg</FormatSuffix>
        <NumLevels count="1" numEmpty="0"/>
        <Sector>
            <SouthWest>
              <LatLon latitude="35.19195557" longitude="-80.97198486" units="degrees"/>
            </SouthWest>
            <NorthEast>
              <LatLon latitude="35.23040771" longitude="-80.93078613" units="degrees"/>
            </NorthEast>
        </Sector>
        <TileOrigin>
            <LatLon latitude="35.23040771" longitude="-80.97198486" units="degrees"/>
        </TileOrigin>
        <TileSize>
            <Dimension height="512" width="512"/>
        </TileSize>
        <LevelZeroTileDelta>
            <LatLon latitude="0.00274658" longitude="0.00274658" units="degrees"/>
        </LevelZeroTileDelta>
        <AvailableImageFormats>
            <ImageFormat>image/jpg</ImageFormat>
        </AvailableImageFormats>
    </Layer>
    that tag doesn't need to change. It should remain at a fixed value for all cases.

    Code:
        <TileOrigin>
            <LatLon latitude="-90.0" longitude="-180.0" units="degrees"/>
        </TileOrigin>

  10. #10
    Administrator
    Join Date
    Jun 2007
    Posts
    16,449

    Default

    I have updated the WWJ XML output to fix the <TileOrigin> value. I have placed a new build at http://www.globalmapper.com/global_mapper11.zip with the change for you to try. Simply download that file and extract the contents into your existing v11.xx installation folder to give it a try. If you are using the 64-bit version, there is a new build available at http://www.globalmapper.com/global_mapper11_64bit.zip .

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. AVL Input Data Formats
    By BlueFin in forum GPS Features
    Replies: 20
    Last Post: 02-02-2014, 07:41 AM
  2. Generating NASA World Wind Tiles from command prompt
    By shaheryar in forum Raster Data
    Replies: 15
    Last Post: 12-03-2010, 07:42 AM
  3. exporting world wind tiles
    By Chipootle in forum Raster Data
    Replies: 3
    Last Post: 03-19-2010, 05:32 PM
  4. Is there a way to just export a world file alone
    By jdm7102 in forum Technical Support
    Replies: 4
    Last Post: 12-14-2009, 04:45 PM
  5. DTED JAVA Netbeans and openmap
    By ano1911 in forum Elevation Data
    Replies: 1
    Last Post: 01-16-2009, 01:57 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.1
Copyright 2008-2012 Globalmapperforum.com
All times are GMT. The time now is 06:29 AM.
vBulletin 4.0 skin by CompleteVB