Features style

ikabott
ikabott Global Mapper UserTrusted User
edited November 2009 in SDK
Hi,

My features come divided in different files by class (or category). How can I give to all the features of a specific layer the same class number? Do I have to go one by one?

How do I loop through all the Area features of the layer with security not to forget area feature?

Thanks a lot
Oscar

Comments

  • global_mapper
    global_mapper Administrator
    edited November 2009
    Oscar,

    To loop through and edit all of the area features in a layer, do the following:

    1) Call GM_GetLayerInfo to get the number of areas in the layer (mNumAreas)
    2) Loop from 0 to mNumAreas
    a) Call GM_GetAreaFeature to get the area information
    b) Do whatever editing to the area that you need to do based on the type/attributes
    c) Call GM_FreeAreaFeature

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com