Try the Merge Images command. as your .mxb has it layered. (i used the coord.system from the base layer). Alternatively you could use the Join dialog. and copy from the subset to the base layer. Looking at the query from the "Setup Join and Edit Query" button, you were pretty close. This seemed to perform the same way. VALUE @target NVARCHAR = ComponentCoordSystem([BASE]); VALUE @source NVARCHAR = ComponentCoordSystem([SUBSET]); VALUE @conv TABLE = CALL CoordConverterMake(@target, @source); VALUE @rect FLOAT64X4 = CAST(ComponentProperty([BASE], 'Rect') AS FLOAT64X4); VALUE @converted TABLE = CALL CoordConvertTileSetPar(@conv, [SUBSET], @rect, 1, ThreadConfig(SystemCpuCount())); TABLE CALL TileFillBaseLevel([BASE]); UPDATE ( SELECT t.[mfd_id] AS tkey0, t.[Tile] AS ttile, s.[Tile] AS stile FROM [BASE] AS t INNER JOIN @converted AS s ON t.[X] = s.[X] AND t.[Y] = s.[Y] ) SET ttile = CASE WHEN ttile IS NULL THEN stile ELSE TileFillMissingCopy(stile, ttile) END; TABLE CALL TileUpdatePyramids([BASE]);
|