惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
博客园 - 叶小钗
I
InfoQ
MyScale Blog
MyScale Blog
H
Help Net Security
月光博客
月光博客
Vercel News
Vercel News
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
GbyAI
GbyAI
Blog — PlanetScale
Blog — PlanetScale
博客园 - Franky

博客园 - 马维峰

Mars的自语重出江湖,祝大家端午节安康 三维GIS平台iTelluro开发之快速入门 - 马维峰 - 博客园 灵图裁员的文章已删除 GCDPlot 0.40 download 如果访问我的博客,请尽量访问:http://www.3snews.net/?mars Google街景(Streetside View)启动 Virtual Earth 添加纽约3D地图 NASA将在网上公布Landsat 7卫星数据 Google与斯坦福大学合作 应用Stanley采集3D模型 《3S 新闻周刊》No.14:从融资到裁员,灵图那些事儿 基于Falsh的Virtual Globe World Wind JAVA亮相JavaOne,Google Earth和Virtual Earth最大竞争对手 再谈共相式GIS和ArcObjects ArcObjects,共相式GIS,跨平台? 惠普卖印刷服务 GIS卖什么? 从Grid控件到GIS软件 GIS(数据)浏览器的点点滴滴 《3s新闻周刊》No.13:2006的回顾和2007展望 为什么大多Virtual Globe程序纵向旋转效率比较低
[转载]Worldwind Java - Jython example
马维峰 · 2007-05-17 · via 博客园 - 马维峰

出处:

Worldwind Java

- Jython examplehttp://www.perrygeo.net/wordpress/?p=59

The worldwind java sdk has finally been released. It’s a neat SDK, well organized, easy to bring into Eclipse with some good examples to start hacking away.

The only problem is the examples are written in Java ;-) . If braces make you cringe but you still want to work with all the excellent Java libraries out there, you’ll want to take a look at Jython. Taking the AWT1Up.java code and porting a subset of the functionality to Jython was surprisingly easy and yielded much more readable code in my opinion. And the ability to manipulate objects at the interactive prompt is just so sweet.

Setup is not too terrible:

  1. Get a Java JDK (I’m using sun java 6)
  2. Download and install Jython 2.2b2
  3. Download and unzip the worldwind java sdk (ex: /opt/wwj )
  4. Set your LD_LIBRARY_PATH variable to /opt/wwj
  5. Set your CLASSPATH variable to /opt/wwj/worldwind.jar
  6. Run jython wwj_demo.py

One thing that is a bit disappointing with the WorldWind SDK in general is the lack of support for rendering common formats. Maybe I missed something but I couldn’t get gpx or georss feeds working properly. It is version 0.2 so I expect support for GeoRSS and GPX to improve and for GML, KML, GeoJSON, Shapefiles, Rasters, WMS, etc to be included eventually.

Anyone else out there started playing with Jython / Worldwind yet?