![]() |
|
|
#1 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
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 |
|
|
|
|
|
#2 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
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 |
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
![]() |
It can be done in WWJ without a problem.
|
|
|
|
|
|
#4 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
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 |
|
|
|
|
|
#5 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,616
![]() |
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. |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Apr 2005
Posts: 220
![]() |
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>
__________________
To view all my addons visit http://www.panglosstech.com/. Last edited by pangloss; 09-06-2008 at 08:36 PM. |
|
|
|
|
|
#7 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
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 |
|
|
|
|
|
#8 |
|
Super Member
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,779
![]() |
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 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |