[Reprint] WorldWind Java-Jython example

Source: Internet
Author: User
Source: WorldWind Java -Jython examplehttp: // www.perrygeo.net/wordpress /? P = 59

Filed under: uncategorized-perrygeo @ 2: 32 pm

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
Excellent Java libraries out there, you'll want to take a look
Jython. Taking the awt1up. Java code and porting a subset of
Functionality to Jython was surprisingly easy and yielded much more
Readable code in my opinion. And the ability to manipulate objects
The interactive prompt is just so sweet.

View the source code

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. RunJython 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 have CT support for georss and GPX to improve and
For GML, kml, geojson, shapefiles, rasters, WMS, etc to be encoded DED
Eventually.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.