?
Solved

USGS Elevation Query Web Service Method

Posted on 2012-04-10
4
Medium Priority
?
665 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 800 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

649 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