Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2340 closed defect (wontfix)

MgCooker using scaleindexes backwards while rendering tiles

Reported by: Gyufi Owned by: jng
Priority: high Milestone: Maestro-5.0-maintenance
Component: Maestro Version:
Severity: major Keywords:
Cc: Gyufi External ID:

Description

Using

on a Windows Server 2008 R2 Enterprise SP1 x64 server.

I tried to prerender tiles with MgCooker with these scales: 1:90000, 1:45000, 1:25000, 1:15000, 1:8000, 1:4000, 1:2000, 1:1000, 1:500, 1:250. (10 scales)

When I using MgCooker to render tiles in 1:90000 scale, it creates tiles to subdirectories of Repositories/TileCache/<FolderName>_<MapName>/S0 directory.

When I using (Ajax or Fusion) Viewer to render tile on-the fly, it creates tiles to subdirectories of Repositories/TileCache/<FolderName>_<MapName>/S9 directory.

BaseMap FiniteDisplayScales are fine, but MapGuide waiting scaleindexes backwards when calling mapguide.fcgi with GETTILEIMAGE operation.

I made some modifications in

files.

With these modifications tile rendering working fine, but I don't think this is the best way to solve the problem.

Attachments (8)

SetupRun.cs (27.7 KB ) - added by Gyufi 11 years ago.
BatchSettings.2.cs (31.3 KB ) - added by Gyufi 11 years ago.
Modifications.zip (11.8 KB ) - added by Gyufi 11 years ago.
Modifications.2.zip (11.8 KB ) - added by Gyufi 11 years ago.
BatchSettings.cs (31.3 KB ) - added by Gyufi 11 years ago.
SetupRun.diff (922 bytes ) - added by Gyufi 11 years ago.
SetupRun difference
BatchSettings.diff (1.9 KB ) - added by Gyufi 11 years ago.
BatchSettings difference
Tile-Issue.png (337.1 KB ) - added by 14364 11 years ago.
Tile-Issue

Download all attachments as: .zip

Change History (18)

by Gyufi, 11 years ago

Attachment: SetupRun.cs added

by Gyufi, 11 years ago

Attachment: BatchSettings.2.cs added

by Gyufi, 11 years ago

Attachment: Modifications.zip added

by Gyufi, 11 years ago

Attachment: Modifications.2.zip added

by Gyufi, 11 years ago

Attachment: BatchSettings.cs added

comment:1 by Gyufi, 11 years ago

Cc: Gyufi added

Sorry for too much attachments. I have not received feedback after add attachment. Relevant files are SetupRun.cs and BatchSettings.cs

comment:2 by jng, 11 years ago

Can you put these up as diffs? It makes it easier for me to see what has changed and makes applying the changes much easier.

comment:3 by jng, 11 years ago

Component: Tile ServiceMaestro
Milestone: Maestro-5.0-maintenance
Owner: set to jng
Type: taskdefect
Version: 2.5.0

by Gyufi, 11 years ago

Attachment: SetupRun.diff added

SetupRun difference

by Gyufi, 11 years ago

Attachment: BatchSettings.diff added

BatchSettings difference

in reply to:  2 comment:4 by Gyufi, 11 years ago

Replying to jng:

Can you put these up as diffs? It makes it easier for me to see what has changed and makes applying the changes much easier.

Thank you to reply so quickly. I attached the 2 diffs.

comment:5 by jng, 11 years ago

Is the issue basically when going through the "pyramid" of tiles to generate, MgCooker is starting from the bottom instead of the top?

in reply to:  5 comment:6 by 14364, 11 years ago

Replying to jng:

Is the issue basically when going through the "pyramid" of tiles to generate, MgCooker is starting from the bottom instead of the top?

I don't understand exactly what you mean. If I understand you, then this is the answer:

It doesn't matter where MgCooker starting the generation, bottom or top.

With the above example

With 1:90000 scale:

With 1:250 scale:

Another example:

I generate tiles with MgCooker in 1:8000 scale (and only this scal), it generates tiles with scaleindex=4. MapGuide using scaleindex=5 for 1:8000 scale.

Therefore when I view the Map in 1:4000 in Viewer (Fusion), it drawing 1:8000 tiles to the left-top corner (of the entire map) and start to generate the remaining tiles in 1:4000 scale (which are not found in the TileCache). (I will attach a picture about it soon.)

by 14364, 11 years ago

Attachment: Tile-Issue.png added

Tile-Issue

comment:7 by jng, 11 years ago

Resolution: wontfix
Status: newclosed

Sorry I cannot accept this patch.

I compared the tile directories that the AJAX Viewer and MgCooker (without this patch) produces. They are identical in directory structure and content.

I then compared the AJAX viewer tile directory against the one produced by MgCooker with this patch. The directory structure is radically different, and the MgCooker one has way more blank tiles generated.

I then noticed the version of Maestro you're using. 5.0.0.7213 is beta 5. Final release is 5.0.0.7698. There have been many changes and fixes to MgCooker in the time between these releases.

I'm certain your issue would be solved by just upgrading your beta 5 installation of Maestro 5.0 to the final release.

comment:8 by Gyufi, 11 years ago

Ok. Thanks. I wait for the final release.

Best regards, Gyufi

comment:9 by jng, 11 years ago

5.0 final (the version I'm referring to) has been out for some time now

http://trac.osgeo.org/mapguide/wiki/maestro/Downloads

comment:10 by Gyufi, 11 years ago

Now we find the solution. Does matter the order of scales in MapDefinition in Finite Display Scales section.

We defined the scales in this order: 90000, 45000, 25000, 15000, 8000, 4000, 2000, 1000, 500, 250. But the right order of scales is 250, 500, 1000, 2000, 4000, 8000, 15000, 25000, 45000, 90000.

Until now it wasn't clear for us.

Best regards, Gyufi

Note: See TracTickets for help on using tickets.