+ Reply to Thread
Results 1 to 3 of 3

Thread: Mercator not drawing

  1. #1
    martin_dk is offline Global Mapper User
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mercator not drawing

    I'm in the process of evaluating your SDK (v1.3.2) and have trouble rendering an ecw file.
    I have an ecw file which renders fine (using GM_DrawLayerListToMemory).
    I converted the projection of the same file in GlobalMapper from GEODETIC to MERCATOR and now it doesn't render.
    However when omitting worldBounds (null) in GM_DrawLayerListToMemory it renders. What gives?
    I listed the metadata from globalmapper below (the PROJ_NAME for mercator-projection files reads MRAFRICA?? )

    --- does not work with worldBounds set ---
    FILENAME=C:\data\mercator.ecw
    DESCRIPTION=mercator.ecw
    UPPER LEFT X=1142491.638
    UPPER LEFT Y=7531076.733
    LOWER RIGHT X=1214164.370
    LOWER RIGHT Y=7463084.549
    WEST LONGITUDE=10° 15' 47.4372" E
    NORTH LATITUDE=56° 02' 26.9551" N
    EAST LONGITUDE=10° 54' 25.2868" E
    SOUTH LATITUDE=55° 41' 50.6199" N
    PROJ_DESC=Mercator / WGS84 / meters
    PROJ_DATUM=WGS84
    PROJ_UNITS=meters
    EPSG_CODE=3395
    COVERED AREA=591.85 sq mi
    NUM COLUMNS=6952
    NUM ROWS=6595
    NUM_BANDS=3
    PIXEL WIDTH=10.31 meters
    PIXEL HEIGHT=10.31 meters
    BIT_DEPTH=24
    PROJ_NAME=MRAFRICA
    DATUM_NAME=WGS84
    TARGET_COMPRESSION=1:10

    --- works with worldBounds set ---
    FILENAME=C:\data\geo.ecw
    DESCRIPTION=geo.ecw
    UPPER LEFT X=10.2631770084
    UPPER LEFT Y=56.0408208537
    LOWER RIGHT X=10.9070169482
    LOWER RIGHT Y=55.6973944219
    WEST LONGITUDE=10° 15' 47.4372" E
    NORTH LATITUDE=56° 02' 26.9551" N
    EAST LONGITUDE=10° 54' 25.2610" E
    SOUTH LATITUDE=55° 41' 50.6199" N
    PROJ_DESC=Geographic (Latitude/Longitude) / WGS84 / arc degrees
    PROJ_DATUM=WGS84
    PROJ_UNITS=arc degrees
    EPSG_CODE=4326
    COVERED AREA=591.84 sq mi
    NUM COLUMNS=12364
    NUM ROWS=6595
    NUM_BANDS=3
    PIXEL WIDTH=0.0000521 arc degrees
    PIXEL HEIGHT=0.0000521 arc degrees
    BIT_DEPTH=24
    PROJ_NAME=GEODETIC
    DATUM_NAME=WGS84
    TARGET_COMPRESSION=1:10

  2. #2
    global_mapper is offline Administrator
    Join Date
    Jun 2007
    Posts
    7,236
    Thanks
    2
    Thanked 611 Times in 594 Posts

    Default

    What coordinates are you passing in for your world bounds when you try to draw? Note that the bounding box for GM_DrawLayerList should have coordinates in whatever projection is currently set. By default the display projection will be that of the first loaded file, so when you load a Mercator ECW file as your first file the display projection will by default be set to a Mercator projection, so you will then need to pass in Mercator coordinates in your world bounds. If you always want to pass in lat/lon values, use GM_SetProjection to change the display projection to GM_PRJ_GEO.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com

  3. #3
    martin_dk is offline Global Mapper User
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok thanks.
    Last edited by martin_dk; 02-22-2010 at 08:10 AM.

+ Reply to 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