Global Mapper v26.0

Projections and Datums available in the SDK version 1.2.4

Osei
Osei Global Mapper UserTrusted User
edited May 2008 in SDK
Is there a way by which I can interrogate the Global Mapper SDK for all possible projections and datums?

Comments

  • global_mapper
    global_mapper Administrator
    edited April 2008
    You can use the GM_SelectProjection function to allow the users to select a projection via the projection dialog. You can just look in ProjectionTypes.h for a list of the available projection systems and datums.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • MattC
    MattC Global Mapper User
    edited May 2008
    Hi, I'm Osei's collegue.

    Unfortunately, for various reasons (including multi-language translation) we are not able to use the SelectProjection dialog provided by the SDK.

    My understanding is that to create our own we will have to:
    A. Construct lists of available projections, datums, zones and units
    B. Construct logic that limits the range of datums, zones and units (dependent upon selected projection, datums etc)


    1. Where can we find out the information on which combinations of Projection/Datum/Unit are valid?

    2. Is there any way we can extract this information (available types + valid combos) from the SDK programmatically?
    e.g. from the *.csv files in the SDK\bin directory
    (as things like the zones aren't defined in the ProjecitonTypes.h file)

    If not, do you have any suggestions on the best way to tackle this?


    Any help will be much appreciated, thanks,

    matt
  • global_mapper
    global_mapper Administrator
    edited May 2008
    Matt,

    There is not currently any way to extract that information programmatically from the SDK, nor are the CSV files of any use as they are just used by one of the 3rd party libraries used in Global Mapper and don't have anything to do with the built-in list of projections/datums.

    I think the only possibility here short of you manually creating your own list would be for me to add a function to the SDK that returns some sort of data structure listing every available projection, and the available datums, zones, units, and parameters for that projection. Would this work for you?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com