Hi,Kenneth, GEOGRAF A/S

        Thank you for your replay!
    actually ,the same code goes well in mgos 1.1 ,but raise the exception in 
mgos 1.2 .
    
        so, there must be some difference between the two version which I dont' 
know .

        so ,maybe I have to switch back to mgos1.1 to cross it over .

    But,If someone knows the reasion ,please let me know .Thank you !
        

======= 2007-09-26 01:57:59 您在来信中写道:=======

>I have no trouble adding temporary feature sources to a map.
>
>You might get that exception if you try to save the wrong class instance.
>Beware that the classes are inherited, and calling Save on the base 
>class might give that exception.
>Also beware that there are TWO types of maps, a mapdefinition, and a 
>runtime map.
>You create a runtime map based on a map definition, but not the other way.
>You cannot save a runtime map onto a mapdefinition or the other way around.
>
>Take a look at the viewer files, there is some code that does this when 
>creating buffers.
>The code is avalible in the programming language you installed mapguide 
>with.
>
>Most of the people who read the "internals" list also read the users 
>list, so there is no need to cross post.
>
>
>Regards, Kenneth, GEOGRAF A/S
>
>
>
>Champin skrev:
>> Is that a BUG?adding a temp layer to map, Map.Save() raise
>> MgNotImplementedException
>>
>>
>> I have post some thread in MapGuide  Users list,but there is no answer yet.
>>
>> http://www.nabble.com/map.Save%28%29-raise-MgNotImplementedException%EF%BC%8Cprogrammatically-add-layer-to-a-map-tf4510561s16610.html
>>
>> http://www.nabble.com/How-to-Create-a-layerDefinition-programmtically-%2C-using-xml--tf4514122s16610.html
>>
>>
>> Map.Save(Resource) raise MgNotImplementedException when I am trying to save
>> the temp layer to the map.
>>
>> the same code goes well in MGE 2007(MGOS 1.1?) but failed in MGOS 1.2.
>>
>> so, is this a bug? if not, what am i doing wrong?
>>
>> Thanks
>>
>>   
>_______________________________________________
>mapguide-users mailing list
>[email protected]
>http://lists.osgeo.org/mailman/listinfo/mapguide-users

= = = = = = = = = = = = = = = = = = = =
                        

        致
礼!
 
                                 
        champingfor
[EMAIL PROTECTED]
          2007-09-26
---------------------------------
MapGuide Developer Network(China)
http://www.mgdn.com.cn

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to