Programming: Map Grabber

Wednesday, August 8, 2007

Map Grabber

Map Grabber

Grab maps ....


Prepare maps for your holidays, your walking, your bike trips, your geocaching... You 
can next print them or use them with your GPS!
This utility automatically scrolls, captures, assembles and saves maps (or other window content) from a Web page to a JPG file.
This program is free ware. Written in C# .NET2.0
Project source code is licensed under a free software/open source licensing terms:
GNU General Public License, version 2.0 or later


How to use?


- Go to the desired Web site, maximize your browser window.
- Locate the desired area on the map and zoom to the desired scale.
- In order to MapGrabber automatically realize the right scrolling, you have to parameter it according to the Web site.
Press the button 1 in MapGrabber (see illustrations), next click on the left/top corner of the map. To avoid capturing the toolbar, you can define the corner just below it.
Press the button 2 in MapGrabber, next click on the right/bottom corner of the map.
- To devide output image by slises, set the steps in one part.
- If you would like to calibrate maps in time of grabbing, you can use GPS Callibration part of the MapGrabber

You can now Save the settings for future use; each Web site will have its own settings.
The main screen:


- Menu:
Settings - Load and save your current settings for future using.
Help - The link to this page and information about me.

- Map Settings:
The position of left/top and right/left bounds of map, without active elements, on the screen. You can set points by enter the coordinates or by clicking on button "Point" and dragging the  icon to he's place on the screen.

- Capture Settings:
Delay Scroll - When Map grabber moving the map in map display program (Firefox), to program take time to response for her events. So need to delay Map grabber events according to response of display program.
Delay Capture - When Map grabber the map in map display program (Firefox), to load new images take some time. So you must set the parameter according to speed image loading.
Number of X/Y Steps - How match steps to do.

- Output image settings:
Divide Image X/Y - By how match steps divide the output image. Some programs that using output maps on pocket PC, take a lot time to load big image.
Map Path - The output image folder.

- With GPS calibration - Enable GPS automatic GPS calibration of output map.

- Show/Hide points - show/hide the map settings and GPS calibration points.

- GPS Calibration:
First point X/Y - The point of place that you know her GPS coordinates. You can set points by enter the coordinates or by clicking on button "Point" and dragging the icon to her place on the screen. You can use the magnifier to put the icon exactly to place of GPS coordinates.
First point Lat/Lon - The GPS coordinates of point.


Magnifier/Status window:




Points:



Prior to start capturing, set the amount of horizontal and vertical steps you desire.
Press the button Start.

Know Bugs:

found by me and another users.
- Memory out when grabbing more than 10X10 screens.

TODO:

what in next version.
- grab large size maps
- The GPSTuner have auto map loading feature. We can use maps with different resolution, and different level of information on map. That provide option in time of zoom out or zoom in, change maps automatically. So I want to add feature - grabbing maps with some levels of zoom.

Donation


Map Grabber is free software. The author has spent a large amount of time and effort in the development and improvement of it. The continuous development of Map Grabber needs your support. The best way to support and encourage the author, so that this project can be moved forward always, is to donate for Map Grabber project. Click the button below to donate for Map Grabber via PayPal.


Download

Map Grabber may not be bundled with other software, included on CDs etc, linked to from other web sites or made available for download elsewhere. Link to this page instead.


Version 1.2.3 - 12/05/08

MapGrabber1.2.3Installer.zip - Installation
MapGrabber1.2.3Binnary.zip - Binnary
Source
MapGrabber1.2.3Source.zip - Source
New Features:
- Added output image format choose (JPG, PNG, TIFF).


Version 1.2.2 - 26/10/07

MapGrabber1.2.2Installer.zip - Installation
MapGrabber1.2.2Binnary.zip - Binnary
Source
MapGrabber1.2.2Source.zip - Source
Resolved bugs:
- resolved bug with GPS collibration.


Version 1.2.1 - 25/10/07

MapGrabber1.2.1Installer.zip - Installation
MapGrabber1.2.1Binnary.zip - Binnary
Source
MapGrabber1.2.1Source.zip - Source
New in version:
- changes in user interface.

Version 1.2 - 21/09/07
MapGrabber1.2Installer.zip - Installation
MapGrabber1.2Binnary.zip - Binnary
Source
MapGrabber1.2Source.zip - Source
New in version:
- status bar in grabbing time.
Resolved bugs:
- resolved some bugs.

