Solved

USGS Elevation Query Web Service Method

Posted on 2012-04-10
4
617 Views
Last Modified: 2013-11-19
I am trying to use the USGS Elevation Query Web Service Method to retrieve elevation (MSL) for a point specified by geographic coordinates ( latitude and longitude).
The documentation page at USGS doesn't make any sense to me. I can't figure out how to pass the parameters to the method in a url.
http://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service_Methods.php#

I see that I need to pass X_Value and Y_Value (lat & lng) to the method using
http://cumulus.cr.usgs.gov/XMLWebServices/TNM_Elevation_Service.asmx?op=getElevation

But, I can't find a way to specify the parameters.

This looks to me like it should be a simple thing to do if I only knew the syntax of the query.
I am awarding 200 points based on this assumption. If someone points out to me that this is a more complex problem than it looks like to me, I will increase the points accordingly.
0
Comment
Question by:Cal_George
  • 3
4 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 200 total points
ID: 37832001
See the "HTTP GET" example on this page.  I am not sure this will work, but it's at least got an example of how to call the web service.
http://gisdata.usgs.gov/xmlwebservices2/elevation_service.asmx?op=getElevation
0
 
LVL 2

Author Comment

by:Cal_George
ID: 37834407
Thanks Ray,
I saw that link on the page from my original post too. But, your response got me thinking about it a little deeper. I viewed the source on that page and found the parms that it posts before invoking the action.

I think I can post those values and use a submit button to return the xml result.

It would be nice to be able to see what proc is called from
gisdata.usgs.gov/xmlwebservices2/elevation_service.asmx/getElevation

I am actually trying to determine if two locations (potential radio sites) can see each other.

What I am actually trying to do is determine multiple points along a path or course. I can then compare those elevations to the radius of the Fresnel zone to determine line-of-sight between the two points.

Currently, I can derive elevation of the two points. I can calculate the true course and distance between the points. I believe I have even found a formula to determine the geographic coordinates along the course.

I am not sure that I can come up with a way to query multiple points along the path without user interaction every 100 to 200 feet along the way.
0
 
LVL 2

Author Comment

by:Cal_George
ID: 37834437
OK, Ray,
You got me on that one. I didn't scroll down far enough.
There is a clear example on that page in a font that is so small I had to blow it up 5 times to be able to read it.
Good solution. I should  have gotten this without submitting the question. Maybe someone else will stumble into this thread when it really matters to them.
Cheers,
George
0
 
LVL 2

Author Closing Comment

by:Cal_George
ID: 37834443
Good answer.  This will do the trick.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now