[mapguide-users] Create programmatically a map

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Feb 18 13:52:34 EST 2009


There are/were problems reading data using the MgByteReader, as it would 
not return more than 8K.
You are using the native API, which, IMO, has some quirks.
Maestro uses the http interface to store the file, so that is equivalent 
to posting using the webform.

Regards, Kenneth Skovhede, GEOGRAF A/S



sekko970 skrev:
> The file is 21K.
> I tryed also to load it directly from Maestro, and I have had no problem.
>
> ------------------------------------------------------------------------------------------------------
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>   
>> Just to be sure...
>>
>> The xml you posted is the ResourceHeader, and not the ResourceContent, 
>> so it does not really show what the problem may be.
>> The error from the log states that the runtime map is not created, which 
>> is strange because a WebLayout cannot reference a runtime map.
>> The other error you posted seemed to indicate that the Print command was 
>> invalid inside the WebLayout.
>>
>> Can you try so save the xml, just before you write it to the MgByteStream?
>> Then try to post the file, using the SetResource in the webform 
>> mentioned earlier.
>> If you get the same error, try to post the file somewhere, and provide a 
>> link.
>> Be carefull not to copy/paste, but post the actual file.
>>
>> Btw. how large is the file? larger than 8K?
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> _______________________________________________
>> 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/20090218/929ba004/attachment.html


More information about the mapguide-users mailing list