![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: May 2007
Location: Toulouse
Posts: 120
![]() |
I'm working on a GeoRss viewer plugin for worldwind. It is based on the GeoRssParser class that i found on the sdk but i add a other class to handle point because the base class only handle shape. I render this point as icon on worldwind.
I plan to release a first version today. My coworker (pred) is working on a GeoRss editor based on worldwind My first result with this georss : http://earthquake.usgs.gov/eqcenter/...s7day-M2.5.xml |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: May 2007
Location: Toulouse
Posts: 120
![]() |
I have done a first version of the georss plugin.
How to use it : 1. Download georss_worldwind_plugin_v_0.1.0.jar and 32x32-icon-georss2.png 2. In your IDE, add georss_worldwind_plugin_v_0.1.0.jar to your project and classpath and copy the image file into the src/images/ directory 3. In BasicDemo.java: - add this line to the layers array definition (line 10) new BasicDemo.LayerAction(new GeoRssIconLayer("http://earthquake.usgs.gov/eqcenter/catalogs/eqs7day-M2.5.xml","EartQuake","",null), true), - add this line to the layers initialisation (line 239) if (action.layer instanceof GeoRssIconLayer) ((GeoRssIconLayer) action.layer).setWwd(wwd); 4. Save and run notes : - It can only handle georss stream with <geo:lat></geo:lat> and <geo:long></geo:long> tags. I will add support for <georss:where></georss:where> tags soon. - It needs Java SE 6 jvm for support of desktop integration, indeed when you click on a georss icon the default navigator is opened with the url of the georss item. I don't know what appends if you try to execute it with Java SE 5 Edit : You can try it with java web start : launch the GeoRssReaderDemo with java web start Last edited by vash; 05-25-2007 at 09:49 PM. |
|
|
|
|
|
#3 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Nice !
Would you mind sharing the source... |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2007
Location: Toulouse
Posts: 120
![]() |
Of course ! you can get it here georss_worldwind_plugin_src_v_0.1.0.zip
|
|
|
|
|
|
#5 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Yesterday i started working on a WW icon add-on loader and went pretty much the same route, except i read a local xml file - and i packed everything into one class. I used a couple lines of your code, but tried out another way to launch the browser that seems to work with java 1.5.
Check it out in this thread. |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: May 2007
Location: Toulouse
Posts: 120
![]() |
|
|
|
|
|
|
#7 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Yea... i doubt the "cmd /c start" will work cross platform.
It seems overly complicated to strart a browser from java without a helper package though. |
|
|
|
|
|
#8 | |
|
Junior Member
Join Date: May 2007
Posts: 3
![]() |
Quote:
Code:
java.awt.Desktop.getDesktop().browse(new java.net.URI("http://www.worldwindcentral.com/"))
|
|
|
|
|
|
|
#9 | |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Quote:
Maybe this is just a matter of issuing the right exec command depending on the platform, but from what i've seen of some helper classes it is much more complicated ![]() |
|
|
|
|
|
|
#10 |
|
Worldwind Developer
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
![]() |
Java does come with a simple HTML renderer(without javascript support etc.) which I have used in the past to make a simple java based browser.
__________________
Coding This and That in World Wind and helping new people out, as long as they don't pester too much. Currently blogging at: http://whatnicklife.blogspot.com Working at: Aerometrex - http://aerometrex.com.au/blog/ Impact so far: ![]() |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|