Opened 12 years ago
Closed 12 years ago
#2168 closed defect (fixed)
Cannot duplicate definitions in MAPCSLIBRARY
Reported by: | ChristineBao | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | General | Version: | 2.1.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: | 1478276 |
Description
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].
Fixed in http://trac.osgeo.org/mapguide/changeset/7200.