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 02-25-2008, 07:13 AM   #1
Palani
Member
 
Join Date: Feb 2008
Posts: 36
Palani is on a distinguished road
Post How to find the place in Globe

Hello to everyone
I eager to find about worldwindglobe.I have to enter the place name in the textbox on click of go button.It focus the appropriate place.I dont know to get the longitudinal and latitudinal axis,and also walkthrough the code in the workdwind globe.I slightly confused in that.I dont know which package & class to getting the value of the axis.so really waiting for ur reply.
Palani is offline   Reply With Quote
Old 02-25-2008, 10:23 AM   #2
nludkin
Junior Member
 
Join Date: Jan 2008
Posts: 17
nludkin is on a distinguished road
Default

I think what you are looking for is GazetteerPanel.java, it lets you enter the placename in a textbox and will use a GeoCode API to retrieve the lat/lon for a placename from a Yahoo API.
The actual class that makes the request to the Yahoo API and parses out the lat/lon is Gazetteer.java in gov.nasa.worldwind.util. The spec for the Geocode API is here http://developer.yahoo.com/maps/rest/V1/geocode.html.
nludkin is offline   Reply With Quote
Old 02-25-2008, 11:12 AM   #3
Palani
Member
 
Join Date: Feb 2008
Posts: 36
Palani is on a distinguished road
Default

Thanks
see here I am using NetBeans IDE for customize our worldwindJava SDK application.In that how to I add these place finder functionality.I just created JFrame window with that WorldWindowGLcanvas component.so I really waiting for ur reply.
Palani is offline   Reply With Quote
Old 02-25-2008, 11:55 AM   #4
nludkin
Junior Member
 
Join Date: Jan 2008
Posts: 17
nludkin is on a distinguished road
Default

The GazetteerPanel is a panel that just purely needs to be instantiated passing in a handle to the worldwind instance.. e.g. frame.add(new GazetteerPanel(wwd)).. You don't need to set up any listeners, etc.. It takes care of that..
nludkin is offline   Reply With Quote
Old 02-25-2008, 05:39 PM   #5
asantiago
WWJ aficionado
 
Join Date: Aug 2007
Posts: 136
asantiago is on a distinguished road
Default

Also you can use GeoNames to get a place lat/lon given a place name, place postal code and more.
__________________
|---------------------------------------
| http://www.acuriousanimal.com/
|---------------------------------------
| http://theballoonproject.blogspot.com
|---------------------------------------
| _ __
| /_| ( _ _/'_ _
|( |. __)(//)//(/(/()
| _/
|---------------------------------------
asantiago is offline   Reply With Quote
Old 02-26-2008, 06:19 AM   #6
Palani
Member
 
Join Date: Feb 2008
Posts: 36
Palani is on a distinguished road
Default

Thanks for your kindly reply
But i am new for NetBean IDE,Kindly send me clear formation of coding.Because i dont know which class what functionality.my email id: palaniyaan05@gmail.com wait for ur quick reply
Palani 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
How to add your own data (For beginners) dinther Add-on & Script Development 30 06-20-2011 08:22 PM
Plug-in: PlaceNameMaker canosso Add-ons & Scripts 4 03-30-2011 03:29 PM
save a place brynn Technical Support 13 03-15-2006 01:50 PM
Place Name Update Zach Guffron Suggestion Box 0 06-30-2005 08:11 PM
cant find place names file joshua Technical Support 3 05-02-2005 01:21 PM


All times are GMT +1. The time now is 09:23 AM.


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