Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 72
Like Tree6Likes

Code to generate poster prints from mappoint

This is a discussion on Code to generate poster prints from mappoint within the MapPoint Desktop Discussion forums, part of the Map Forums category; I don't do a lot of captures or graphics, I'm a developer and consultant. Nevertheless, I've lowered my prices for ...

  1. #21
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Code to generate poster prints from mappoint

    I don't do a lot of captures or graphics, I'm a developer and consultant.

    Nevertheless, I've lowered my prices for captures to pdf since there seems
    to be an interest. You can get them printed yourselves.

    Mike Mattys
    Mattys Consulting - Custom Programming

  2. #22
    blitzkriegoutlaw is offline Junior Member Yellow Belt
    Join Date
    Mar 2009
    Posts
    17

    Re: Code to generate poster prints from mappoint

    Thank you for the confidence . Actually this little project started out when I could not believe that MapPoint couldn't print maps the size of posters. I tried some PDF or PS printer drivers, but they seemed to hang. I figure this would be something that would be common to do.

    I wrote my initial program fairly quickly, but the project kind-of kept growing from there. In the mean time I got to spend more time learning about COM Office Addins, and C# (most of my main develoment is in C++ or Java so it was nice to try something else), and filling my nights in (we just had our 4th kid 3 weeks ago so my time is a rareity and only late at night).

    Anyway, I have modified the program so that it no longer limits on the image size; However, if the total pixel width or height is greater than 18000 pixels, then it will output a warning asking the user if they are sure they want to do this. This warning dialog does not appear again after the user acknowledges it per program run. I also have added some program statistics (when the map generation started, ended, and the duration).

    Let me know what you think.
    Attached Files Attached Files

  3. #23
    tonyt is offline Junior Member White Belt
    Join Date
    Apr 2009
    Posts
    6

    Re: Code to generate poster prints from mappoint

    fantastic, this works really well....tried various sized maps....opening with microsoft picture viewer gives good options........ The additions are great too, really helps the program.

    Congratulations on your new arrival.

  4. #24
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Code to generate poster prints from mappoint

    Just trying it for the first time.... does it work with MapPoint 2004?

    It registers it and it appears under Tools, but when I click on it nothing happens and it becomes unchecked in the COM Add-ins dialog.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #25
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Code to generate poster prints from mappoint

    In MapPoint 2009, I went to Chicago and put in 30 x 30 and 3500 pixels, I think it would take a day to generate so I aborted.

    5 x 5 seems to be working reasonably! I'll post the map in a few minutes.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  6. #26
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Code to generate poster prints from mappoint

    By the way, I looked in the LargeMapGenerator.htm (in temp) and I see they forgot to update the CONTENT meta info since MapPoint 2004

    HTML Code:
    <HTML xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office">
    
    <HEAD>
    <META NAME="Generator" CONTENT="Microsoft MapPoint 2004">
    
    <style>
    It's clearly generated from MapPoint 2009 because of the copyright info at the bottom.

    HTML Code:
    <br><br>
    <div class="copyright">
    Copyright &copy; and (P) 19882008 Microsoft Corporation and/or its suppliers. All rights reserved. <a href="http://www.microsoft.com/mappoint/">http://www.microsoft.com/mappoint/</a> &copy; Certain mapping and direction data &copy; 2008 NAVTEQ. All rights reserved. The Data for areas of Canada includes information taken with permission from Canadian authorities, including: &copy; Her Majesty the Queen in Right of Canada, &copy; Queen's Printer for Ontario. NAVTEQ and NAVTEQ ON BOARD are trademarks of NAVTEQ. &copy; 2008 Tele Atlas North America, Inc. All rights reserved. Tele Atlas and Tele Atlas North America are trademarks of Tele Atlas, Inc. &copy; 2008 by Applied Geographic Systems. All rights reserved.
    </div>
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  7. #27
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Finished!

    Generating Panel (5/5) ...
    Combining Map ...
    pamtogif: computing colormap...
    pamtogif: 37 colors found

    Start Time: 5/1/2009 12:53:58 PM
    End Time: 5/1/2009 12:59:00 PM
    Duration: 00:05:01.3555176

    Successfully generated map image!
    By the way, I don't think it ever said where it created it... where is the output?

    I saw in temp it had been pasting together an enormous file, but it's not there anymore.

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  8. #28
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    My Documents

    Sorry, I found it in My Documents.

    I'm curious that the panels in the temp folder are all around 30 MB and the file I saw growing in temp was almost a GB, but this LargeMap.gif is only 3 MB...

    By the way, neither the Windows Image and Fax Viewer (built into Windows XP) nor Internet Explorer can open it properly, but HyperSnap handles it well.

    Looks great! I did notice that the current screen view when you start becomes the upper right panel. (I had the map over downtown Chicago). Would it make sense for the current map view to be the center? That's what I expected. Now that's I've done it once though I can figure it out. It might just be hard to visualize how many panels I need and the extents of the generated map. I guess I can always plan to do extra panels and then crop it in HyperSnap.

    Anyway fun tool! Good work!

    Eric
    Attached Files Attached Files
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  9. #29
    blitzkriegoutlaw is offline Junior Member Yellow Belt
    Join Date
    Mar 2009
    Posts
    17

    Re: Code to generate poster prints from mappoint

    NetPBM is a fairly fat format taking up like 16 bytes per pixel. GIF uses a index compression, and since MapPoint maps uses very few colors, the compression is very high.

    I was thinking about creating the tool's temp folder with folder/file compression enabled. These days most processors can compress/uncompress this kind of data on in CPU faster than in I/O (unless you have some kind of high-performance raid). You should see an increase in performance and a decrease in temporary disk space.

    You specify the output file in the original input dialog. I'll modify the progress dialog to output the final file location at the end of the run.

    I don't know what the worth would be to support MapPoint 2004. It looks feasible but is it worth the effort? I figure most people would be on 2006/2009 these days.

    I'm not sure starting in the middle of the map will help you figure out how many panels you need. Most of the time its either trial and error, guessing, or over estimate. No matter what, you still would want to put the GIF file into an image editor to crop it, modify it, add copyrights (to be legal), swap colors, etc. I was thinking at one time specifying the panel width and height in geoUnits (i.e., miles) so you can figure out the number of panels if you knew the total map size in miles, but again I think trial and error would be the best approach. At least I added an abort button so you can stop the generation if things on the screen don't look correct.

    One more thing I just throught of. The max pixel width and height for GIF is an unsigned short 65535. I can put a check in to make sure the width and height never go over 60000. A 30x30x3500 map is 105000x105000 size map, which would of definitely failed eventually.

    Other than that, do you think we can call it good for now? If so, I can upload the project and people can make enhancements from there.
    Last edited by blitzkriegoutlaw; 05-01-2009 at 05:43 PM.

  10. #30
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Code to generate poster prints from mappoint

    Yeah it works and is fast and is very useful. From playing with it, I'd say it's good for now..

    There is a vBulletin add-in "Project Tools" for shared development I've been thinking about adding to MapForums... http://www.vbulletin.com/forum/showthread.php?t=286380 do you think it would be useful for this?

    By the way, do you have any baby pics?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Page 3 of 8 FirstFirst 12345 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Top Poster
    By Eric Frost in forum General Chat
    Replies: 6
    Last Post: 05-05-2008, 05:46 AM
  2. how to generate map url directly from Microsoft site ?
    By shai_ban007 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-02-2007, 01:08 PM
  3. Large prints from MapPoint
    By Jmorelos in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-02-2005, 03:08 PM
  4. Can I use MapPoint to generate map coordinates on a book map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-23-2003, 06:33 PM
  5. I am trying to generate a pushpin map with several....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-02-2001, 07:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127