L3DT users' community
Large 3D terrain generator

Unable to Re-import Large Mosaic (PNG) Attributes Map

Please report software faults here.

Unable to Re-import Large Mosaic (PNG) Attributes Map

Postby rocket » Tue Nov 03, 2009 12:07 pm

Version: L3DT Professional 2.7.0.42

I've been successfully exporting, layering, and then reimporting my attributes layer previously - however I have encountered a serious problem.

When I try and reimport the map, freeimage either runs out of contiguous memory or the dll crashes.

I exported an Attributes map with no problems:

>> Size (pixels): 24576 x 24576
>> Size (tiles): 6 x 6
>> Tile size: 4096
>> File format: 'PNG' (ext = 'png')

And made edits. However when I go to reimport the mosaic, the application slowly fills up the RAM and then fails (crashing due to freeimage.dll)

Crash Details:
Problem Event Name: APPCRASH
Application Name: L3DT.exe
Application Version: 2.7.0.42
Application Timestamp: 4aeec871
Fault Module Name: FreeImage.dll
Fault Module Version: 3.8.0.0
Fault Module Timestamp: 431b1a5a
Exception Code: c0000005
Exception Offset: 0001305b


It would appear that it is trying to load all the PNG images back in, rather than converting each tile. Given I was able to export the attributes map fine - I figured I would be able to import it back in.

Is there any way I will be able to do this? Would be very handy otherwise I'm not sure how I can get my layered data back in.

---

The logfile doesn't record anything, just the intialization:
Initialising mosaic
>> Mosaic name: 'AM'
>> Map type: 'AM' (code = 40)
>> Filename: 'F:\GIS\working\backup'
>> Size (pixels): 24576 x 24576
>> Size (tiles): 6 x 6
>> Tile size: 4096
>> File format: 'PNG' (ext = 'png')
>> Cached tiles: 32
>> Cached bytes: 1073741824
>> Initialised OK
Updating 'Formats.Project maps.Attributes map.PNG' in app list to match mosaic
Initialising mosaic
>> Mosaic name: 'backup'
>> Map type: 'AM' (code = 40)
>> Filename: 'D:\GIS\Aoraki\~exports\backup\aoraki_master_2_backup'
>> Size (pixels): 24576 x 24576
>> Size (tiles): 6 x 6
>> Tile size: 4096
>> File format: 'PNG' (ext = 'png')
>> Cached tiles: 32
>> Cached bytes: 1073741824
>> Initialised OK


---

I'm going to try converting all the files to BMPs and importing it as an RGB, then turning it into a mosaic, and then copying it/replacing the AM file with. Not sure if that will work...
rocket
Newbie
 
Posts: 1
Joined: Sun Nov 01, 2009 12:30 am
Location: New Zealand

Postby Aaron » Tue Nov 03, 2009 8:56 pm

Hi Rocket,

Thanks for the bug report. I suggest you use the bitmap format instead of PNG. The bitmap plugin uses L3DT's map/memory management, so it should have no such problems.

I'm going to try converting all the files to BMPs and importing it as an RGB, then turning it into a mosaic, and then copying it/replacing the AM file with. Not sure if that will work...


I doubt it. The attributes map is not an RGB colour map. It's a map of two unsigned 8 bit integers indicating the climate ID and the land type ID. It is rendered as (and may be exported as) a colour map only for display purposes.

Best regards,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3691
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron