[mapguide-users] Problem with legend - style

Kenneth, GEOGRAF A/S ks at geograf.dk
Tue Jun 5 02:59:49 EDT 2007


I'm just happy to help :D

The layer will stay as it is in the server.
If you modify it with studio, it will get the extra legend stuff.
If you don't want extra/changed theming there is no need to update it, 
even if the data changes.
Not sure that was the question?

Regards, GEOGRAF A/S



martijni wrote:
> Kenneth,
>
> I feel pretty stupid right now... Instead of defining the Layerdefinition I
> always gave as resource FeatureSource :x
>
> So I'm thanking you for the last post for what you've typed in. It's working
> now. My only question left is that when I remove the style types, that
> shouldn't be seen in the legend and upload it like we did now, and the
> information in the accesdatabase gets updated this automatic changes in the
> viewer. Or do you have to update the LayerDefinition each time?
>
> Thanks for the help!
>
>
>
> Kenneth, GEOGRAF A/S wrote:
>   
>> I can get a similar exception if I type in
>> Library://tank.MapDefinition
>> as the resource id, if I type:
>> Library://tank.LayerDefinition
>> it all goes fine.
>>
>> Regards, Kenneth, GEOGRAF A/S
>>
>>
>>
>> Kenneth, GEOGRAF A/S wrote:
>>     
>>> I've tried validating it. I validates fine for me.
>>> I can also upload it using the test form. It shows in studio, but I 
>>> don't have the featuresource.
>>>
>>> It would appear that the XSD files are broken in your install, or 
>>> something happened when you posted and I downloaded.
>>> If possible, try uninstalling, remove the entire folder C:\Program 
>>> Files\MapGuideOpenSource, and reinstall.
>>> Remember to backup any data you want to save. You might use the 
>>> package manager in the site admin for this purpose.
>>>
>>> I was using MapGuide 1.2 Beta 2 for my testing.
>>> Regards, Kenneth, GEOGRAF A/S
>>>   
>>>
>>>
>>> martijni wrote:
>>>       
>>>> Kenneth,
>>>>
>>>> Thanks for your reaction.
>>>> I uploaded the xml file for you. Take a look at it. I did a validation
>>>> check
>>>> and received no errors. 
>>>> As far as I can see it's using UTF-8. Maybe i'm wrong ofcourse.... :)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Kenneth, GEOGRAF A/S wrote:
>>>>   
>>>>         
>>>>> That probably means that the document you upload does not validate 
>>>>> according to the XSD schema.
>>>>> You can find the XSD Schema's in the "Schema" folder where you
>>>>> installed 
>>>>> MapGuide.
>>>>> There are free xml validators on the web, that will give you more
>>>>> detail 
>>>>> on what went wrong.
>>>>>
>>>>> Be aware that there is a different schema for each resource type.
>>>>> Also, you MUST use UTF-8 encoding (it will not give the above error,
>>>>> but 
>>>>> won't display the map).
>>>>>
>>>>> Regards, Kenneth, GEOGRAF A/S
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> martijni wrote:
>>>>>     
>>>>>           
>>>>>> James,
>>>>>>
>>>>>> I doubt that I misstyped the resource ID, because I tried different
>>>>>> resource
>>>>>> ID's to make sure it wasn't a typo. Each time I receive this
>>>>>> exception:
>>>>>>
>>>>>> An exception occurred in the XML parser.
>>>>>> An exception occurred in the XML parser. Exception occurred in method
>>>>>> MgResourceContentManager.ValidateDocument at line 586 in file
>>>>>> c:\build_bond_area\mapguide_open_source\build_3.1\mgdev\server\src\services\resource\ResourceContentManager.cpp 
>>>>>>
>>>>>> Don't know if this gives you some more information...?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> James Card wrote:
>>>>>>   
>>>>>>       
>>>>>>             
>>>>>>> On Fri, 01 Jun 2007 06:48:01 -0700, martijni <mis at gemeentehulst.nl>
>>>>>>> wrote:
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>               
>>>>>>>> I understand what you say, but do I have to reload the XML using the
>>>>>>>> mapagent interface like this way:
>>>>>>>> Resource --> SetResource --> Resource ID is location where the file
>>>>>>>> will  
>>>>>>>> be placed
>>>>>>>> Content is the location of the xml file
>>>>>>>> Header is empty
>>>>>>>>
>>>>>>>> But when I did it this way I received an exception. Is this the way
>>>>>>>> you
>>>>>>>> should do it, or did you mean something else?
>>>>>>>>       
>>>>>>>>           
>>>>>>>>                 
>>>>>>> That is exactly the procedure we use here. Did you mistype the
>>>>>>> Resource  
>>>>>>> ID? Is your XML file valid?
>>>>>>>
>>>>>>> -- 
>>>>>>> James Card
>>>>>>> California CAD Solutions, Inc.
>>>>>>> 209 578-5580
>>>>>>> _______________________________________________
>>>>>>> mapguide-users mailing list
>>>>>>> mapguide-users at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>               
>>>>>>   
>>>>>>       
>>>>>>             
>>>>> _______________________________________________
>>>>> mapguide-users mailing list
>>>>> mapguide-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>
>>>>>
>>>>>     
>>>>>           
>>>> http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml
>>>> tanks.LayerDefinition.xml 
>>>> http://www.nabble.com/file/p10952225/tanks.LayerDefinition.xml
>>>> tanks.LayerDefinition.xml 
>>>>   
>>>>         
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>   
>>>       
>> _______________________________________________
>> 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/20070605/87d71e5b/attachment.html


More information about the mapguide-users mailing list