Thanks Dave, not exactly what I want but close enough. What's interesting when using the SetWindowSizePixels(), is for example I want to make my map window a perfect square, so I used GISDK's immediate execution of:

SetWindowSizePixels(, 600, 600)

Based from the online help, this should resize my map window to a perfect square 600 pixels x 600 pixels but it didn't. The window was off by a hair, when I tried to specify a map width of 28miles by 28miles, Maptitude resized it as 28miles by 27.952miles. However, when I reran the command using 600x601 instead, the result was perfectly square map window.

SetWindowSizePixels(, 600, 601)

Overall, I'm now at least able to sort of accomplish what I wanted.

Thanks again Dave.

Viktor Keenan de la Hoz - Senior GIS Technician
City of Phoenix - Street Transportation Department
Design and Construction Management Division



"Dave Twehues" <[EMAIL PROTECTED]>

03/04/2005 01:12 PM
Please respond to Maptitude

       
        To:        <[email protected]>
        cc:        
        Subject:        RE: [Maptitude] scaling the map window



Viktor,
I did something similar a while back that I think is what you want to do.  I wanted to have a large area, 1:250,000 but, at a larger scale 1:24,000.  So I went through the region and tiled the map systematically from upper left to bottom right.  To do this I needed the map to be sized exactly so I didn't get any overlap between tiles.  Something similar to...
 
1. Set your aspect ratio for your window to match the aspect ratio of the size you want to display...SetWindowSizePixels()
2. Use SetMapScope() to set the extent of the window
 
Hope this is what you meant. Good luck!
 
Dave
 

David Twehues
Vogt Williams & Bowen LLC

(614) 225-9500

http://www.vwbresearch.com

 

-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Friday, March 04, 2005 2:40 PM
To:
[email protected]
Subject:
Re: [Maptitude] scaling the map window


I can't seem to find the specific command that would allow me to specify the map window width and height in earth units (miles, feet, km, etc...).  I'm looking to improve on Maptitude's built in feature [Map Scale] - [ Adjust Map Width and Height] that would automatically resize the map window to specific earth units in BOTH plans (east-west AND north-south distances), not just one or the other.


For example, I want to create a map view that encompasses exactly an area of 10miles x 10miles, without having to manually adjust the map window.  I've been looking at some of the 'Set' commands but none seem to apply. Anyone successfully attempted this already?


Regards,

Viktor Keenan de la Hoz - Senior GIS Technician
City of Phoenix - Street Transportation Department
Design and Construction Management Division


Yahoo! Groups Sponsor
ADVERTISEMENT
click here




Yahoo! Groups Links
Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to