[mapguide-internals] RE: RFC 122 - Configurable CS Dictionary Paths

Hugues Wisniewski hugues.wisniewski at autodesk.com
Mon Oct 3 07:35:00 EDT 2011


Hello Jackie,

> There's an example of the logic I intend to port over here
> (http://code.google.com/p/mg-desktop/source/browse/MgDesktop/System/PlatformInit.cpp).

Does that mean that the current implementation of MgCoordinateSystemCatalog would not change?
The change is about initializing the server (MgServer::open()) and web tier
(MgInitializeWebTier()), before anything else gets access to the
MgCoordinateSystemFactory right?

Thanks

Hugues

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Friday, September 30, 2011 5:21 PM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] RE: RFC 122 - Configurable CS Dictionary Paths

Hi Hugues,

There's an example of the logic I intend to port over here
(http://code.google.com/p/mg-desktop/source/browse/MgDesktop/System/PlatformInit.cpp).

That startup logic in turn was based on a code fragment that you yourself
posted 2 years ago:
http://osgeo-org.1803224.n2.nabble.com/Installer-progress-td2675328i20.html

The MgCoordinateSystemCatalog::SetDictionaryDir() API does successfully
change the dictionary path, but when this API was invoked, the library
status is not re-evaluated. So if this API was invoked with a library status
of lsInitializationFailed or lsLoadFailed, it stays that way even if the
path set (and the files within) check out, raising false flags for any code
that want to check the library status. Note that this library status check
is commented out in the above example.

I've made a patch for that here: http://trac.osgeo.org/mapguide/ticket/1821

The idea behind this RFC is to stick similar logic in the respective entry
points of the server (MgServer::open()) and web tier
(MgInitializeWebTier()), before anything else gets access to the
MgCoordinateSystemFactory

- Jackie

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/RFC-122-Configurable-CS-Dictionary-Paths-tp6847435p6848204.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list