yypsybs
2023-09-09 3cb5a54def670d97301f07170fcaad213bfc54f2
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
Quintiq file version 2.0
#parent: #root
Method ProcessTileResponse (HTTPInterface httpinterface)
{
  #keys: '1[103544.0.740744403]'
  TextBody:
  [*
    // Administrator Mar-12-2012 (created)
    ticks := OS::PrecisionCounter();
    
    library := this.LibOSM_OSMGISLibrary();
    utils := library.LibOSM_Utils();
    gettilescall := library.LibOSM_LibraryCall().astype( LibOSM_GetTilesCall );
    
    result := library.Result();
    tilehandle := result.GetHandle( "tile" );
    imagehandle := result.GetHandle( "image" );
    resultroot := result.Root();
    
    // Resolve the object representing the call to OpenStreetMap
    openstreetmapservercall := library.ResolveOSMServerCall( httpinterface.ASyncCallId() );
    // Resolve the tile in the result and add the image to it
    tile := resultroot.Children( tilehandle ).Element( openstreetmapservercall.ArgumentID() );
    tile.AddChild( imagehandle, httpinterface.BinaryResult() );
    
    successfulintermediatecalls := gettilescall.SuccessfulIntermediateCalls();
    gettilescall.SuccessfulIntermediateCalls( successfulintermediatecalls + 1 );
    
    this.FollowUpCallToMapServer( gettilescall );
    
    utils.DebugEndTrace( "MapServer.ProcessTileResponse", ticks );
  *]
}