Version 1.1 - 08/08/07
MapGrabber1.1Installer.zip - Installation
MapGrabber1.1Binnary.zip - Binnary
Source
MapGrabber1.1Source.zip - Source
New in version:
- change map cursor when selecting points for calibration.
- preview the selected points (bounds and calibration).
Resolved bugs:
- This is related to application GPS calibration function. German numbers are separated using the colon symbol like 53,231245 , and application uses the full stop as the separator like 53.231245.
- In time of grabbing, pressing on button ESC cause exception.

Version 1.0 - 6/28/07
MapGrabberInstaller.zip - Installation
MapGrabberBinnary.zip - Binnary
Source
MapGrabberSource.zip - Source


Links / Credits


Project Page on MSDN Code Gallery
Project Page on CodePlex
Project Page on CodeProject

GPS Tuner - is an off-road navigation software for Pocket PC devices. The maps of Map Grabber is collibrated for this programm.

Capturing the Screen Image in C#
Processing Global Mouse and Keyboard Hooks in C#



Disclaimer

Personal use only. Use at your own risk. No technical support given. Don't copy or distribute copyrighted media.
Screen captures will never replace a bought genuine printed map.

9 comments:

Micha said...

Thanks so much. The Programm works fantastic with the German MagicMaps Top25 Cards.

The best i´ve seen for a long time

Regards
Michael

Igor said...

I'm quite happy with your program! It is very useful for off-road gps driving. Some of my remarks:
1) DO NOT MOVE THE MOUSE WHILE GRABBING IS IN PROGRESS!! It would be very useful if the MapGrabber could act as a back-ground process.
2) It would be very useful if ‘output image settings’ has an option: "Save results to single output file".
3) It would be very useful if output files can be saved with "overlaps". I would like to use panorama stitching programs to generate overall maps of the single images. Example: freeware "AutoStitch" (http://www.cs.ubc.ca/~mbrown/autostitch/autostitch.html)

Great stuff! Keep up the good work!

Anonymous said...

Hi, this program works, that is great. But at the moment it is really unfinished. It has many bugs (saving settings), the user interface is super confusing, the UI should come with reasonable presets.

Thanks anyway for your work!

Karan said...

There seems to be a problem while grabbing maps from Wikimapia if I try to capture more than one row. If I choose, say, a 4 x 2 grid for capture, the software captures the first screen, then pans three screens to the right for three captures, moves one row down but then fails to pan to the left. It always fails to reverse the screen panning after moving one row down whatever the size of the map grid I choose. The cursor moves but the screen does not. I have tried increasing the mouse capture delay but it did not help. This seems to be happening only with Wikimapia. Has anyone else had the same expesience?

Yuri Panshin said...

Thanks Karan for your comments.
I checked it on WikiMapia, and found that all work perfectly.
So can you provide some information about your environment, something like: Your browser version, screen resolution. I will try to check it.

Karan said...

Hi Yuri,

Thanks for helping out. I use Internet Explorer 7 on Windows XP Pro. I have experimented further and found that this bug varies depending upon the location one is trying to capture. Try the following link in Wikimapia and try to capture a screen size of 3 x 3. You will be able to replicate this bug.

http://wikimapia.org/#lat=30.6213869&lon=77.3473656&z=17&l=0&m=h&v=1

Yuri Panshin said...

Hi Karan
I checked the map with Explorer 7, and with Firefox but didn't replicate the bug.
I think, by your explaining of bug, you put the points on controls of the map. The points must be placed inside of rectangle like on the picture:
http://ypanshin.googlepages.com/Tmp.JPG

Karan said...

Thanks Yuri. It worked. I reduced the size of the rectangle and the problem disappeared.

David said...

Hi,

Looks very useful. Some suggestions...

Not too helpful to get a warning 'one of the parameters is wrong format'. Better to say which one.

I use twin monitors with the secondary on the left, which results in negative x coordinates from the left hand screen.

It would be useful to allow negative x coordinates to cater for this configuration.

I would much prefer that all captures go into the current default folder with auto-incremented file names rather than choosing a new folder for each session. Could this be an option?

Integer seconds of delay seems excessively coarse. Better to be in milliseconds so half-second etc can be entered.

I'm getting expected area coverage in initial tests - ie not giving the expected coverage from the start point. Maybe it's finger trouble, but maybe not.

Home Wedding Albums Travel Programming

©Yuri&Viki Panshin 2007