[mapguide-users] Enumerating resources from Session repository
zac.spitzer at gmail.com
Mon Jan 16 06:54:36 EST 2012
I think we should enable this as an option which can be turned off
On Tue, Nov 20, 2007 at 2:49 AM, Maksim Sestic <max at geoinova.com> wrote:
> It explains the problem then, thank you for the clarification. Actually, I
> can browse down the library resources and "poke" their definitions in a
> session (well, session map) repository to see whether they exist there, to
> re-create some sort of their initial state. The rest of accessible resources
> found in a session map should be dynamically created ones.
> Maksim Sestic
> Kenneth, GEOGRAF A/S wrote:
>> This has been discussed on the internals list:
>> Currently it is not supported and probably will not be supported.
>> The session repository only contains items that has been placed there
>> If you save a layer there, you can read it, but there are no copies of
>> layers from the Library.
>> This means that you have to keep a list of all items you place there.
>> If you are looking for the runtime map, it is saved as "Session:" +
>> sessionid + "//" + mapname + ".Map".
>> It is a dummy Xml, but it has ResourceData with binary representaions of
>> the Xml and MapDefinition.
>> Anything other than the RuntimeMap can be saved in the Library if you
>> want to explore it.
>> Regards, Kenneth, GEOGRAF A/S
>> Maksim Sestic skrev:
>>> Is it possible to enumerate resources from a Session-based repository,
>>> MgServerResourceService.EnumerateResources() method?
>>> I guess not (ServerResourceService.cpp):
>>> if (!resource->IsRepositoryTypeOf(MgRepositoryType::Library))
>>> throw new MgInvalidRepositoryTypeException(
>>> __LINE__, __WFILE__, NULL, L"", NULL);
>>> I need to enumerate available resources found within a Session, still
>>> no clue how to browse down the session repository. In my understanding,
>>> session carries actual instances of library repository definitions
>>> (objects). So I should be able to browse them then. I guess I'm missing
>>> something here :-)
>>> Maksim Sestic
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
> View this message in context: http://www.nabble.com/Enumerating-resources-from-Session-repository-tf4836077s16610.html#a13838672
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168
More information about the mapguide-users