Thanks for the response.

Yeah, I don't understand why
https://nationalmap.gov/epqs/pqs.php
won't open in a browser, but
https://nationalmap.gov/epqs/
will.  I imagine this may have something
to do with redirects, but who knows.


When I put
https://nationalmap.gov/epqs/pqs.php
into a web browser it says:
General failure: Invalid Coordinates


When I put
http://ned.usgs.gov/epqs/pqs.php
into a web browser it says the same exact thing.


When I go to
https://nationalmap.gov/epqs/
and put -90.76983 for X
and put 38.72360 for Y
and hit "Get Elevation"
it gives:

<USGS_Elevation_Point_Query_Service>
  <Elevation_Query x="-90.76983" y="38.72360">
    <Data_Source>3DEP 1/3 arc-second</Data_Source>
    <Elevation>583.54</Elevation>
    <Units>Feet</Units>
  </Elevation_Query>
</USGS_Elevation_Point_Query_Service>



When I go to:
https://nationalmap.gov/epqs/pqs.php?x=-90.76983&y=38.72360&units=feet&output=xml
it gives:

<USGS_Elevation_Point_Query_Service>
  <Elevation_Query x="-90.76983" y="38.72360">
    <Data_Source>3DEP 1/3 arc-second</Data_Source>
    <Elevation>583.54</Elevation>
    <Units>Feet</Units>
  </Elevation_Query>
</USGS_Elevation_Point_Query_Service>

So that works.



Mike



On 8/26/2019 10:26 PM, Uri Guttman wrote:

have you tried to just telnet to those hosts?

 telnet nationalmap.gov:443
telnet: could not resolve nationalmap.gov:443/telnet: Name or service not known
telnet ned.usgs.gov:443
telnet: could not resolve ned.usgs.gov:443/telnet: Name or service not known


so there is something wrong with the urls and not the code (or the code has bad urls).

and just getting the web pages is also failing

GET https://ned.usgs.gov/epqs/pqs.php
<error>General failure: Invalid Coordinates</error>

GET https://nationalmap.gov/epqs/pqs.php
<error>General failure: Invalid Coordinates</error>

i dunno the module but it seems that you may not be passing in any coordinates or something else is needed.

uri


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to