[Mapguide-trac] [mapguide-trac] #2168: Cannot duplicate definitions in MAPCSLIBRARY

MapGuide Open Source trac_mapguide at osgeo.org
Mon Nov 5 00:50:11 PST 2012


#2168: Cannot duplicate definitions in MAPCSLIBRARY
----------------------------+-----------------------------------------------
   Reporter:  ChristineBao  |       Owner:  Christine.bao@…           
       Type:  defect        |      Status:  new                       
   Priority:  medium        |   Milestone:                            
  Component:  General       |     Version:  2.1.0                     
   Severity:  trivial       |    Keywords:                            
External_id:  1478276       |  
----------------------------+-----------------------------------------------
 Report from Autodesk:

 +++++++++++++++++++++++++++++++++++++++++++++++++
 +++ This defect cannot be verified in the DEV environment +++
 +++++++++++++++++++++++++++++++++++++++++++++++++
 Unless, the following tweaks are applied

 - install the dictionary files; I can provide an installer
 alternatively, you can install a recent M3D which will install the
 dictionaries into C:\ProgramData\Autodesk\Geospatial Coordinate Systems
 2014
 - unset the MENTOR_DICTIONARY_PATH variable in the blue command prompt (!)

 +++++++++++++++++++++++++++++++++++++++++++++++++

 1) Start M3D
 2) Run MAPCSLIBRARY
 3) search for DHDN/BeTA_to_ETRF89
 4) Click 'Duplicate'

 Result:
 Error message appears.

 Expected:
 The definition can be duplicated.

 Remarks:
 The code does a check in
 \\MgDev\Common\Gis\UI\CoordinateSystem\Controls\CoordinateSystemLibrary.xaml.cs::DuplicateExecuted()


 private bool CheckWriteAcess()
 {
             bool hasWriteAccess =
 CSDefinitionLibrary.Instance.AreDictionaryFileWriteable();
             if (!hasWriteAccess)
             {
 System.Windows.MessageBox.Show(String.Format(Properties.Resources.NoWriteAceess,
 CSDefinitionLibrary.Instance.GetDicitonaryDir()),
                     String.Empty, MessageBoxButton.OK,
 MessageBoxImage.Error);
             }
             return hasWriteAccess;
 }

 This typically return [false].

 The fix should be made in the GIS platform.
 There, if a 'User mentor dictionary path' is defined, the code should
 check the actual target - not the CSD file in
 [C:\ProgramData\Autodesk\Geospatial Coordinate Systems 2014].

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2168>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list