World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Applications

Applications Discussion of applications that use WWJ

Reply
 
Thread Tools Display Modes
Old 09-21-2011, 11:03 PM   #1
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default Terramenta

https://bitbucket.org/heidtmare/terramenta/wiki/Home



Terra = Earth.
Ferramenta = Iron Tools.
∴ Terramenta = Earth Tools

Using NASA WorldWind and the Netbeans Platform,
Terramenta is an open source attempt at creating a baseline for GIS applications.

As I developed several different WWJ based applications I noticed that they all started out the same...
Terramenta was born so I wouldn't have to recreate the baseline every time,
I could just provide NB plugin modules to introduce the new features required by different projects.

Attached Images
File Type: png terramenta_517x232.png (427.1 KB, 1468 views)
File Type: jpg Terramenta_mountainSunrise.jpg (176.5 KB, 1131 views)
__________________
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

My goals with this project are simple:

Create a cleancut baseline application with a strong foundation that can be
extended via the netbeans platform plugin module architecture.

The idea is not to build an uber bloated granddaddy of all tools,
but to create an extensible platform that can be used as the basic foundation for a mirad of usecases.
__________________
Member
 
Join Date: Mar 2008
Posts: 84
workingDog is on a distinguished road
Thumbs up Terramenta the way to go

hi heidtmare,

your project and the reasons resonate with me. I thought this would be the way to go for applications based on wwj. I'm finishing a project with WWJ and I hope I can contribute to Terramenta one day.

I don't know anything about the maven way of doing things, hence I have not been able to run anything yet. Do you have a few pointers on how to set things in NB to run Terramenta.
workingDog is offline   Reply With Quote
Old 09-26-2011, 02:34 PM   #4
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

it may be adventitious to go though some netbeans platform material.
http://platform.netbeans.org/tutoria...uickstart.html

the projects come in four pieces:
Terramenta - parent pom, building this will build the three child modules,
Terramenta Application - the netbeans platform shell, this is what you run to view the software
Terramenta Branding - module for handling all branding elements; splash, about, etc.
Terramenta Core - the bread n butter module, it contains all the fun src code.

i use the maven version bundled with nb to make things simple, and the only dependencies that may be an issue are actually the worldwind ones.

from the project wiki (https://bitbucket.org/heidtmare/terramenta/wiki/Home)
Quote:
Please note of the following dependancies:

#!XML

<dependency>
<groupId>com.sun</groupId>
<artifactId>jogl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>gluegen-rt</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>gov.nasa</groupId>
<artifactId>worldwind</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>gov.nasa</groupId>
<artifactId>worldwindx</artifactId>
<version>1.2.0</version>
</dependency>

I had to add them to my own local maven repo since i do not have access to a public one. If you attempt to build the src you will need to do a local install of these dependancies. They are all taken from the official WorldWind 1.2 release.
__________________
Member
 
Join Date: Mar 2008
Posts: 84
workingDog is on a distinguished road
Cool no map showing

after downloading Terramenta and a long weekend trying to understand maven and the dependencies, I finally got the thing to "compile" if that's the right word in maven. I ran the "application" and got a frame with some menus, but no worldwind map in the frame. There are no errors of any kind, just no map. I did add the worldwind, jogl etc... dependencies manually.
I was expecting the same view as shown in this thread. Any advice ?
workingDog is offline   Reply With Quote
Old 10-05-2011, 03:05 PM   #6
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

open the "View->IDE Log" and see if any errors are being logged.

What's your environment setup?
My first guess is that it's probably building using the default profile(windows-amd64) and you may be using a 32bit JVM, so it's including the wrong natives for your environ.

If your running in a 32bit windows environment you need to right click "Terramenta Application" and "Set Configuration" to "windows-i586" and then "Clean and Build" it. This will insure the 32bit versions of the jogl dll's are included in the distribution.
__________________
Member
 
Join Date: Mar 2008
Posts: 84
workingDog is on a distinguished road
Cool still struggling

because maven is so complicated I just cannot get past go. I've got an iMac with osx-10.7.1, the latest neatbeans 701. I've selected the macosx-universal, and at some stage tried almost all the others configurations as well.

I am getting his message now:

Warning - could not install some modules:
com.qna.terramenta.core - The module org.netbeans.modules.options.api was requested in version >= 1.22.1 but only 1.21.1 was found.

Don't know how to fix this. I've look at all the menus in netbeans nothing leads me to the answer.

I've also tries at work on windows 7 with no luck. In this case Netbeans complains about all dependencies. At one stage I tried to download or re-index something and after 30 hours was on 71% complete.

Given that terramenta is based on the netbeans platform, is there a way to convert all this maven things to a normal netbeans project ?

I'm asking this not only because maven is not working for me at the moment, but also because there are number of us at work with PC not connected to the internet.
workingDog is offline   Reply With Quote
Old 10-10-2011, 02:19 PM   #8
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

u could create an ant script, but you would have to download and manage all the dependancies yourself, and you'd have to find an alternate way of including the natives since i do it with a maven plugin.

your going to need an internet connection at least once, after that you can copy your .m2 folder, that contains all your cached dependencies, to any machine you want.

not sure why your getting a version out of range... but if you edit the pom file for the core you can change the version to the one it was aware of and see if that helps.

dont get frustrated with maven, it will actually save you tons of heartache once you realize everyting is defined via chained poms.
__________________
Member
 
Join Date: Oct 2011
Posts: 33
Daan is on a distinguished road
Default

Took me a while to get this running, having no experience with Maven whatsoever.

But I must say, looking good! Two quick bugs I found:
(1) the distance measurement tool doesn't follow terrain, so the lines connecting the points are often not visible.
(2) Clicking on seconds per frame while playing, disables the stop button.

Wish I found out about this sooner. Guess that'll teach me not to only browse the 'development help' forum...
Daan is offline   Reply With Quote
Old 01-26-2012, 10:04 PM   #10
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

Glad it could be of some use to you.
I'll fix those issues and push the changes asap.
__________________