Solved

USGS Elevation Query Web Service Method

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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.

691 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