[ZS3] Re: [mapguide-users] Re: [mapguide-internals] Is that a
BUG?adding atemp layer to map, Map.Save() raise MgNotI
Kenneth, GEOGRAF A/S
ks at geograf.dk
Wed Sep 26 05:04:52 EDT 2007
I have reported a bug that may be related:
http://trac.osgeo.org/mapguide/ticket/173
If it is not related, you should create a ticket for the problem.
Regards, Kenneth, GEOGRAF A/S
champingfor skrev:
> 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
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
> = = = = = = = = = = = = = = = = = = = =
>
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
> Àñ£¡
>
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡champingfor
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡champingfor at 163.com
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2007-09-26
> ---------------------------------
> MapGuide Developer Network(China)
> http://www.mgdn.com.cn
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070926/f8f9b146/attachment.html
More information about the mapguide-users
mailing list