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

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - 马维峰

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?