![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Sep 2007
Location: Montreal
Posts: 1
![]() |
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 |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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. |
|
|
|
|
|
#3 |
|
What?
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
![]() |
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. |
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#5 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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 ? |
|
|
|
|
|
#6 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
![]() |
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. |
|
|
|
|
|
#7 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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 |
|
|
|
|
|
#8 |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,847
![]() |
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. |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
![]() |
Too bad the Great Old One lives too far to join us!
![]() |
|
|
|
|
|
#10 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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.
![]() |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |