Welcome to our new forum platform. We realize there is still some work to do and we appreciate your patience. Please let us know if you have any ideas or suggestions: paul@globalmapperforum.com

export web formats: world wind java

ChipootleChipootle Global Mapper UserPosts: 9 ✭✭
edited June 2010 in Suggestion Box
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.

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238BMG Staff ✭✭
    edited May 2010
    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
  • ChipootleChipootle Global Mapper User Posts: 9 ✭✭
    edited May 2010
    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.
    <?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.
    <?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.
  • global_mapperglobal_mapper Administrator Posts: 17,238BMG Staff ✭✭
    edited May 2010
    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
  • ChipootleChipootle Global Mapper User Posts: 9 ✭✭
    edited May 2010
    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!
  • global_mapperglobal_mapper Administrator Posts: 17,238BMG Staff ✭✭
    edited May 2010
    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
  • ChipootleChipootle Global Mapper User Posts: 9 ✭✭
    edited May 2010
    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>
  • global_mapperglobal_mapper Administrator Posts: 17,238BMG Staff ✭✭
    edited May 2010
    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
  • ChipootleChipootle Global Mapper User Posts: 9 ✭✭
    edited June 2010
    Sorry for the late reply.

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

    Here is the output from a test run.
    <?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>
    [COLOR="red"][B]    <TileOrigin>
            <LatLon latitude="35.23040771" longitude="-80.97198486" units="degrees"/>
        </TileOrigin>[/B][/COLOR]
        <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.
        <TileOrigin>
            <LatLon latitude="-90.0" longitude="-180.0" units="degrees"/>
        </TileOrigin>
    
  • global_mapperglobal_mapper Administrator Posts: 17,238BMG Staff ✭✭
    edited June 2010
    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
  • ChipootleChipootle Global Mapper User Posts: 9 ✭✭
    edited June 2010
    Works great now!

    My thanks to the global mapper team.
Sign In or Register to comment.