[mapguide-users] Copying resources from MapGuide Enterprise to
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Wed Jan 13 10:28:22 EST 2010
Before opening a resource, Maestro copies into a temp resource.
That explains the weird path displayed in the error message.
If you restart MapGuide while being connected with Maestro, you
get a new session, and thus the resources are missing.
I have no idea why it would happen more than once though.
As expected, your LayerDefinition is in version 1.3.0,
which explains the previously posted error.
Happy to hear that it works!
Regards, Kenneth Skovhede, GEOGRAF A/S
On 13-01-2010 14:54, sc80 wrote:
> Thanks Kenneth.
> I installed Maestro 2.0 beta 1 but I kept on getting this error:
> So I performed the GetResourceContent and found upon returning to Maestro I
> tried to open the layer again and it worked! I immediately tried to open
> other layers (without performing a GetResourceContent) and they too worked.
> Indeed everything's working now, so i'm happy even if i'm confused as to
> what the issue would have been. I've included the xml from the
> GetResourceContent in case that sheds any light on it for you.
> Thanks again for your help.
> <?xml version="1.0" encoding="UTF-8" ?>
> -<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.3.0.xsd" version="1.3.0">
> <LegendLabel />
> Kenneth Skovhede, GEOGRAF A/S wrote:
>> The data files in the "Repositories/Library" folder is a dbxml database,
>> and not intended for
>> reading or writing by anything but MapGuide (eg. don't modify it with a
>> text editor).
>> The document it refers to the layer, which is an xml document (stored in
>> the dbxml).
>> The numbers are indeed (linenumber, columnnumber), but in the
>> LayerDefinition xml document.
>> I think the problem is caused by using an older version of Maestro which
>> does not recognize
>> LayerDefinition version 1.3.0 (which Studio creates).
>> If you use Maestro 2.0 beta 1, it should open the resource just fine.
>> If not, you can get the actual resource xml by visiting the html test
>> Use the GetResourceContent operation to get the xml, and respond with a
>> mail linking to the xml, and I will see if I can find obvious errors.
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>> On 13-01-2010 11:48, sc80 wrote:
>>> Hi all,
>>> We have been using the trial version of MapGuide Enterprise 2010 however
>>> are now looking to use MapGuide OS v2.1 and would like to utilise the
>>> resources we created with Enterprise. From reading about resources I
>>> it would just be a case of copying the contents of the library folder
>>> (Repositories\Library) for Enterprise to the equivalent location in the
>>> version. When i did this however (having re-created the appropriate
>>> for the data connections) although the data connections work and i am
>>> to preview the features in Maestro (v22.214.171.12410) the layer resources
>>> to have been corrupted as when i try to open them in Maestro I get an
>>> Unable to open the resource
>>> Error Message: There is an error in xml document (2,117)
>>> I've looked into the MgLibraryResourceContents.dbxml but I can't see
>>> anything obviously wrong (although i am very new to mapguide and have
>>> development knowledge). Would this even be the xml document to which it's
>>> referring? and is the (2,117) referring to a row and character position
>>> this document?
>>> Has anyone got any suggestions as to what is causing this or how I might
>>> able to try to resolve this?
>>> I've googled the error, but it was to no avail and the MapGuide Studio
>>> Getting started guide is of little help.
>>> Any help gratefully received.
>>> Thanks in advance.
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
More information about the mapguide-users