Resultados 1 al 10 de 10

Tema: HowTo Crop russian military maps with GlobalMapper

  1. #1
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado HowTo Crop russian military maps with GlobalMapper

    For the italian western Alps the russian military maps is the best you can find. This is als true for other regions of the world.
    But unfortunately this maps are very small and have a white frame.

    With GlobalMapper you can put this maps together and merge them to one big map and export it as ECW for use it on your Aventura or in CompeGPS Land.
    But the white Frame is still there and must be crop, to do this manually is a lot of work.
    That's the reason why I write a Perl script to generate a batch processing
    script for GlobalMapper.
    You can use this generated batch script in GlobalMapper by calling it over the menu item "Run script...".

    You find my perl script under
    genCropGMBatch.pl.
    The actual version is 0.4.1

    For use this you need GlobalMapper and also Perl must be installed.

    For a first test you could get the russian Topo 100k maps of the Provence:
    http://en.poehali.org/maps/7.75/43.83
    4 maps are enough for a test.
    Use IE, Firefox does not really works with this page.
    Don't forget the calibration files withe the extension .map!

    Some Examples:

    Código:
    genCropGMBatch.pl -o alpsAE100k -p geoWGS84 100k*.map
    You find the geoWGS84.prj in the Zip-archive.
    Projections files can be generated with GlobalMapper.
    I f you don't want to change the projection, just don't set the option -p.

    The generated GlobalMapper batch script generate a file alpsAE100k.ecw and use the AUTO-Crop method of GlobalMapper.
    The map will also be reprojected to Lat/Lon with the map date WGS84.
    But not always the AUTo crop method of GlobalMapper works fine!

    Código:
    genCropGMBatch.pl -o alpsGT100k -p geoWGS84 -f gotiff{rus100k.pal} -m map 100k*.map
    This generated batch script use the palette rus100k.pal (you can gnerate palettes with Irfanview. The example palette is also in the ZIP-archive.
    If you don't use your own palette, GlobalMapper will need longer)
    The batch script create a GEOTIFF with the name alpsGT100k.tif and use the coordinates of the edges of the .map-files to crop the maps.
    This you shall use, of the calibration points are on the edges of the maps.
    Additional clabrations points in the .map-file is not a problem.

    Código:
    genCropGMBatch.pl -o alpsPJ100k -d  provence -p geoWGS84 -f jpeg -m pixels=71,87,86,70 -b 200 -c 0.1 100k*.map
    crop the maps by cutting 71 pixels on the left, 87 on the bottom, 86 on the right and 70 on the top side of each map.
    The Map is exported as JPEG with the name provence.jpg and the mandatory Worldfile.
    The batch script is named with alpsPJ100k.gms
    This method works always, but the result is not perfect.
    Additional the brightness of the map is changed
    (Brightness 200, 256 no changes, 0(white)-512(black) are valid values)
    Also the contrast is changed (-c 0.1 default is 2.0, valid values are 0.1 to 4.0).

    Just play a little bit around with GlobalMapper to understand what happens.


    With
    Código:
    genCropGMBatch.pl -h
    you get the online help.

    Also put a view on the generated batch script.

    The Option -s:
    This export every map separately.
    With -d <prefix> you can set a prefix on front of the map name.
    You shall use this if the export format is identical with the import format.

    Código:
    genCropGMBatch.pl -o 100kNS -d 100kNS -m geo -p geoWGS84 -f png{rus100k.pal} -s  100k*.map
    You get a set of cropped maps.

    You can also say, that you don't want to crop any of the maps.
    This is usefull if you have already cropped maps and just want to put them to one map togeher.
    Just use -m none in this case.
    Código:
    genCropGMBatch.pl -o 100kN -b 200 -m none -p geoWGS84 -f ecw  100kNS*.png
    Now I used the cropped maps of the step before and brighten them up with -b 200, because the aventura prefer brighter maps.

    So you can split the the whole process to two steps.

    Ray

    P.s.: Is anybody interested in the ECW of the whole western Alps, based on the russian military map?
    Última edición por ray; 12/01/2010 a las 09:05
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  2. #2
    Pascal Guest

    Predeterminado

    For Italy, maps like Kompass are not better?

  3. #3
    Fecha de ingreso
    28 Aug, 05
    Ubicación
    Memmingen, Germany
    Mensajes
    112

    Predeterminado

    Hi Pascal,

    there is no Kompass map from Western Alps - AFAIK

    Regards
    Anton

  4. #4
    Pascal Guest

    Predeterminado

    Can you send me this map? to have a look

  5. #5
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    Yes I can, but don't aspect to much.
    They are better than the IGM maps.

    I will send you a PM with a download link, I don't know where I can find your email address.
    It's a 900 MB big ECW.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  6. #6
    Pascal Guest

    Predeterminado

    pascal @at@ compegps.com

  7. #7
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    Pascal, I send you a link via PM, is this okay?



    @macnetz gave already the answer.
    Kompass maps only exists for the eastern italian Alps and for some small others parts like Elba.

    For the western italian Alps the situation is not very good.
    Near the french border the french IGN maybe will be usefull.

    There exist a 50k series (french & italian cooperation, paid by EU) which is excellent but just as paper maps.
    The paper maps of IGC 50k (http://www.igctorino.it/ita/carte_1-50000.asp) covers the whole western italian western alps, but to calibrate this maps is nearly impossible.

    In a digital version there exists the IGM 25k maps. I'm really don't want to use them, because they are very difficult to read.

    And the russian military 50k maps.
    This map use russian letters and is also very old.
    Luckily I have the VMAP of Italy.
    Information about hiking ways (name, route, ...) are missing.
    In some case we could get this information from OSM (but the most hiking routes in the western Alps still missed in OSM).
    (sorry, I don't want to discuss about OSM here, I just want to show that OSM data can be usefull)
    The usage of data of www.geonames.org would be also very useful.

    The russian military maps is in many regions of the world the only free available maps. I hope they are all in the same way calibrated (on the edge of the map), so it is just a matter of a powerfull PC to create big merged maps.
    An example is the maroc map of @pepin.

    I know just this source of the russian military maps:
    http://mapstor.com/map/050k--l32-087-4.html
    http://en.poehali.org/maps/7.38/45.42

    But also the free maps of Canada http://www.geogratis.gc.ca/geogratis...ch.do?id=10119 need to be cropped.
    It's not much work to support the cropping of this maps by my script.
    In the XML-Files beside this maps, there are the bounds (edges) defined.
    I don't plan to travel to Canada, so I will do this first, if some ask for it.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  8. #8
    Pascal Guest

    Predeterminado

    no problem, I am downloading...

  9. #9
    Fecha de ingreso
    28 Jan, 05
    Ubicación
    Asturias
    Mensajes
    1,455

    Predeterminado

    Ray,

    if you have a good digitalization of the IGC 50k maps I don't think it would be so difficult calibrate them. You can near always find a bunch of reliable places to use as control points: road crosses, summits, towns... Any good digital road map would do the trick: position of the roads needs to be known with much accuracy to provide computer assisted navigation.

    Furhermore you have the France topo 25 and the Swiss topo maps near this area, to look for more calibrations points.

    I have no IGC maps to prove this point, but many times I had to calibrate maps with no projection information on them. It takes longer of course, but it is not impossible.

  10. #10
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    Version 0.5.0, 11.01.2010
    support of canadian CanMatrix,
    rename crop method geo to 'map' for russian military topo maps

    The new version supports the canadian CanMatrix maps.

    Código:
    genCropGMBatch.pl -m canmatrix -p mercatorWGS84 -o Canmatrix50k *.tif
    Take care if you use the crop method -m canmatrix,
    that you use the GEOTIFF-Maps. The XML-Files must be in the same folder,
    because I read the bounding information from the XML files!

    I change the name of the crop method of the russian military topo maps from
    -m geo
    to
    -m map

    Código:
    genCropGMBatch.pl -m map -s -f geotiff -p geoWGS84 -o Alps50k 050k*.map
    You have to use the Ozi-Map-Files instead of the maps!


    I put an example of the canadian CanMatrix 50k map online:
    http://www.megaupload.com/?d=3T8OKIZK
    It's the area around Halifax.
    I change the projection from UTM with NAD84 to Mercator and WGS84.

    The import of this ECW works fine with TTQV ST 4.127.
    But unfortunately CompeGPS Land 6.8.5 can't read this ECW!

    ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  


About us

    CompeGPS Team SL All rights reserved © 2012

Follow us on

Twitter Facebook youtube Google Plus Flickr