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

推荐订阅源

L
LangChain Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
U
Unit 42
腾讯CDC
D
Docker
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
I
InfoQ
Jina AI
Jina AI
爱范儿
爱范儿
宝玉的分享
宝玉的分享
博客园 - Franky
G
Google Developers Blog
P
Proofpoint News Feed

博客园 - 马维峰

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?