Terra Server Web Service and CF

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Terra Server Web Service and CF

    I would like to integrate satelite images from Microsoft's Terra Server using
    their web service. I are pretty new to consuming web services. Has anyone ever
    done this with Terra Server using CF? If so, can you provide some sample code?
    Info for their web service is located at
    [url]http://terraserver.microsoft.com/webservices.aspx[/url]. As I said, I am pretty new
    to utilizing web services so if anyone could at least point me in the right
    direction it would be greatly appreciated!

    snovak70 Guest

  2. Similar Questions and Discussions

    1. Omega Seamaster Aqua Terra Steel Black Mens Watch 2802.52.31Recommendation Discount Watches
      Omega Seamaster Aqua Terra Steel Black Mens Watch 2802.52.31 Recommendation Discount Watches Omega Seamaster Aqua Terra Steel Black Mens Watch...
    2. CF Server 4.5 Service Stops
      Hi Guys, I'm new with CF and currently using CF Server Prof 4.5 on 2003 server. Apparently the services tops unexpectedly. Any solution for this?
    3. Server 2003 FAX Service
      I have set up the fax service/printer on our new Windows 2003 server. However, whenever a user sends a document to the fax printer - the following...
    4. win32::eventlog DNS Server, Directory Service, File Replication Service
      hello, does anyone know how to scan the special eventlogs on a dc like DNS Server log Directory Service File Replicatoin Service i tried it...
    5. Server Service
      My Server service doesn't exist. I've been trying to install MSDE and it kept failing and it turns out the reason why is that it relies on the...
  3. #2

    Default Re: Terra Server Web Service and CF

    for the most part it's not
    [url]http://www.sustainablegis.com/projects/geocode/terraserver/[/url]. the tricky bits
    are getting the tiles sorted out (as you will mainly deal w/more than 1 tile
    for any given location).

    <cfscript>
    thisPath = ExpandPath("*.*");
    thisDir = GetDirectoryFromPath(thisPath);

    ws=createObject("webservice","http://terraserver.microsoft.com/TerraService2.as
    mx?WSDL");
    place=StructNew();
    place.City="Peckville";
    place.State="PA";
    place.Country="USA";
    point=ws.ConvertPlaceToLonLatPt(place);
    scale=structNew();
    scale.Scale16m="Scale16m";
    aBB=ws.GetAreaFromPt(point,1,Scale.Scale16m,600,40 0);
    tMD=ws.GetTileMetaFromLonLatPt(point,1,Scale.Scale 16m);
    tile=tMD.getID();
    image=ws.GetTile(tile);
    </cfscript>
    <cffile action="WRITE" file="#thisDir#\image.jpg" output="#toBinary(image)#"
    addnewline="Yes" fixnewline="No">
    <table cellspacing="2" cellpadding="2">
    <tr><td><cfoutput><b>that location</b>:
    latitude:=#point.getLat()#&nbsp;longitude:=#point. getLon()#</cfoutput></td></tr>
    <tr><td><img src="image.jpg" alt="" border="0"></td></tr>
    </table>
    <br>
    <cfdump var="#ws#">
    <br>
    <cfdump var="#point#" label="point object">
    <br>
    <cfdump var="#aBB#" label="bounding box object">
    <br>
    <cfdump var="#tMD#" label="tile metadata">
    <br>
    <cfdump var="#tile#" label="tile object">

    PaulH Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139