Solved

USGS Elevation Query Web Service Method

Posted on 2012-04-10
4
636 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 110

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to count occurrences of each item in an array.
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.

733 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