World Wind Forums

Go Back   World Wind Forums > Community > Community Chat

Community Chat Chat about topics not related to World Wind.

Reply
 
Thread Tools Display Modes
Old 02-11-2007, 04:47 PM   #151
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,446
Default

Well, I don't know anything about DirectX, but I may have to learn. We have some contractors doing some coding work for us, but pulling one of them off of a project to look at this may or may not happen. I will probably just have to try to follow the WMS fix example and see it it can be applied to the shapefile loader.

V1.4 does a lot better job of loading KML files, at least as far as speed is concerned. For some reason it is much faster. We use that to display aircraft plots. I'd love to have that, but we also use the shapefiles to display theoretical radar coverages. right now anywhere that has overlapping coverages looks like a black blob. Until that gets fixed we will have to stay with the current version.
James
James_In_Utah is offline   Reply With Quote
Old 02-11-2007, 06:09 PM   #152
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

Hey I found a workaround.



You can specify opacity via the color in the xml instead of the layer properties.

Code:
    <PolygonColor>
      <Red>255</Red>
      <Green>0</Green>
      <Blue>50</Blue>
      <Alpha>150</Alpha>
    </PolygonColor>
withak is offline   Reply With Quote
Old 02-11-2007, 10:07 PM   #153
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,446
Default

Good deal! That should work nicely. I'll give it a try first thing tomorrow...
Thanks!
James
James_In_Utah is offline   Reply With Quote
Old 02-11-2007, 10:41 PM   #154
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

The only drawback would be that you can't change opacity set this way from the gui, you would have to edit the alpha values in the xml and reload.
withak is offline   Reply With Quote
Old 02-11-2007, 10:49 PM   #155
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,446
Default

Using the current loader, there doesn't seem to be any way to edit the shapes anyway. If I want to change the color, I edit the xml, and then reload the whole earth. It would be great if the whole shapefile layer could be reloaded without restarting WW or reloading the earth.
James
James_In_Utah is offline   Reply With Quote
Old 02-12-2007, 12:13 AM   #156
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 404
Default

If the shapefile layer is second in the tree from the Layer Manager, if you turn that off and on it will that reload it? I'm finding that with another few renderable objects...
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade is offline   Reply With Quote
Old 02-12-2007, 01:38 AM   #157
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

It doesn't re-read the xml when you do that.
withak is offline   Reply With Quote
Old 02-12-2007, 05:08 AM   #158
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 404
Default

Read the post, dammit Chade. Editing the xml! >.<

Anyway, wouldn't deleting and loading the xml (again) be faster than restarting WW or reloading Earth...?
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade is offline   Reply With Quote
Old 02-12-2007, 05:19 AM   #159
James_In_Utah
Super Member
 
James_In_Utah's Avatar
 
Join Date: Jan 2006
Location: Eden, Utah
Posts: 1,446
Default

There doesn't seem to be a good way to unload the shapefiles currently. I actually added logic that allowed me to "Delete All" entries under a layer in the layer manager, and then I could use the shapefile loader dialog to reload the xml files, but it had lots of bugs. Once V1.4 is out I will probably try migrating my changes forward.
James
James_In_Utah is offline   Reply With Quote
Old 02-12-2007, 05:25 AM   #160
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

A File -> Load... dialog will almost certainly be in 1.4.1. The code was there in 1.4 but it wasn't tested enough. Right-click -> Delete... does works in 1.4. Unfortunately it doesn't permanently delete shapefile layers because the loader doesn't include the xml filename in the the RO metadata like it does for regular layer; so all it can do is remove them from the LM until you restart.
withak 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
Google Maps + MSN Virtual Earth = Flash Earth m_k Community Chat 6 02-19-2008 08:51 PM
Google Earth has so much better resolution mica78 WorldWind General 43 01-20-2006 01:00 AM
Cant get resolution as good as Google Earth? David Technical Support 3 08-23-2005 03:14 PM
Google Earth or World Wind maja Community Chat 2 07-31-2005 07:57 PM
Please take a few pointers from Google Earth Scott M Suggestion Box 3 07-15-2005 04:07 PM


All times are GMT +1. The time now is 11:39 AM.


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