World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 09-07-2007, 07:51 PM   #1
otomotion
Junior Member
 
Join Date: Sep 2007
Location: Montreal
Posts: 1
otomotion is on a distinguished road
Default is WWJ the right tool for this job?

I'm looking for a nudge in the right direction.

I'd like to build a sort of client/server application. The client would basically be for displaying information to users and I know WWJ would be great for that.

Server side, I need to retrieve information about particular lat/long. In order of importance, this information includes:

1. land or water
2. elevation
3. political association (ie. what country does this coordinate belong to)

I've briefly come across things like shapefiles and land masks. Anyone familiar with anything of this sort? There's nothing to satisfy point 1 in WWJ right? As for elevation, it'll depend on what has been cached, but the serve app isn't graphical, so are there other ways of updating my cache?

I'm new to WWJ.

thanks
otomotion is offline   Reply With Quote
Old 09-07-2007, 08:03 PM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Can you describe in more details what you want to do ?

With a little help (coding) WWJ can display a lot of information coming from remote servers or local files. As to how to serve those in the first place, it depends a lot of the original data format and other considerations...

Please tell us more.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 09-07-2007, 08:10 PM   #3
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

A land mask is just a two-color map of the earth, one color for land and one for water. You convert your requested lat/lon to pixel coordinates in the image and check the color of that pixel on the map. You can do the same thing to identify countries (or any other geographic information that might be represented by colors in an image), though the precision is limited by the resolution of the image and the number of available colors.

You can do the same thing with a shapefile containing polygons by checking which polygon contains the requested coordinates. This requires more coding, but can be a lot more precise than retrieving information based on pixels in an image.

Elevation you can probably get from WWJ directly without having to do anything with your own data.
withak is offline   Reply With Quote
Old 09-07-2007, 09:05 PM   #4
Unregistered
Guest
 
Posts: n/a
Default

Thanks for the explanation withak.

patmurris, basically, my server could be compared to some sort of game engine that uses real world data. so it would need methods like:

getElevation(lat,long)
isWater(lat,long)
country(lat,long)

i guess it's worth noting that these don't necessarily require high resolution. they should, however, be consistent. that is, if i call getElevation for a particular coordinate i would like it to always return the same thing, so i guess i'd want to be working off a 'fixed' data source, if that makes sense.

isWater could ignore lakes and rivers and only consider large bodies like oceans if it simplified things.

isWater is the most urgent at the moment, i'm really looking for simplicity implementation-wise over resolution.

geonames.org has some webservices that might be useful, particularly for country determination.

usgs could be helpful for elevation.
http://gisdata.usgs.net/XmlWebServic...on_Service.php
  Reply With Quote
Old 09-08-2007, 03:58 AM   #5
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

If you dont need much resolution, then maybe you could just code isWater() and country() in the client, using land masks has described by withak.

Anyway, for other data you would have to code both for the server and for the client to retrieve the data for WWJ to display. So your question is more about where/how to find these data and how to serve them to a WWJ client - is it ?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 09-08-2007, 04:35 AM   #6
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

Wouldn't it be easier for you two to meet up at a bar and discuss this over a few drinks? (Seeing as you are in the same location)
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 09-08-2007, 05:31 AM   #7
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

You are right Tom, i didnt notice.
Otomotion: i'll setup an informal beer drinking conscious WWJ user/dev meeting soon in Montreal. If you feel like joining, check this thread :
http://forum.worldwindcentral.com/sh...ad.php?t=11012
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 09-08-2007, 10:57 PM   #8
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
TomServo
Default

This is turning into the WWJava "Think Tank" meeting
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 09-09-2007, 04:05 AM   #9
Chiss
Senior Member
 
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
Chiss is on a distinguished road
Default

Too bad the Great Old One lives too far to join us!
Chiss is offline   Reply With Quote
Old 09-09-2007, 04:37 AM   #10
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

I wish there was some kind of video irc/chat channel where we could pop up at times and just chat live... wasnt that supposed to happen with year 2k ? We used to be able to do it with CuSeeMe... But then you need a usb beer dispenser too.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A idea to inject any image in the wwj cache dlian Development Help 0 07-30-2007 03:56 PM
DoD/USG WW.Net and WWJ Forums? nigel_ht Development Help 1 07-14-2007 01:35 AM
WFS and WWJ. globpat Development Help 6 06-20-2007 07:37 AM
Job posting - Mid-Level Programmer: 3D Geospatial Virtual Earth Technologies jrobb Community Chat 0 03-08-2007 04:16 PM
a drawing tool, and an improve measuring tool Xaerion Suggestion Box 3 10-07-2006 12:44 PM


All times are GMT +1. The time now is 03:46 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.