World Wind Forums

Go Back   World Wind Forums > Support > Technical Support

Technical Support Get help with World Wind.

Reply
 
Thread Tools Display Modes
Old 09-04-2008, 11:04 PM   #1
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default Line feature needed?

Hi,
Is there an XML loaded drawing feature that draws a line from a position at one altitude (mid-air collision location), to another location on the ground (impact site)? I looked at LineFeature and PolygonFeature, but they don't seem to support points at different altitudes. Any help would be appreciated.
Thanks,
James
James_In_Utah is offline   Reply With Quote
Old 09-05-2008, 10:35 PM   #2
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

So, maybe there isn't a way to draw a line from a point in the air at one lat/lon to a point on the the ground at another lat/lon? I have this working with KML, but would like to do it with XML. Any help would be appreciated!
Thanks,
James
James_In_Utah is offline   Reply With Quote
Old 09-05-2008, 11:01 PM   #3
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

It can be done in WWJ without a problem.
nlneilson is offline   Reply With Quote
Old 09-05-2008, 11:22 PM   #4
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

That's good. I'll wait until WWJ does KML and runs my plugins. For now, I can do this with linestrings in KML but thought it might be easier to produce products that just show up when someone opens WW if I did it with an XML. We also need to support the goto and lookat type functionality.
James
James_In_Utah is offline   Reply With Quote
Old 09-06-2008, 04:32 PM   #5
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
nlneilson is on a distinguished road
Default

The KML is being worked on.
http://forum.worldwindcentral.com/sh...ad.php?t=20414
http://forum.worldwindcentral.com/sh...ght=kml&page=2

"goto and lookat" is there.

Getting the plugins to work would require the most time.
nlneilson is offline   Reply With Quote
Old 09-06-2008, 07:32 PM   #6
pangloss
Senior Member
 
Join Date: Apr 2005
Posts: 220
pangloss is an unknown quantity at this point
Default

Line features are available via xml, but not very well documented.

http://www.worldwindcentral.com/wiki/LineFeature


Code:
<?xml version="1.0" encoding="UTF-8"?>
<LayerSet Name="Line Test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <LineFeature ShowAtStartup="true">
        <Name>test</Name>
        <ExtrudeHeight>0</ExtrudeHeight>
        <ExtrudeUpwards>false</ExtrudeUpwards>
        <DistanceAboveSurface>0</DistanceAboveSurface>
        <MinimumDisplayAltitude>0</MinimumDisplayAltitude>
        <MaximumDisplayAltitude>16000000</MaximumDisplayAltitude>
        <LineString>
            <posList>
                -99.97743325,41.59051457 -98.59135611,38.61853287 -95.42362999,37.77036052 -92.73794527,39.65211041 -92.45352047,42.91906429 -94.77360855,45.23662258 -98.04025018,44.94863376 -99.97743325,41.59051457
            </posList>
        </LineString>
        <LineWidth>4</LineWidth>
        <FeatureColor>
            <Red>255</Red>
            <Green>255</Green>
            <Blue>0</Blue>
        </FeatureColor>
        <Opacity>255</Opacity>
    </LineFeature>


</LayerSet>
worldwind://goto/world=Earth&lat=41.....0&alt=5000000
__________________
To view all my addons visit http://www.panglosstech.com/.

Last edited by pangloss; 09-06-2008 at 08:36 PM.
pangloss is offline   Reply With Quote
Old 09-07-2008, 01:30 PM   #7
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

That works. It does take elevation on the lat/lons. Thanks!

The color and LineWidth don't seem to do anything though. I think I fixed the color in the KML Parser for LineStrings, but couldn't get the width to work ther either. Has anyone tried fixing this?

Thanks,
James
James_In_Utah is offline   Reply With Quote
Old 09-07-2008, 01:32 PM   #8
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
James_In_Utah
Default

Also, DistanceAboveSurface doesn't seem to do anything, and I added <AltitudeMode>. I didn't try the extrude options, but I'm pretty sure they work.
Thanks,
James
James_In_Utah 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
WW-739 bug (Line paths who are hidden by terrain are still visible), why and how? maweifeng Developers' Corner 10 05-16-2009 03:15 AM
Feature enhancements needed for KML Importer James_In_Utah Developers' Corner 0 07-18-2008 11:45 PM
A couple of minor changes needed. James_In_Utah Developers' Corner 2 01-19-2008 05:43 AM
What is this white line on Mars? katsukun Hotspots 1 04-24-2007 01:20 PM
convert lat/lon forms, SPC, Metes, make path Tom Moran Add-on & Script Development 21 03-06-2006 12:02 AM


All times are GMT +1. The time now is 05:03 PM.


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