🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.webservices.soap
Article #60

TerraService Client

#60
From: Mr Fishken
Date: Mon, 03 Apr 2006 19:36
27 lines
1489 bytes
I've created a client to interface with the TerraService.  All seems
to work well except when I try and do a GetTile()

The GetTile() returns a TDynByteArray whose length is always 1.  I'm
using BCB 6


>- Code Snippet <-
  TileId *tid = new TileId();
  TByteDynArray image;
  TFileStream *out;
  BYTE *bytePtr;
  int iSize;

  tid->Theme = 1;
  tid->Scale = Scale16m;
  tid->Scene = 10;
  tid->X = 172;
  tid->Y = 1306;

   image =ts->GetTile(tid);
 // iSize is always1, no matter what tile i select
   iSize = Length(image);
   bytePtr = &image[0];
   out = new TFileStream("tile.jpg", fmCreate);
   out->Write(bytePtr, iSize);
   delete out;
Technical Details
Message-ID: <b4u232lg3u7tisr19dmiqj599n45orfv7h@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,672b419afe645710,start
X-Google-Attributes: gid11096a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Mr Fishken <king_at_bobfish_dot_org>
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: TerraService Client
Date: Mon, 03 Apr 2006 15:36:27 -0400
Message-ID: <b4u232lg3u7tisr19dmiqj599n45orfv7h@4ax.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 70.184.243.247
X-Trace: newsgroups.borland.com 1144092821 70.184.243.247 (3 Apr 2006 12:33:41 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail