Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
snovak70 #1
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
-
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... -
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? -
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... -
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... -
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... -
PaulH #2
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()# 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



Reply With Quote

