• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk MapGuide Enterprise Developer

    Reply
    Contributor
    Posts: 20
    Registered: ‎10-27-2006

    Dynamic Authoring in MapGuide Enterprise

    185 Views, 4 Replies
    12-19-2006 10:21 AM
    In the 6.5 version of MapGuide we were using the dynamic authoring toolkit to create and modify MWX files programmatically. One of the main reasons we wanted to do this is we have a large number of DWG's or SDF's that a user may select from and they need to be swapped in an out of the viewer, but we didn't want to have to load them all as MWF's initially, so it made sense for us to create a MWX and set the drawing files to be used in the XML file.

    We loaded the MWX file into memory, and then changed the DWG layer node ("MapLayers/DWGLayer/DWGLayerDataSources/DWGFeatureDataSource/DWG") at runtime to point to a user specified DWG. Finally we serialized the MWX to disk as a temporary MWF file and passed it back to the user.

    Is there a similar way to perform this task in MapGuide Enterprise?
    Please use plain text.
    *Andy Morsell

    Re: Dynamic Authoring in MapGuide Enterprise

    12-19-2006 11:20 AM in reply to: jvincent
    This is actually much easier, and makes more sense, in MapGuide Enterprise.
    MGE does not share the MWF / MWX / DAT concept at all. Instead, you have a
    repository of datasources, then layers created from those datasources, then
    maps which contains one or more of those layers, and then a web layout that
    contains a map. At the time a web layout is requested by the viewer, the
    entire thing is assembled at the server. For your situation, in MGE, you
    wouldn't even necessarily have to have a map defined at all in the server
    repository. Or even layers for that matter. Using the API you could
    assemble the map from underlying feature sources and dynamically assemble
    the layers and maps. You would still have to develop the interface that
    lets the user choose from (and optionally style) the available layers and
    then return the resultant map, but this can all be done using the
    server-side API.


    --
    Andy Morsell, P.E.
    Spatial Integrators, Inc.
    http://www.SpatialGIS.com

    wrote in message news:5430476@discussion.autodesk.com...
    In the 6.5 version of MapGuide we were using the dynamic authoring toolkit
    to create and modify MWX files programmatically. One of the main reasons we
    wanted to do this is we have a large number of DWG's or SDF's that a user
    may select from and they need to be swapped in an out of the viewer, but we
    didn't want to have to load them all as MWF's initially, so it made sense
    for us to create a MWX and set the drawing files to be used in the XML file.

    We loaded the MWX file into memory, and then changed the DWG layer node
    ("MapLayers/DWGLayer/DWGLayerDataSources/DWGFeatureDataSource/DWG") at
    runtime to point to a user specified DWG. Finally we serialized the MWX to
    disk as a temporary MWF file and passed it back to the user.

    Is there a similar way to perform this task in MapGuide Enterprise?
    Please use plain text.
    *Jason Birch

    Re: Dynamic Authoring in MapGuide Enterprise

    12-19-2006 09:19 PM in reply to: jvincent
    Andy Morsell wrote:
    > This is actually much easier, and makes more sense, in MapGuide Enterprise.

    Bob Bray's sessions really cover this kind of stuff well:

    http://au.autodesk.com/sessions/civilandgeospatial/?keyword=MapGuide&track=2430

    Jason
    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎11-08-2006

    Re: Dynamic Authoring in MapGuide Enterprise

    12-21-2006 06:19 AM in reply to: jvincent
    We were also using the same method, an mwx template the serialized mwx when the user start a connection to the website.
    It's possible to do it wiht MapGuide enterprise because it start session for each connection, then you can edit the map in the session (swapping sdf sources, edit filter, etc...). the best example for doing this is the " Change Layers via DOM / Show buildings built after 1980. " in the "modifying_maps_and_layers" dev sample. it create a layer with a new filter, changing the datasource follow the same way.. Message was edited by: dhequet
    Please use plain text.
    Contributor
    Posts: 20
    Registered: ‎10-27-2006

    Re: Dynamic Authoring in MapGuide Enterprise

    01-15-2007 12:51 PM in reply to: jvincent
    I just wanted to thank everyone for all the advice. I think I'm finally moving in the right direction.

    Thanks
    Jon
    Please use plain text.