www.sdlsuite.com Forum Index www.sdlsuite.com
Discussion of technical aspects of the SDL Component Suite
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printing maps

 
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GeoPack
View previous topic :: View next topic  
Author Message
psimon



Joined: 23 Apr 2009
Posts: 1

PostPosted: Wed Apr 29, 2009 4:36 pm    Post subject: Printing maps Reply with quote

Hello,
I'am writing a program that should print a map loaded into GeoMap component. If I use the PrintIt method it (as is said in help) prints the visible portion of the map (including landmarks). If i use the SendToOpenPrinter method I can print the map, but no landmarks are printed. Is this behavior normal, or Iam missing something?
Also our customer woul like to use very high resolution(like 25600x25600) maps with GeoMap component. Is there a way to work around the 38 000 000 pixel limit?

Pavel Šimon
ARIT s.r.o.
Jánošíkova 1300
142 00 Praha 4
Back to top
View user's profile Send private message
hlohning



Joined: 08 Sep 2006
Posts: 277
Location: Austria

PostPosted: Thu Apr 30, 2009 1:17 pm    Post subject: Reply with quote

Hi Pavel,

I just tested the CopyToOpenPrinter method - it prints the landmarks as expected.... so, I don't have the slightest idea what's wrong. If you manage to boil down your code to only the essential lines, you can send me the test program for further inspection.

Regarding the pixel limit: I doubt that using a 25600x25600 map will work with TGeoMap since TGeoMap holds the entire map image in memory. A map of that size uses 2.62 GB of memory just for the map, not to mention internal buffers which require roughly the same amount of memory.

The 38 000 000 pixel limit is easy to change if you have the sources (it's just a constant in the code). However, you should be aware of the fact that certain Windows versions (the older ones) will crash if you increase this constant too much.


Regards,

Hans
_________________
Hans Lohninger
Software Development Lohninger
http://www.lohninger.com/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> GeoPack All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group